Coder Social home page Coder Social logo

Comments (10)

giswqs avatar giswqs commented on July 24, 2024

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.

image

from whitebox-python.

RobHanna-NOAA avatar RobHanna-NOAA commented on July 24, 2024

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.

giswqs avatar giswqs commented on July 24, 2024

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.

RobHanna-NOAA avatar RobHanna-NOAA commented on July 24, 2024

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.

giswqs avatar giswqs commented on July 24, 2024

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.

RobHanna-NOAA avatar RobHanna-NOAA commented on July 24, 2024

ok. Can you keep us posted when you have an Ubuntu 20.04 version posted? We will hang tight.

from whitebox-python.

giswqs avatar giswqs commented on July 24, 2024

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?

image

from whitebox-python.

jblindsay avatar jblindsay commented on July 24, 2024

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.

giswqs avatar giswqs commented on July 24, 2024

@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?

image

from whitebox-python.

giswqs avatar giswqs commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.