Coder Social home page Coder Social logo

Comments (16)

stephenwaltersNV5 avatar stephenwaltersNV5 commented on May 29, 2024 1

I would like to add I am experiencing the same issue running Conditional Evaluation through a python script. Let me know if I can provide more information or if I should start a new thread.

whitebox 2.3.1 from conda-forge.

Error

thread 'main' panicked at 'Unrecognized tool name ConditionalEvaluation.', whitebox-tools-app\src\main.rs:72:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Code snip

from whitebox import WhiteboxTools
wbt = WhiteboxTools()

wbt.conditional_evaluation(
                i=input_raster,
                output=output_raster,
                statement="value == 0",
                true=1,
                false=None,
            )

from whitebox-tools.

jblindsay avatar jblindsay commented on May 29, 2024

Hello, can I clarify are you using WhiteboxTools or Whitebox Workflows? If this is in fact an issue with Whitebox Workflows, then I believe that I have probably resolved this issue in the latest version.

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

Hello! I'm using WhiteboxTools and the issue is within WhiteboxTools only. I have experimented with the NormalizeLidar tool with Whitebox Workflows (only to test it) and I didn't have any issues there.

from whitebox-tools.

Afrancioni avatar Afrancioni commented on May 29, 2024

Hello @ithaca-oyler

I just successfully ran the NormalizeLidar Tool using whiteboxTools v2.3 without any errors. I was using the WhiteboxRunner front end.
Screen Shot 2024-03-11 at 7 28 10 PM

Are you interacting with the tools using a front end or command line/python?

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

I am using the command line/python

from whitebox-tools.

Afrancioni avatar Afrancioni commented on May 29, 2024

Hi @ithaca-oyler

I got it working from command line without any issues. I have attached a screengrab of my call
Screen Shot 2024-03-13 at 7 42 40 PM

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

Hi @Afrancioni. Interesting... I'm still getting the same errors in the command line and in my jupyter notebook. Just to confirm, was your version of the package downloaded with conda? I used conda-forge for my installation.
whiteboxtools_commandline

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

I'm not sure if this is helpful at all, but I decided to dig into the stack trace, error messages, and explore the repo a little bit more and found that I have the same issue with all of the tools in whitebox-plugins in https://github.com/jblindsay/whitebox-tools/tree/5a82f513e77cf1c74778995b5d6304dd9d9f372f/whitebox-plugins. I'm not sure if this is an installation issue with conda-forge on my end or what. Feel free to ignore this comment if it ends up being unhelpful or totally unrelated!

from whitebox-tools.

Afrancioni avatar Afrancioni commented on May 29, 2024

Hi @ithaca-oyler
I am using v 2.3 of WhiteboxTools downloaded from the Whitebox Geospatial website (https://www.whiteboxgeo.com/download-whiteboxtools/). I did not pip install or use conda. I am assuming you did? Would you be able to try downloading directly from our website and test if you can run the tools from command line? I am just trying to figure out where exactly your issue is.

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

@Afrancioni I downloaded v2.3 from the Whitebox Geospatial website and I was able to install the Rust compiler and clone the whitebox_tools repo, but I still received the same "Unrecognized tool name" error message for NormalizeLidar in both my jupyter notebook and the command line. I am able to use other lidar and raster tools, however (also both in the command line and in a jupyter notebook).

from whitebox-tools.

Afrancioni avatar Afrancioni commented on May 29, 2024

@ithaca-oyler Can you please paste your command line call?

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

This is the command line call I'm using:
.\whitebox_tools.exe -r=NormalizeLidar --wd=<path to my data> -i=input.las -o=output.las --dtm=dtm.tif

from whitebox-tools.

Afrancioni avatar Afrancioni commented on May 29, 2024

@ithaca-oyler are you able to see the name of the tool in the tool list when you call --list_tool? Id be curious if you can run the tool using WhiteboxRunner?

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

@Afrancioni It does not show up when --list_tool is called. It also does not appear in the list of tools available to run in the WhiteboxRunner.

from whitebox-tools.

Afrancioni avatar Afrancioni commented on May 29, 2024

@ithaca-oyler That is very strange. I just downloaded the WBT binary from our site here https://www.whiteboxgeo.com/download-whiteboxtools/ and all tools including the NormalizeLidar tool appear in WhiteboxRunner and when I call --list_tool. I know you have downloaded WBT through conda but I am not sure how that puts WBT together.

from whitebox-tools.

ithaca-oyler avatar ithaca-oyler commented on May 29, 2024

@Afrancioni Thank you for your patience during the delay in my response. I uninstalled rust and whitebox_tools and tried the download again with no success in using the normalize_lidar tool or having it show up in the WhiteboxRunner. I've attached the log from cargo build --release. Do you see anything unusual here? Unfortunately, I don't know anything about Rust.
whiteboxtools_cargo_build_log.txt

from whitebox-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.