AttributeError: module 'whitebox' has no attribute...
bassoste opened this issue · comments
- whitebox version: 2.3.1
- Python version: 3.11.0
- Operating System: Windows 10 Enterprise
Description
Hi,
I installed whitebox from conda.
When I run any command (e.g., wbt.d8_pointer, wbt.d8_flow_accumulation, or any other) from a python script I get the following error:
AttributeError: module 'whitebox' has no attribute 'flow_accumulation_full_workflow'
This happen with any command I use.
When I run instead the GUI wbt.Runner() everything works fine and I can correctly do all the operations I need from the GUI.
I tried to uninstall and reinstall the package, to install it in a separate environment, but still no changes.
What is it happening? How could I solve the issue? (I would like to write a sequence of operations that I can run every time I need, without having to repeat it "by hand" every time using the GUI.
Thanks a lot for your help!
Stefano
Run it as follows. Do not call whitebox.d8_pointer()
directly
import whitebox
wbt = whitebox.WhiteboxTools()
wbt.d8_pointer()
Thank you very much! That fixed the issue.