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

The problem with PyQT6 and .exe #959

Open
NikolayTernov opened this issue Oct 30, 2024 · 11 comments
Open

The problem with PyQT6 and .exe #959

NikolayTernov opened this issue Oct 30, 2024 · 11 comments

Comments

@NikolayTernov
Copy link

Describe the bug :


Double-clicking on Qualcoder.exe doesn't start the app.

To Reproduce :


Microsoft Visual 14 is installed. However, nothing is happening.
Faulting application name: QualCoder-3.5.exe, version: 0.0.0.0, time stamp: 0x658603ec
Faulting module name: Qt6Core.dll, version: 6.5.2.0, time stamp: 0x64a70dcf
Exception code: 0xc0000409
Fault offset: 0x0000000000015738
Faulting process ID: 0x2f4c
Faulting application start time: 0x01db2afeb115dc17
Faulting application path: C:\Users\Nikolay\Desktop\QualCoder-3.5.exe
Faulting module path: C:\Users\Nikolay\AppData\Local\Temp_MEI143282\PyQt6\Qt6\bin\Qt6Core.dll
Report ID: d4bc49fe-0e7d-4afe-9b22-f1051cd6b852
Full name of the faulty package:
Application ID associated with the faulty package:

Seems like the problem list in PyQT6 module. However, I installed and reinstalled VS and PyQT6. The issue persists.

Desktop (please complete the following information):

  • OS: Windows 10
@ccbogel
Copy link
Owner

ccbogel commented Oct 30, 2024

Because it is an exe, it is fully self contained, so you don't need to install anything extra. I think it was created on Windows 11, so maybe it is incompatible with Windows 10.
AN alternative would be to try and install manually following the command line instructions in the 3.5 README document.

I have added another exe file with an updated QtCore module. Download that and let me know if it works for you.

QualCoder-3.5-with-QtCore-6.7.1.exe

@NikolayTernov
Copy link
Author

Thank you. The problem is that version "3.5" worked on Windows 10. Before that I had been using version "3.2" for 2 years and everything worked fine, but after launching version "3.5" this error started to appear. I can't figure out what exactly it is connected with, because on my second computer both versions work fine (I checked several times, installation via .exe file).

Also, if I install via cmd, then even when executing the code with the installation of requirements, an error about the absence of pyaudioop appears.

@kaixxx
Copy link
Collaborator

kaixxx commented Oct 31, 2024

Have you tried the new exe provided above?

For your other problem:

if I install via cmd, then even when executing the code with the installation of requirements, an error about the absence of pyaudioop appears

Here somebody recommends installing audioop-lts to solve this issue. Try doing pip install audioop-lts

@NikolayTernov
Copy link
Author

NikolayTernov commented Oct 31, 2024

Have you tried the new exe provided above?

Yes. The error is the same. I think that problem lies in my OS, perhaps there is a conflict of version after Windows Update. Frankly speaking, I don't know what's wrong with PyQT6, since even at work the "3.5" version runs without any problems.

@kaixxx
Copy link
Collaborator

kaixxx commented Oct 31, 2024

Ok, then try getting it to run via the manual installation. That's your best bet, I guess. See my recommendation above how to solve the issue with pyaudioop.

@ccbogel
Copy link
Owner

ccbogel commented Oct 31, 2024

pyaudioop is not a direct requirement of the QualCoder program. but might be associated with one of the python modules within QualCoder. So it is a hard issue to resolve.

@mahe3396
Copy link

mahe3396 commented Nov 1, 2024

Thanks for your effort in updating and sharing new exe file. I tried running this newly shared exe "QualCoder-3.5-with-QtCore-6.7.1.exe" , however the issue still persist., and application still crashing from running through exe on my new laptop with Windows 11 version 23H2 OS build 22631.4391

Faulting application name: QualCoder-3.5-with-QtCore-6.7.1.exe, version: 0.0.0.0, time stamp: 0x6722c13d
Faulting module name: Qt6Core.dll, version: 6.7.3.0, time stamp: 0x66ebcee9
Exception code: 0xc0000409
Fault offset: 0x0000000000025448
Faulting process id: 0x0x4778
Faulting application start time: 0x0x1DB2C152CA4A7FC
Faulting application path: C:\Users\mahes\Downloads\QualCoder-3.5-with-QtCore-6.7.1.exe
Faulting module path: C:\Users\mahes\AppData\Local\Temp_MEI84642\Qt6Core.dll
Report Id: 7e17f8e5-06e3-4c60-81a8-97bdfc04a21f
Faulting package full name:
Faulting package-relative application ID:

@ccbogel
Copy link
Owner

ccbogel commented Nov 11, 2024

In the latest code -the 3.6 version that is not yet released, the issue with pyaudioop is resolved. As this version of QualCoder has removed the Speech to Text function. You might like to try the latest code download the software using the Green Code button, unzip and install, following the install instructions on the front page of the GitHub repository. Also, would recommend python3.10 or 3.11, or maybe python3.12.

@mahe3396
Copy link

Thank you very much for your persistent efforts related to the issue. I will definitely try the new code and get back to you.

@mahe3396
Copy link

In the latest code -the 3.6 version that is not yet released, the issue with pyaudioop is resolved. As this version of QualCoder has removed the Speech to Text function. You might like to try the latest code download the software using the Green Code button, unzip and install, following the install instructions on the front page of the GitHub repository. Also, would recommend python3.10 or 3.11, or maybe python3.12.

--I have Python 3.13, will it be ok to install with it?

@kaixxx
Copy link
Collaborator

kaixxx commented Nov 12, 2024

I have Python 3.13, will it be ok to install with it?

Unfortunately, no. Python 3.13 is very new and not yet fully supported by many python libraries. It would be best to create a new virtual environment for QualCoder like it is described in the readme, and use python 3.11 for that.

from ChatGPT:

Here's how you can create a virtual environment with a specific Python version:

  1. Install the desired Python version: Make sure the version of Python you want to use is installed on your system. You might need to download and install it from the official Python website or use a package manager like pyenv, homebrew (on macOS), or your system's package manager.

  2. Specify the Python version when creating the virtual environment:

    Using py on Windows:

    py -m venv env --python=pythonX.Y

    Replace X.Y with the specific version number you want to use (e.g., 3.9).

  3. Check the Python version in the virtual environment:

    After creating the virtual environment, activate it and check the Python version to ensure that the correct version is being used:

    On Windows:

    .\env\Scripts\activate
    python --version

This process allows you to effectively manage different Python projects with their specific dependencies and Python versions on the same system.

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

4 participants