-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 issue. #2298
Comments
Hi @dillonvuong I updated your post to have syntax highlighting for the spec file. Can you provide the output of EDIT: I think the you may need to put the template files in the |
@j9ac9k Thank you! Here is my pip list. My pyinstaller-hooks package is version 2022.3 which is like this ticket #2234
|
Oh also this is how I build the exe: |
Hi @dillonvuong this is a confusing environment. It's not showing pyqtgraph installed. I see shiboken2 and shiboken6 but no pyside bindings (or any Qt bindings for that matter). Also not seeing pyinstaller or pyinstaller-hooks. Is this a conda environment by chance? |
Ah sorry, I am using a venv with PyCharm. Edit: actually here is my
|
ahh yes, I keep forgetting on windows there is often a benefit with doing Is the application you're attempting to freeze have a |
Yes this is the requirements.txt and from what I understand it was created a while back with pip3 freeze? It might be outdated. How may I go about recreating a correct environment?
|
ahh yeah, this does appear to have been created with If I was the one debugging this, I would create a new virtual environment with the python version I want to use, and try running that application from source, and install dependencies one at a time until the application runs successfully. If you're also feeling adventurous; you can try installing pyqtgraph based on this current draft PR, and see if that fixes your issue python -m pip uninstall pyqtgraph
python -m pip install git~https://github.com/pijyoi/pyqtgraph.git@generic_template This installs pyqtgraph in the form of PR #2226, which @pijyoi was kind enough to submit (which seeks to do away w/ those template files). |
@j9ac9k I did as you said and deleted my venv folder and made a new virtual environment. I installed packages one by one until the app ran. This fixed the problem for me. I am wondering why this is? Thank you for helping me! |
Oh also I had this warning. I am a little concerned but the app runs fine and the pyqtgraph shows correctly.
|
Thanks for the heads up on the canvas warning, should be harmless, that's not a portion of the library that is currently used very much (at all?). In terms of "why" it started working, I'm not a great person to ask for this. PyInstaller as far as I'm concerned works off of magic. The task it does is hugely complex; and while I have used it plenty for my own work, I have used it enough to be very careful about how I do use it, as it's fairly sensitive. Part of being careful with pyinstaller is not asking it to do any more than absolutely necessary, which means keeping dependencies to only what is strictly needed, and no more. Of course, that doesn't answer the question of why was the error a pyqtgraph one, and to that effect I suspect there is likely something we could do, but the only thing I can think of doing is already done here: https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pyqtgraph.py Sorry I don't have a better answer for you. Only thing I can say is if during your packaging you do come across the root cause of that issue, we would love to know about it! |
@j9ac9k: Just FYI the canvas module is used in acq4 (www.acq4.org), somewhat extensively. |
Oh yes, it is certainly feasible that that part of the library is used
downstream
…On Sat, Aug 20, 2022 at 08:46 Paul B. Manis ***@***.***> wrote:
@j9ac9k <https://github.com/j9ac9k>: Just FYI the canvas module *is* used
in acq4 (www.acq4.org), somewhat extensively.
—
Reply to this email directly, view it on GitHub
<#2298 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE5Z7ROVQ5XXSILGVTGM6TV2D4WJANCNFSM5VSHXNOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi I have the module not found error like others [2179] with pyinstaller. I could not figure out the answer from the other threads so I am making a new one.
Here is my issue:
![image](https://user-images.githubusercontent.com/39756756/167683079-a0456aec-c80e-45b7-a7f0-d54bd29ee57e.png)
I use the following spec file to create the pyqtgraph:
The text was updated successfully, but these errors were encountered: