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
whitebox installation no longer working #108
Comments
This tool might need a WBT extension license. Do you have a license? |
the base tools do not need a license (just the extensions), and were working fine in R prior to the update, without a licence. |
I can confirm that this tool does not require a license. It's in the WbT open core. |
Try running the tool in the Whitebox Runner and see if it works there with your data. If so, then we can confirm that it's an issue with the R frontend, and if not, then the issue lies in the backend. My suspicion here is that it's a frontend issue though. |
the whitebox_runner does not work in the folder where it was downloaded by the whitebox::install() command. It fails to open. I also downloaded a version of the WBT Open Core (just now) from https://www.whiteboxgeo.com/download-whiteboxtools/ and tried whitebox_runner from that download. It works and generated output. It does not look like the R frontend is finding the right download file? WORK AROUND: I copied the \WBT directory that I downloaded from https://www.whiteboxgeo.com/download-whiteboxtools/ and used it to replace the \WBT directory in "~/Support/org.R-project.R/R/whitebox" directory created by the R Frontend. Now the R frontend works for me and produces output. |
This does not appear to be related to the executable or the installation directory. I am wondering if there was a regression in file path code here. Can you try adding ./ Before the input filenames and see if your files are found? I think I may have noticed this issue myself and hadn't had a chance to check into it. |
See updates in below comment. |
The problem is not related to When you first install whitebox, the working directory in settings.json is Therefore you cannot use paths relative to it. You must specify "./" so the command is executed relative to the command line call (executed in R working directory). A convenience method provided for making the WBT settings.json match up with your R session working directory is Consider these examples. This assumes you (at least initially) have never customized your settings.json file in the installed WBT folder.
For now either use I will see if I can fix this, but you may always run into this issue if you happen to have a settings.json pointing your WBT working directory elsewhere. |
Ah, I see the problem now. Thanks for the examples that demonstrate how to specify the input file correctly / set the working directory. Very much appreciated!
|
One option I have considered is to make it default part of Between I suppose if it was synced before every tool call, accounting for any additional settings of |
I was able to reproduce your results, except for the wbt_wd(""), which I had to write explicitly as wbt_wd(getwd()). Perhaps this is not relevant, and just a peculiarity of my system, but I thought I would pass it along in case this result is useful. I feel like a have a handle on how to proceed, and help my students who are using this package in a lab that they are doing. Thanks again for the quick response! For me:
|
Sorry, I misspoke/mis-simplified my syntax, the "" is actually a special case that includes unsetting the --wd flag. I should not have said they were equivalent-- as implemented, they aren't quite so. What you can do is |
Just tried to update on R Studio for whitebox. Not working after the update
I updated the r package
then
installed the new whitebox tools using: whitebox::install_whitebox()
Still the same error:
thread 'main' panicked at 'No such file or directory (os error 2)', whitebox-tools-app/src/main.rs:72:21
note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceError running WhiteboxTools (HypsometricallyTintedHillshade)
whitebox.exe_path: '/Users/bretteaton/Library/Application Support/org.R-project.R/R/whitebox/WBT/whitebox_tools'; File exists? TRUE
Arguments: --run=HypsometricallyTintedHillshade --dem='lidar-dem_keremeos.tif' --output='lidar-dem_keremeos_THS.tif' --altitude=45 --hs_weight=0.75 --brightness=0.5 --atmospheric=0 --palette=soft -v
System command had status 101
Reading data...
hypsometrically_tinted_hillshade - Elapsed Time: NA [did not run]
Also ran the wbt_init() command, and verified that the the executable was in the expected path
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: