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?
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 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 .
I'm trying to host my website on pythonanywhere but after lots of trying I'm gettings this error.
This is the path of settings file:
'/home/gamingispassion/django_project/src/gamingispassion/settings/production'
I have tried 'gamingispassion.settings', 'gamingispassion/settings/production' but
not any success.
Please help me out with this problem.
EDIT: I have tried '.gamingispassion/settings/production'
and now i'm gettings this error
TypeError: the 'package' argument is required to perform a relative import for '.gamingispassion/settings/production'
You're mixing /s and dots in your module name. If you're specifying a module for import, user only dots. For example: .gamingispassion.settings.production
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
I have been making a game with Python and Pygame, and I've FINALLY finished it! It has a main.py, and this uses 2 other .py files: process.py and classes.py. I have been trying to make it into a standalone .exe (using this setup.py: http://www.pygame.org/wiki/Pygame2exe) but have encountered several difficulties. I used Python 2.6 before, but that gave me two errors. I have just tried 2.7, but I encountered these errors:
C:\Users\Me\Desktop\dist\setup.exe\zipextimporter.py:82: RuntimeWarning: import display: No module named _view
(ImportError: No module named _view)
C:\Users\Me\Desktop\dist\setup.exe\zipextimporter.py:82: RuntimeWarning: import draw: No module named _view
(ImportError: No module named _view)
C:\Users\Me\Desktop\dist\setup.exe\zipextimporter.py:82: RuntimeWarning: import image: No module named _view
(ImportError: No module named _view)
C:\Users\Me\Desktop\dist\setup.exe\zipextimporter.py:82: RuntimeWarning: import pixelcopy: No module named _view
(ImportError: No module named _view)
C:\Users\Me\Desktop\dist\setup.exe\zipextimporter.py:82: RuntimeWarning: import transform: No module named _view
(ImportError: No module named _view)
C:\Users\Me\Desktop\dist\setup.exe\distutils\dist.py:267: UserWarning: Unknown distribution option: 'dist_dir'
error: invalid command 'bdist'
Can anyone help me? I need to fix ALL of these errors! The error that has always appeared is the 'dist_dir' error, and I cannot find a suitable solution for this! I have installed SetupTools for 2.7 and it still comes up, despite being told this would fix it. This is the error that I need to fix the most, so if you only have an appropriate solution for this, that is fine. Thank you!
To answer the first lines of errors add this to your code:
import pygame._view
The last line error is probably with your code. Please post the complete code from your game. Try the first fix and then see if the application runs. Good luck!