mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #442] RuntimeError: Could not import backend "Glfw": #351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Juhhxx on GitHub (Nov 17, 2023).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/442
I'm trying to package a script that has the p5.py library, it runs normally in vs code and I have all the dependencies installed, yet when I try to run the executable it always gives me an error related to the GLFW library, I've already tried to put it in the hidden imports section and it gives me this message :
Here is all the libraries I have in the script:
Your Environment:
Here is all my librabries
@github-actions[bot] commented on GitHub (Nov 17, 2023):
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.
Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.
@brentvollebregt commented on GitHub (Nov 17, 2023):
This looks like a classic case of PyInstaller not detecting a "hidden" import. Potentially this could be fixed by adding "glfw" to "--hidden-import" in the advanced section.
@Juhhxx commented on GitHub (Nov 17, 2023):
already did that as I said in the post!!
@brentvollebregt commented on GitHub (Nov 17, 2023):
My bad, I didn't see any reproduction steps so had assumed you didn't try that.
Could you provide the "Current Command" generated at the bottom of the UI before you package and the build output.
Also when you package it into one directory, are you able to see the glfw library inside the folder? Should be with the other external dependency folders.
@Juhhxx commented on GitHub (Nov 17, 2023):
Sorry for no putting the steps, my bad there!
Of course I can show it, here it is:
Actually no, idk why but all the other dependencies are there except glfw, I have it installed and in my environment variables so it's kinda weird
@brentvollebregt commented on GitHub (Nov 18, 2023):
Hmm, that's odd. Could you run this in PowerShell and make sure glfw is in this list,
Could you also try adding "glfw" to --collect-all in the advanced tab - this will pick up binaries missing but the fact this library isn't showing up in the exe hints this might not fix it.
Also this isn't an auto-py-to-exe issue directly btw, this issue lies around PyInstaller (but isn't PyInstaller's fault - more around how the libraries are setup). Still happy to offer my knowledge around the subject though!
@Juhhxx commented on GitHub (Nov 23, 2023):
it worked! thank you!