gistim exe on ubuntu: numpy import fails
Huite opened this issue · 2 comments
Currently reports: GLIB_2.35 not found
Also a suggestion by numpy to check numpy.org/devdocs/user/troubleshooting-importerror.html
With Python 3.11 and Numy 1.26.2
It seems like GLIBC_2.35 is not support on Ubuntu 20.04: https://askubuntu.com/questions/1408049/how-can-i-get-glibc-2-35-on-ubuntu-20-04
Upgrading is probably a bad idea....
The error is relatively easy to reproduce by opening the QGIS Python interpreter and running:
interpreter = "/home/USER/.qgis-tim/gistim"
process = subprocess.Popen(
[interpreter, "serve"],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
)
print(process.stderr.read())
What I find rather puzzling is that running the pyinstaller executable outside of QGIS seems to work fine. I.e. /home/USER/.qgis-tim/gistim serve
will work fine, and it will succesfully produce output when fed some appropriate JSON input.
I figured it would be environmental settings, but exporting the environmental settings, then setting them using the env
argument of the Popen call doesn't seem to do anything either.