I'm getting an error when trying to run my packaged python application in cmd line:
ModuleNotFoundError: No module named 'django.contrib.admin.apps'
I tried the answer from pyinstaller 3.2 with django 1.10.1, but I still get the same error. The only difference is a ModuleNotFoundError rather than an ImportError. Does anyone know what I could be doing wrong?
In the PyInstaller/hooks/ location you should add the hook file and import hidden modules.
More: https://github.com/pyinstaller/pyinstaller/issues/2332
Related
I try make small webpage quis, and considered using pywebio. But after i finish the instalation and try use it the module not found. I already check using pip list the module pywebio 1.6.1 has installed. Why this can be happen? Please somebody help me.
Thanks
The problem show like this:
File "c:\Users\richa\Anaconda\Lib\site-packages\pywebio\online_test.py", line 1, in
from pywebio.input import *
ModuleNotFoundError: No module named 'pywebio'
I have installed python 3.9 in our buildfarm which has RHEL6 and RHEL7 OS. Some Unit tests are failing with below error on RHEL6. But same unit tests working fine on RHEL7. This means python installation is fine but it is something todo with RHEL6? Any pointers to debug this issue
Error:
import ssl
usr/software/pkgs/Python-3.9.0/lib/python3.9/ssl.py:98: in
import _ssl # if we can’t import it, let the error propagate
E ModuleNotFoundError: No module named ‘_ssl’
I want to load .spydata files with load_dictionary. However for some reason it can't find the module. I thought this was something already in Spyder? I am running spyder 3.3.1 and I don't want to update it for compatibility reasons.
from spyder.utils.iofuncs import load_dictionary
ModuleNotFoundError: No module named 'spyder.utils.iofuncs'
I had the same problem. It seems that load_dictionary and save_dictionary was moved to the the module spyder_kernels, so
from spyder_kernels.utils.iofuncs import load_dictionary
must be used instead, see also
https://github.com/spyder-ide/spyder-kernels/blob/master/spyder_kernels/utils/iofuncs.py .
This is my actual code saved as Cartoonify.py
This is my init.py
#init.py file
from .Cartoonify import Cartoon<br>
__all__= [
"Cartoon"
]
I am getting this following error:
ModuleNotFoundError: No module named '__ main __.Cartoonify'; '__main __' is not a package
If you try to import files from in a package with .something, this error always shows up. Your package needs to be run as package in order to work, so you should get a file outside the package, in which you do:
import <package>
doSomethings()
That should work.
i am trying to run my main.py but i always get the same error.
ModuleNotFoundError: No module named 'ui.mainwindow'
I already tried with other commands like ui.MainWindow, ui.mainWindow, Ui.MainWindow but nothing worked. Can someone help me?