It seems that the problem is not related to the module being in a parent directory or anything like that.
You need to add the directory that contains ptdraft
to PYTHONPATH
You said that import nib
worked with you, that probably means that you added ptdraft
itself (not its parent) to PYTHONPATH.
Related Posts:
- Importing modules from parent folder
- `from … import` vs `import .` [duplicate]
- How do I unload (reload) a Python module?
- ModuleNotFoundError: What does it mean __main__ is not a package?
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- Relative imports – ModuleNotFoundError: No module named x
- Relative imports in Python 3
- How do I list all files of a directory?
- How can I safely create a nested directory in Python?
- Find the current directory and file’s directory [duplicate]
- ImportError: No module named tensorflow
- How to find if directory exists in Python
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- Python error “ImportError: No module named”
- What is __init__.py for?
- Python error “ImportError: No module named”
- What is __init__.py for?
- ImportError: No module named requests
- How can I safely create a nested directory in Python?
- Importing files from different folder
- Importing files from different folder
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- ImportError: Cannot import name X
- How to import the class within the same directory or sub directory?
- filename.whl is not a supported wheel on this platform
- How to import the class within the same directory or sub directory?
- How do I list all files of a directory?
- How to import other Python files?
- Python Setup Disabling Path Length Limit Pros and Cons?
- Python – Module Not Found
- Relative paths in Python
- How to get an absolute file path in Python
- Python 3: ImportError “No Module named Setuptools”
- Python list directory, subdirectory, and files
- What’s the difference between a Python module and a Python package?
- Open file in a relative location in Python
- django import error – No module named core.management
- Why am I getting a FileNotFoundError?
- How to fix “Attempted relative import in non-package” even with __init__.py
- Python can’t find module in the same folder
- from PIL import Image – ImportError: No module named PIL
- ImportError: libSM.so.6: cannot open shared object file: No such file or directory
- How to fix “Attempted relative import in non-package” even with __init__.py
- Relative paths in Python
- Relative paths in Python
- How to import a module given the full path?
- Why does using from __future__ import print_function breaks Python2-style print?
- Importing variables from another file in Python
- Can’t import my own modules in Python
- “ImportError: No module named site” on Windows
- python is not recognized windows 10
- What’s the difference between a Python module and a Python package?
- How do I get the full path of the current file’s directory?
- ImportError: No module named six
- Windows path in Python
- ImportError: No module named ‘cv2’ Python3
- Creating files and directories via Python
- NameError: name ‘requests’ is not defined
- Extract a part of the filepath (a directory) in Python
- How to load all modules in a folder?
- How to change pip installation path
- Python way to clone a git repository
- How can I find script’s directory?
- Error: No module named ‘fcntl’
- Python copy files to a new directory and rename if file name already exists
- How can I install the Beautiful Soup module on the Mac?
- How to import or include data structures (e.g. a dict) into a Python file from a separate file
- Import a file from a subdirectory?
- Installing lxml module in python
- Import file from parent directory?
- No module named ‘sklearn.cross_validation’
- Maximum and Minimum values for ints
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- pandas DataFrame “no numeric data to plot” error
- How to upgrade pip3?
- SyntaxError: multiple statements found while compiling a single statement
- Getting key with maximum value in dictionary?
- Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
- What is a mixin, and why are they useful?
- Python equivalent to ‘hold on’ in Matlab
- What does __contains__ do, what can call __contains__ function
- Python: find position of element in array
- How to get pip to work behind a proxy server
- How to POST JSON data with Python Requests?
- No Module Named ‘_pywrap_tensorflow_internal’
- Pop index out of range
- How can I check if character in a string is a letter? (Python)
- OSError: Initializing from file failed on csv in Pandas
- How do I run pip on python for windows?
- Why do I get this error “TypeError: ‘method’ object is not iterable”?
- How to obfuscate Python code effectively?
- Controlling mouse with Python
- Complex number troubles with numpy
- Running shell command and capturing the output
- Determine if 2 lists have the same elements, regardless of order? [duplicate]
- numpy/scipy/ipython:Failed to interpret file as a pickle
- What is the Python equivalent of static variables inside a function?
- Python – difference between two strings
- Flask-framework: MVC pattern