-
Notifications
You must be signed in to change notification settings - Fork 245
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
binary for linux is failing to execute properly #373
Comments
I've created a post on the pyinstaller-list: |
I've tried to import a lot of dependencies explained here: ... but that didn't work. So i got this hint:
I tryto use this to add the additional psutils-dependency in: So i created the file in the hook-directory but still get this: However, i still get this:
@stepansnigirev any hint here? |
Maybe you can just include psutil in the hidden imports of the spec file? |
The psutil-issue was solved with a hook-file like this:
Useful snippets which i'm dumping here if something like this happens again:
Anyway, i finally figured out the root cause of it. It seems that a binary built on debian does not work on ubuntu which really surprised me as we're not playing 3d-shooters which need hardware-acceleration but just representing a webpage in a local app. Details here: I also tried to build via an ubuntu-image and this suceeded. I'll do a PR. |
For what is worth, the issue could be that the libraries bundled with the built program conflict with the system libraries, preventing the DRI driver from properly loading. The culprit could be either standard c/c++ libraries ( For example, if (You have a similar issue with system |
Thanks for your thoughts. I hope i have addressed the issue by using a bit of an older build-environment (bionic 18.04 LTS) combined with referring not the exact version but the softlink version of the binary (libgcc_s.so.1 instead of libgcc_s.so.1.x.y). I chose the older build-env-version (bionic) intentionally because of the maybe slightly different rules for glibc which caused #356. On the other hand, this is just a simple web-served flask-application which hopefully doesn't need so complex system-level dependencies and the above list is indeed complete. We will see. If you're interested, please feel free to test the pre-release: |
For the reference (thank chatGPT):
|
We're currently reworking the creation of binaries. Therefore the Linux-binary is created automatically inside a docker-container like this:
https://gitlab.com/cryptoadvance/specter-desktop/-/jobs/727455155
Note how it contains the error but imports the hook some lines later.
The working-build looks like this:
So this doesn't contain the error but also doesn't process the hook.
This created this binary:
https://github.com/cryptoadvance/specter-desktop/releases/download/v0.7.3-pre1/specter_desktop-v0.7.3-pre1-x86_64-linux-gnu.tar.gz
Unfortunately, it's failing to execute properly like this:
The text was updated successfully, but these errors were encountered: