New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QWidget: Must construct a QApplication before a QWidget #8
Comments
Same issue installing in a fresh 3.10 pyenv virtualenv. I pulled today's change to I tried in VS Code and via |
Damn this's happening to a lot of users huh. I think it might be the import statements: from downloader import YoutubeVideo
from settings import SettingsPage
from playlist import YoutubePlaylist
from get_captions import CaptionWidget since I'm directly importing the QWidgets. I'll update the code to not directly import the QWidgets (although it's running just fine in my PC) |
Possible fix for #8. ```QWidget: Must construct a QApplication before a QWidget```
Initialized a Conda environment with Python 3.11 (you should put the req'd version somewhere, I ran into a bunch of issues doing 3.10). Installed the reqs, opened the folder in vs code. Either hitting play on the main.py or putting python main.py triggers
'QWidget: Must construct a QApplication before a QWidget'.
Doing the recommended python -m main.py gets me:
C:\Users\XXX\anaconda3\envs\yt\python.exe: Error while finding module specification for 'main.py' (ModuleNotFoundError: __path__ attribute not found on 'main' while trying to find 'main.py'). Try using 'main' instead of 'main.py' as the module name.
Doing as recommended (python -m main) gets me the same as the first error.
The text was updated successfully, but these errors were encountered: