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

cx_Freeze error startup crash #542

Closed
torndar opened this issue Jan 2, 2019 · 8 comments · Fixed by #565
Closed

cx_Freeze error startup crash #542

torndar opened this issue Jan 2, 2019 · 8 comments · Fixed by #565
Labels
bug Bug reports. Windows Related to running on Windows.

Comments

@torndar
Copy link

torndar commented Jan 2, 2019


cx_Freeze: Python error in main script

Traceback (most recent call last):
File "C:\projects\dupeguru\env\lib\site-packages\cx_Freeze\initscripts_startup_.py", line 14, in run
File "C:\projects\dupeguru\env\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in run
File "run.py", line 12, in
File "ExtensionLoader_PyQt5_QtCore.py", line 23, in
File "ExtensionLoader_PyQt5_QtCore.py", line 15, in bootstrap
File "C:\Python36-x64\lib\imp.py", line 343, in load_dynamic
ImportError: Module use of python33.dll conflicts with this version of Python.

Python33.dll and Python36.dll are both in the application install folder and removing either one of them causes "not found" errors.

@arsenetar
Copy link
Owner

This might be an issue with cx_Freeze and/or the project configuration here. I noticed a few issues last time I went to build a windows executable, do not remember if this was one of them. I am considering switching to pyinstaller instead as it seems to work with less reconfiguration when python versions are changed / and updates.

@torndar
Copy link
Author

torndar commented Jan 6, 2019

If you do let me know and I'll gladly test.

@arsenetar arsenetar added bug Bug reports. Windows Related to running on Windows. labels Jan 11, 2019
@arsenetar arsenetar added this to the 4.0.4 milestone Jan 11, 2019
@mrcpu99
Copy link

mrcpu99 commented Jan 23, 2019

I am having the same issue. Just upgrade to 4.0.3 and I get the same startup failure.

@arsenetar
Copy link
Owner

I have updated the source at https://github.com/arsenetar/dupeguru/tree/542 to build using pyInstaller instead of cx_Freeze. I continue to have issues with cx_Freeze and newer version of PyQt5 and python.
Attached here is an installer built using this source, it seems to work fine for me. If you are building from source try that branch, otherwise try the attached version.

Installer: https://github.com/arsenetar/dupeguru/releases/download/4.0.3-InstallFix2/dupeGuru_win64_4.0.3.exe

@torndar
Copy link
Author

torndar commented Apr 20, 2019

Installs for me now. Giving it a test run.

@gemosley
Copy link

gemosley commented Jun 7, 2019

Can't get either 4.0.3 or 4.0.4 of dupeGuru to work. Same error as the start of this thread. pyInstaller link above doesn't seem to be there anymore. Is a working version available, do you know?
Thanks.

@arsenetar
Copy link
Owner

The current 4.0.4 version is built with pyInstaller. The error at the top of this thread should be impossible with 4.0.4 when installed after uninstalling 4.0.3. The files which cause this issue (and the scripts listed in the traceback are no longer present). If you installed 4.0.4 without uninstalling 4.0.3 it is possible that there might be some file left from the 4.0.3 installation which can cause issues.

@gemosley
Copy link

gemosley commented Jun 8, 2019

Thanks, arsenetar. Uninstalling 4.0.3 was the answer. Working fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports. Windows Related to running on Windows.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants