Top "Importerror" questions

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

wxPython import error

I'm having trouble figuring out an error message in Python. yesterday, I've installed python using the latest EPD package, and …

python wxpython importerror python-import
python add-apt-repository: ImportError: No module named 'apt_pkg'

When I try: sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next in Ubuntu, the terminal show this error message: Traceback (most recent call …

python importerror apt
Scapy installation fails on osx with dnet import error

Having trouble installing Scapy and it's required dependancies. I have spent some time Googling for a solution but all 'solutions' …

python macos installation importerror scapy
ImportError: cannot import name 'metadata' from 'importlib'

Under a python (Python 3.7.5 (default, Oct 31 2019, 15:18:51) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32) session launched in an Anaconda prompt, …

python importerror python-importlib
Python Import Class With Same Name as Directory

Lets say I have the following python source file layout: lib/foo.py lib/foo/bar.py and then in …

python import importerror
ImportError: No module named 'dlib'

I followed the step how to install dlib python on Windows and it works on CMD but in Python's IDE …

opencv importerror dlib
ImportError: No module named eventlet

I have installed eventlet library in python using : pip install eventlet. But when I tried to import eventlet this error …

python-2.7 importerror eventlet
cannot import name 'mydb' from partially initialized module 'connection' in Python

Python 3.8 error ImportError: cannot import name 'mydb' from partially initialized module 'connection' (most likely due to a circular import) (C:\…

python importerror
Import multiple components in vue using ES6 syntax doesn't work

So I am trying to create a vue instance that needs other components from folder "views/" Here is the file …

javascript webpack ecmascript-6 importerror vuejs2
Receiving 'ImportError: cannot import name etree' when using lxml in Python on Mac

I'm having difficulty properly installing lxml for Python on Mac. I have followed the instructions here, which after installation indicates …

python macos lxml importerror