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?
- SyntaxError: unexpected EOF while parsing
- How do I lowercase a string in Python?
- How do I copy a file in Python?
- How can I reverse a list in Python?
- Manually raising (throwing) an exception in Python
- How do I copy a file in Python?
- can’t multiply sequence by non-int of type ‘float’
- Difference between del, remove, and pop on lists
- How can I reverse a list in Python?
- How to use the pass statement
- How to use filter, map, and reduce in Python 3
- What does enumerate() mean?
- Searching the student-t distribution table for values using python
- How to declare an array in Python?
- Does Python have a ternary conditional operator?
- Use Gif Logo For Loading Screen In Kivy
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- Pig Latin Translator
- What is the difference between Python’s list methods append and extend?
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- TypeError: ‘int’ object is not subscriptable
- sphinx.ext.autodoc: Keeping names of constants in signature
- are there dictionaries in javascript like python?
- How do you round UP a number?
- Understanding slice notation
- Iterating over dictionaries using ‘for’ loops
- How to define a two-dimensional array?
- how to sort pandas dataframe from one column