Comments (10)
You can download the WBT binary from this direct link. Unzip it to the whitebox package root directory. Move the WBT binary whitebox_tools
from the WBT folder to the whitebox root directory. The file structure should like this. In that way, the docker container won't need to download the WBT binary every time.
from whitebox-python.
Yes thank you. I got your email response last night from my discussion post. Carson and I work together and try the notes from the discussion post and will keep you posted.
Our Ubuntu 20.04 pathing is /usr/local/lib/python3.8/dist-packages./whitebox and not the path you have above. I assume that is ok. Also... I experimented with the .set_whitebox_dir methods a few times, and set it to both the /usr/local/lib/python3.8/dist-packages./whitebox
and also /usr/local/lib/python3.8/dist-packages./whitebox/WBT
But no luck. Did I path that correctly?
Other than the whitebox_tools requires GLIBC 2.32 or higher I mentioned in discussion 55 which is very illogical to me. I wonder if is something going wrong we can not see. I am going to debug the actual whitebox_tools.py file in the dist-packages today and see if that tells us something.
We also carefully watched permissions on the folders and that didn't work.
The most bizarre part of this story is that all of our servers started failing at the same time. We don't know when exactly it started failing but likely between Thurs and Monday morning. We are able to replicate fail on multiple servers, inside and outside out network, delaminating environmental network changes and possibly even delimiting some system upgrades (but not 100% confirmed on upgrades not being a culprit). At this point, our software is non-functional and we are trying to figure out why it happened and how to get our systems running again.
from whitebox-python.
See jblindsay/whitebox-tools#338 (comment).
The issue is because the latest WBT binary for Linux is compiled on Ubuntu 22.x, which requires a newer GLIBC. We need it be compiled on Ubuntu 20.x so that it can be compatible with older Ubuntu OS.
You can download an older version of WBT binary I complied on Ubuntu 18.04 from here. It should work with Ubuntu 20.04. Follow the steps I mentioned above the replace the WBT binary in your whitebox package folder. Otherwise, it always pull the latest binary from whiteboxgeo.com, which is incimpatible with Ubuntu 20.04.
I am trying to compile WBT from source on Ubuntu 20.04. If successful, I can then send the binary to @jblindsay to replace it on the whiteboxgeo.com server. That could resolve all the GLIBC issues.
from whitebox-python.
ah.. so they must have changed it in the past week or so then (I am guessing). Yes, please compile and have it put on the whiteboxgeo.com server. We will try it on our side as well.
from whitebox-python.
You are correct. The WhiteboxTools Open Core v2.3.0 was released yesterday, and that's why the files on the whiteboxgeo.com have been replaced.
from whitebox-python.
ok. Can you keep us posted when you have an Ubuntu 20.04 version posted? We will hang tight.
from whitebox-python.
I tried to build WBT from sources on a fresh Ubuntu 20.04 and encountered various errors. I was able to some of the errors but I am now stuck on this one.
@williamlidberg Did you build WBT from sources on Ubuntu 20.04 successfully? Any advice on this issue?
from whitebox-python.
This is precisely why I have also distributed the musl-compiled version of Wbt. Please see here. Under the title, 'Is this the wrong version? Download the correct version below.' you should see 'Linux version (compiled with musl)'.
from whitebox-python.
@jblindsay Awesome! I did not that that it existed. I just tested it with Google Colab, and it works. Will the musl-compiled version work on all Linux distributions? Should pip install whitebox
users download the musl-compiled version by default?
from whitebox-python.
I have released v2.3.1 for resolving this issue.
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"
from whitebox-python.
Related Issues (20)
- Whitebox resetting working directory to whitebox directory in Anaconda environment HOT 4
- whitebox clip function corrupting output file HOT 2
- Whiteboxtools in AWS Sagemaker HOT 4
- Documentation for raster_calculator tool HOT 1
- Missing GLIBC library error with Python module HOT 8
- Running ConditionalEvaluation requires manual Whitebox library folder permissions change HOT 2
- ResourceWarnings for unclosed HOT 1
- LidarIdwInterpolation does not save CRS to output
- LidarIdwInterpolation does not save CRS to output HOT 1
- Using previous versions of WhiteboxTools HOT 8
- a bug in func (raster_to_vector_lines) HOT 3
- Raster shift in LidarPointStats? HOT 1
- Discontinuous streams HOT 5
- Negative flow path length HOT 1
- failed to use the mosaic function HOT 1
- AttributeError: module 'whitebox' has no attribute... HOT 2
- Whitebox python lib method lidar_digital_surface_model getting stuck at filtering HOT 2
- Installing whitebox tools gets the dev version - FlightlineOverlap fails HOT 1
- wbe.contours_from_raster doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whitebox-python.