-
Notifications
You must be signed in to change notification settings - Fork 84
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
Failed to convert Py module to executable #933
Comments
Hi. I am glad you can use QualCoder for your needs. On Windows 10 or 11: To make an exe from source code: 1 Download the QualCoder-master zip (This is the latest code, or you can download the 3.5 source code from the releases) 2 Unzip 3 4 Install these modules - pyinstaller is the important one to create the exe 5 cd to the QualCoder-master folder 6 Run this command from the above folder, to create an exe. It takes about 10 minutes 7 8 |
Thank you very much, worked like a charm ! |
I'm pleased. If some of the QoL tweaks would improve QualCoder - please let me know. |
Ty so much ! -Making columns resizeable in the code_text widget (since we're working with quite lengthy code labels here) This second tweak was to answer a specific situation with more than a hundred files and to make life easier for a student. If you think it'd be interesting to do a PR even with my.. err.. bad coding skills, I'll gladly do it. But if you want to take things for the fork, refine them and include them in the base version, I'll be super happy too (and maybe less ashamed !). Best regards, |
Describe the bug :
When trying to run python setup.py py2exe (using the setup.py file included in the code .zip pulled from github), the app is built, but running it results in this kind of error log :
Traceback (most recent call last):
File "main.py", line 49, in
File "zipextimporter.pyc", line 150, in create_module
ImportError: MemoryLoadLibrary failed loading PyQt6\QtCore.pyd: Le module spécifié est introuvable. (126)
Traceback (most recent call last):
File "main.py", line 49, in
File "zipextimporter.pyc", line 150, in create_module
ImportError: MemoryLoadLibrary failed loading PyQt6\QtCore.pyd: Le module spécifié est introuvable. (126)
Traceback (most recent call last):
File "main.py", line 49, in
File "", line 15, in
File "", line 13, in __load
ImportError: (No module named 'PyQt6.sip') 'C:\Users\needa\Downloads\QualCoder-master\dist\PyQt6.QtCore.pyd'
Traceback (most recent call last):
File "main.py", line 49, in
File "", line 15, in
File "", line 13, in __load
ImportError: (DLL load failed while importing QtCore: Le module spécifié est introuvable.) 'C:\Users\needa\Downloads\QualCoder-master\dist\PyQt6.QtCore.pyd'
Traceback (most recent call last):
File "main.py", line 49, in
File "zipextimporter.pyc", line 150, in create_module
ImportError: MemoryLoadLibrary failed loading PyQt6\QtCore.pyd: Le module spécifié est introuvable. (126)
[etc.]
Additional bit of info : the created app is named main.exe and with no icons. I feel it shouldn't be that way, so something may be wrong here.
Edit : Failed to mention that running the py module with "python -m qualcoder" works flawlessly.
To Reproduce :
Described above. It's very possible it shouldn't be how I try to convert the module to an exe. In which case, I'm very sorry.
Expected behavior :
Well, I suppose using either the python setup.py py2exe (or a more correct way to do it), the .exe should be working ?
Screenshots :
If applicable, add screenshots that helps to explain your problem.
Desktop (please complete the following information):
Additional context :
Maybe it should be useful to include a few steps to exe-ify the module ?
I'm trying to rebuild it this way because I added a few QoL tweaks for my specific use case.
Thanks in advance and sorry if I'm just being noob.
The text was updated successfully, but these errors were encountered: