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

GLIBC version #338

Open
williamlidberg opened this issue Mar 29, 2023 · 4 comments
Open

GLIBC version #338

williamlidberg opened this issue Mar 29, 2023 · 4 comments
Labels
Linux Issue with Linux build/envirobment

Comments

@williamlidberg
Copy link

I have been using Whitebox in an Nvidia ubuntu 20.04 docker container for a while but today I got this error:

./whitebox_tools: /usr/lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.35' not found (required by ./whitebox_tools) ./whitebox_tools: /usr/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by ./whitebox_tools)
./whitebox_tools: /usr/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.32' not found (required by ./whitebox_tools) ./whitebox_tools: /usr/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by ./whitebox_tools)

my GLIBC version is 2.31 and I can't seem to upgrade it without upgrading to ubuntu 22.xx
What is the most recent version of whitebox that was built with GLIBC 2.3.1?

Does anything GLIBC related happen when whitebox is downloading the pre-compiled binaries for first-time use? I am thinking of this text that pops up when importing Whitebox:

  Downloading WhiteboxTools pre-compiled binary for first-time use ...
  Decompressing WhiteboxTools_linux_amd64.zip ...
  WhiteboxTools package directory: /usr/local/lib/python3.8/dist-packages/whitebox
  Downloading testdata ...
@giswqs
Copy link
Contributor

giswqs commented Mar 29, 2023

Related to opengeos/whitebox-python#55

@giswqs
Copy link
Contributor

giswqs commented Mar 29, 2023

I think the issue is probably because the latest WBT binary for Linux is compiled on Ubuntu 22.x. We need it be compiled on Ubuntu 20.x so that it can be compatible with older Ubuntu OS.

@williamlidberg
Copy link
Author

I tinkered a bit with downloading the adding our version of the backend but I agree that we need a solution for older versions of Ubuntu. I am depending on Nvidia's containers for TensorFlow and they are still using Ubuntu 20.04 with GLIBC 2.3.1.

@giswqs
Copy link
Contributor

giswqs commented Mar 29, 2023

This issue has been fixed with the latest whitebox pip package.

If you encounter any GLIBC errors after installing the whitebox package, you can try the following command:

import whitebox
whitebox.download_wbt(linux_musl=True, reset=True)

Alternatively, you can set the environment variable WBT_LINUX to MUSL before installing the whitebox package. It will automatically download the MUSL version of WhiteboxTools. This is a better solution if you are using docker.

import os
os.environ["WBT_LINUX"] = "MUSL"

@Afrancioni Afrancioni added the Linux Issue with Linux build/envirobment label Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Issue with Linux build/envirobment
Projects
None yet
Development

No branches or pull requests

3 participants