Comments (13)
Try v2.3.3. It should be fixed now. #65
from whitebox-python.
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!
from whitebox-python.
Same here, starting yesterday.
from whitebox-python.
Thank you for reporting. I will try to update it tonight
from whitebox-python.
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.
from whitebox-python.
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 WBT
directory used to be under the root directory, but now WBT
is a subdirectory udner something like WhiteboxTools_linux_amd64
, depending on the operating systems. I will update the automated routine to use the new file structure.
from whitebox-python.
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.
from whitebox-python.
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.
from whitebox-python.
I got the same error with v2.3.2
/root/python3.11/lib/python3.11/site-packages/whitebox/download_wbt.py:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/root/python3.11/lib/python3.11/site-packages/whitebox/download_wbt.py", line 222, in <module>
download_wbt()
File "/root/python3.11/lib/python3.11/site-packages/whitebox/download_wbt.py", line 145, in download_wbt
shutil.copytree(init_img_dir, new_img_dir)
File "/usr/lib/python3.11/shutil.py", line 558, in copytree
with os.scandir(src) as itr:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/root/python3.11/lib/python3.11/site-packages/whitebox/WBT/img'
from whitebox-python.
Interesting! It passed the GitHub Actions. Will look into it again
from whitebox-python.
We're hoping that this will greatly simplify the process of releasing new versions.
from whitebox-python.
It works--thank you so much! Your fast response time is amazing!
from whitebox-python.
Great to hear that it is working now. Closing this issue for now.
from whitebox-python.
Related Issues (20)
- 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
- Download_wbt.py Error HOT 10
- 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
- Whitebox 2.3.3 (Python): Unrecognized tool name ConditionalEvaluation HOT 3
- Suggestions about release cycle HOT 6
- Can't generate output file normally HOT 4
- WBT can't convert TAG to ASCII
- Block auto ownloading WhiteboxTools pre-compiled binary HOT 6
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.