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?
- How can I install pip on Windows?
- Best way to convert string to bytes in Python 3?
- Does Python have a string ‘contains’ substring method?
- Difference between import numpy and import numpy as np
- No module named ‘sklearn.cross_validation’
- Python Pandas – Missing required dependencies [‘numpy’] 1
- error UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
- No module named MySQLdb
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- pandas DataFrame “no numeric data to plot” error
- How to access the ith column of a NumPy multidimensional array?
- 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
- Error handling in Python-MySQL
- List files ONLY in the current directory
- No Module Named ‘_pywrap_tensorflow_internal’
- Python script to copy text to clipboard
- How can I check if character in a string is a letter? (Python)
- OSError: Initializing from file failed on csv in Pandas
- ./xx.py: line 1: import: command not found
- Why do I get this error “TypeError: ‘method’ object is not iterable”?
- Are nested try/except blocks in Python a good programming practice?
- Getting a name error when trying to input a string [duplicate]
- Complex number troubles with numpy
- Running shell command and capturing the output
- 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