-
Notifications
You must be signed in to change notification settings - Fork 68
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
Unable to instance WhiteBoxTools in 2.3.1 #63
Comments
I have the same error with a python environment I created today. It is v2.3.1 and on macOS >>> from whitebox.whitebox_tools import WhiteboxTools
>>> wbt = WhiteboxTools()
Downloading WhiteboxTools pre-compiled binary for first time use ...
Decompressing WhiteboxTools_darwin_amd64.zip ...
WhiteboxTools package directory: /Users/markwang/micromamba/envs/pygeoflood-hlm-env/lib/python3.11/site-packages/whitebox
Unexpected error: <class 'FileNotFoundError'>
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/markwang/micromamba/envs/pygeoflood-hlm-env/lib/python3.11/site-packages/whitebox/whitebox_tools.py", line 278, in __init__
download_wbt()
File "/Users/markwang/micromamba/envs/pygeoflood-hlm-env/lib/python3.11/site-packages/whitebox/whitebox_tools.py", line 157, in download_wbt
shutil.copytree(init_img_dir, new_img_dir)
File "/Users/markwang/micromamba/envs/pygeoflood-hlm-env/lib/python3.11/shutil.py", line 571, in copytree
with os.scandir(src) as itr:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Users/markwang/micromamba/envs/pygeoflood-hlm-env/lib/python3.11/site-packages/whitebox/WBT/img' Also, the error doesn't happen when I use a conda environment created 2 weeks ago (also v2.3.1). Thank you! |
Same here, starting yesterday. |
Thank you for reporting. I will try to update it tonight |
That' my bad, @giswqs I should have told you that we were planning a release of the backend. There are just so many moving parts in releasing a new version of WbT, which is one of the reasons why it's been so darn long. |
No problem, @jblindsay! Already great to see new WBT releases! Thank you for your great work. I looked into the issue and I think the problem is because the file strcuture of WBT binaries have changed. The |
Ah yes, this is certainly a change that I made recently and didn't think about the consequences for the frontends. This is the result of significant changes to the build script and the fact that we are now compiling to our targets using Github Actions. |
I just released v2.3.2, which should resolve the issue. If everything works well, I can update the version to v2.4.0, the same as the WBT backend version. |
I got the same error with v2.3.2
|
Interesting! It passed the GitHub Actions. Will look into it again |
We're hoping that this will greatly simplify the process of releasing new versions. |
Try v2.3.3. It should be fixed now. #65 |
It works--thank you so much! Your fast response time is amazing! |
Great to hear that it is working now. Closing this issue for now. |
Starting from yesterday I am unable to create instances of WhiteBoxTools in Python 3. I get this error:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/whitebox/WBT/img'
It looks like something related to this package:
WhiteboxTools_linux_amd64.zip
Thanks!
The text was updated successfully, but these errors were encountered: