How to make Pyinstaller compile for the glibc version that the system actually has #9050
-
Raspbian 6.1.21+ even though I used Pyinstaller on the hardware the software was going to run, it compiled under a different version of GLIBC than my hardware runs, I didn't even think that was possible. how do I approach this? If I have to downgrade pyinstaller what is the exact way to find the specific version that expects glibc_2.31 so I can downgrade, my searches are coming up with nothing that I can see. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
glibc version is not tied to hardware, but to the version of linux distribution that is running on it. In this case, your build-system needs to be running the oldest version of Raspbian that you can expect to find on your run-time systems. What is the Raspbian version on the build system, and what is the Raspbian version on the run-time system (one of them seems to be 6.1.21, which is based off Debian Buster - but which is it?). Which shared library/binary is missing the said glibc symbols? Does it work with unfrozen python on the build system? |
Beta Was this translation helpful? Give feedback.
Yeah, this wheel is the source of your problems...
Try downloading the source .tar.gz from https://pypi.org/project/pyinstaller/#files
Then uninstall:
pip uninstall pyinstaller
And install from source: