Skip to content
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

PyInstaller executable doesn't work if I include qdarktheme #241

Open
pradosh-arduino opened this issue Mar 30, 2023 · 1 comment
Open

Comments

@pradosh-arduino
Copy link

Hello, so I'm encountering a problem, I have an project that uses qdarktheme and if I run py main.py the theme works and it's nice but when I build to exe using PyInstaller and run the executable, it fails with this message:

File "main.py", line 12, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "qdarktheme\__init__.py", line 45, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "qdarktheme\_main.py", line 9, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "qdarktheme\_style_loader.py", line 9, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "qdarktheme\_template\filter.py", line 10, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "qdarktheme\qtpy\__init__.py", line 3, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "qdarktheme\qtpy\qt_version.py", line 8, in <module>
ImportError: DLL load failed while importing QtCore: The specified module could not be found.

also note that if I build the exe without qdarktheme the exe works, so I really wanna use your theme, so I hope I get a quick response. thank you

@sw-dev-code
Copy link

@pradosh-arduino I had also a problem running the exe generated by the pyinstaller. The solution in my case was update of pyinstaller to latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants