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

Error in Change Detection plugin (could not execute GRASS script changedetection.py) #1369

Closed
coreysnipes opened this issue Aug 19, 2023 · 7 comments

Comments

@coreysnipes
Copy link

How did you install WebODM (docker, installer, etc.)?

Windows installer - v 2.0.3

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

firefox 116 on Win 10

What is the problem?

Change detection plugin does not execute. Dependency issue? The error output is limited in the UI:

Could not execute GRASS script C:\WebODM\resources\app\apps\WebODM\coreplugins\changedetection\changedetection.py 
from C:\WebODM\resources\app\data\media\tmp\tmplddbrnxa_grass_engine:

When I try to blindly execute the script directly in powershell I show a missing module 'rasterio':

PS C:\WebODM\resources\app\apps\WebODM\coreplugins\changedetection> python .\changedetection.py
Traceback (most recent call last):
  File ".\changedetection.py", line 111, in <module>
    from compare import compare
  File "C:\WebODM\resources\app\apps\WebODM\coreplugins\changedetection\compare.py", line 1, in <module>
    import rasterio as rio
ModuleNotFoundError: No module named 'rasterio'

How can we reproduce this? (What steps trigger the problem? What parameters are you using for processing? Include screenshots. If you are having issues processing a dataset, you must include a copy of your dataset uploaded on Dropbox, Google Drive or https://dronedb.app)

  • Create two tasks with DSM+DTM
  • Enable change detection plugin
  • Attempt to use change detection on one task using default settings
  • Observe error

Here are my change detection settings:

image

Here is the relevant section of app.log:

change-detection-log.txt

@coreysnipes
Copy link
Author

My python version is 3.7.9

@Saijin-Naib
Copy link
Contributor

Is this under the latest/current Build?

@coreysnipes
Copy link
Author

Hiya; here's the WebODM console output from powershell.

Yes, I believe this is the latest build - 2.0.3 Build 89

change-detection-webodm-log.txt

@Saijin-Naib
Copy link
Contributor

Is this all of the log right from when you execute webodm.exe? It looks like a few lines are missing

@coreysnipes
Copy link
Author

coreysnipes commented Aug 19, 2023

Oh, sorry. I didn't realize you wanted the full log. Here you go. I do see a message in there about failing to install requirements for changedetection at line 129. Other than that pip version warning I can't see any specific failures though.

webodm-log-full.txt

@pierotofy
Copy link
Member

I'm guessing it's an issue with the installation of the necessary pip dependencies for the plugin on Windows.

@pierotofy
Copy link
Member

This is no longer applicable as the change detection plugin is now archived. #1435

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

No branches or pull requests

3 participants