Top "Importerror" questions

Refers to errors that result from attempting to import a module or library into one's code

Importing files from different folder

I have the following folder structure. application ├── app │   └── folder │   └── file.py └── app2 └── some_folder └── some_file.py I want to …

python importerror python-import
Python error "ImportError: No module named"

Python is installed in a local directory. My directory tree looks like this: (local directory)/site-packages/toolkit/interface.py My …

python importerror python-import
ImportError: Cannot import name X

I have four different files named: main, vector, entity and physics. I will not post all the code, just the …

python python-import importerror circular-dependency
How to fix "Attempted relative import in non-package" even with __init__.py

I'm trying to follow PEP 328, with the following directory structure: pkg/ __init__.py components/ core.py __init__.py tests/ core_…

python package python-import importerror init
ImportError: No Module Named bs4 (BeautifulSoup)

I'm working in Python and using Flask. When I run my main Python file on my computer, it works perfectly, …

python beautifulsoup flask importerror
"ImportError: No module named" when trying to run Python script

I'm trying to run a script that launches, amongst other things, a python script. I get a ImportError: No module …

python ipython jupyter-notebook importerror
ImportError: No module named six

I'm trying to build OpenERP project, done with dependencies. It's giving this error now Traceback (most recent call last): File "…

python module importerror
Installing OpenCV for Python on Ubuntu, getting ImportError: No module named cv2.cv

I have an Ubuntu 14.04 system, on which I want to install OpenCV and use it with Python 2.x. I installed …

python opencv ubuntu importerror
Python ImportError: No module named wx

Im sorry to ask this question again. I have searched and found endles repeats of it both on stackoverflow and …

python importerror wxwidgets
Why can't Python import Image from PIL?

The single line that I am trying to run is the following: from PIL import Image However simple this may …

python python-imaging-library importerror python-import pillow