Skip to content
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

Problem running NewRasterFromBase on Windows #21

Closed
AlisterH opened this issue Nov 12, 2018 · 2 comments
Closed

Problem running NewRasterFromBase on Windows #21

AlisterH opened this issue Nov 12, 2018 · 2 comments

Comments

@AlisterH
Copy link

Having identified several issues with the input parameters that can cause problems on Windows (#20), and also realised that --input is not actually the right parameter, I'm still unable to get NewRasterFromBase to run on Windows:

C:\Processing>whitebox_tools.exe --version
whitebox-tools v0.11.0 by Dr. John B. Lindsay (c) 2017-2018

C:\Processing>whitebox_tools.exe --run=NewRasterFromBase --wd="C:\Processing\" -i="simple.tif" --output="simple57.tif" --value=nodata --data_type=integer
thread 'main' panicked at 'Tool run with no paramters.', src\main.rs:76:21
stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: BaseThreadInitThunk
  15: RtlUserThreadStart

I do not believe the input file is the problem - it works with the Linux whitebox_tools, and I have tried a variety of files, all failing.

Is there anything else obvious I'm missing? Maybe it is just an issue with the order in which I've specified the parameters - there is probably some combination I haven't tried.
Would a proper debug build for Windows help?

@AlisterH
Copy link
Author

With 0.12.0 this seems to apply to other tools as well, e.g. AbsoluteValue and CreatePlane. Maybe it applies to everything?
If anybody on Windows is successfully running any tool with with 0.12.0 I'd be interested to see the successfully command, in case it helps to figure out what is going on.

@jblindsay
Copy link
Owner

jblindsay commented Jan 4, 2019

Hi @AlisterH. I've been trying to track this one down for a while and I can't seem to replicate. I see that you have been using WhiteboxTools from the command line. Are you able to run NewRasterFromBase when you run it from WhiteboxTools Runner or calling it from a Python script? I'm wondering if its an issue with the terminal application specifically. It seems to run fine on my terminal. Also, if you run it with the -v flag, you'll get more feedback on the nature of the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants