I'm trying to use OLA on Ubuntu 16.04 with Python 2.7.12. After installing the package (ola-python) through apt-get, I can see it at
/usr/lib/python2.7/dist-packages/ola.
However, when I run basic examples from the OLA I get an error:
ImportError: No module named ClientWrapper
This appears for the line:
from ola.ClientWrapper import ClientWrapper
Both
/usr/lib/python2.7/dist-packages
and
/usr/lib/python2.7/dist-packages/ola
are in sys.path, so I'm confused about what's going on here.
How do I get this package do work on Ubuntu?
Related
ModuleNotFoundError: No module named 'kivy_deps'
I have already installed kivy but still getting this error.
Please check if you have installed these as well:
pip install kivy-deps.sdl2
pip install kivy-deps.glew
you may need to install these explicitly
When I tried to import xlwings using import xlwings as xw, it shows the following error:
from win32.api import *
ModuleNotFoundError: No module named 'win32.api'
My environment is:
Windows 10
Python 3.10
IDE: PyCharm
Does anyone know how to fix it?
You probably don't have the pywin32 module installed.
Try pip install pywin32 and check this question
I want to check MX-Record from Python. So I installed the dnspython package, but when I try to import following library:
import dns.resolver
It shows the following error:
ModuleNotFoundError: No module named 'dns'.
I use PyCharm and Python 3.
You should install https://github.com/rthalley/dnspython first
pip install dnspython
I'm trying to use win32gui from pywin32 but I keep getting this error:
ModuleNotFoundError: No module named 'win32gui'
I am on windows 10, python 3.9
I have been researching the top results on stack over flow and google for a while now and the solutions i found don't work for me.
things I have tried:
installed pywin32 via a whl file (this shows in site packages along with win32 ect)
double checked both 64bit versions of python and pywin32 are installed
Added pywin32 to Path (worth a try)
tried "from win32 import win32gui"
Any help would be appreciated!
Requested commands with output:
importing win32api and win32com results in the same out of
ModuleNotFoundError: No module named 'win32api'
ModuleNotFoundError: No module named 'win32com'
python -m pip install pywin32
Requirement already satisfied: pywin32 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (304.0)
python -c "import win32gui" -- nothing happens when i run this line in a cmd (maybe i have done something wrong here?)
Solution unknown however it was fixed by simply recreating the virtual environment and installing the pywin32.
when I try to run my python programme in Kali Linux I get this error:
python myprogramme.py
ImportError: no module named configobj
so I installed this using these methods
sudo apt install python3-configobj
pip install configobj
both installed successfully however I'm still getting this same error and I wondered if there were any other factors that might be causing the error
thank you