Skip to content
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

gistim exe on ubuntu: numpy import fails #136

Open
Huite opened this issue Dec 27, 2023 · 2 comments
Open

gistim exe on ubuntu: numpy import fails #136

Huite opened this issue Dec 27, 2023 · 2 comments

Comments

@Huite
Copy link
Contributor

Huite commented Dec 27, 2023

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

@Huite
Copy link
Contributor Author

Huite commented Dec 27, 2023

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....

@Huite
Copy link
Contributor Author

Huite commented Dec 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant