PetervanLunteren / EcoAssist

Simplify camera trap image analysis with ML species recognition models based around the MegaDetector model
MIT License
121 stars 16 forks source link

Cannot start application on MacOS (Intel) #29

Closed tsuijten closed 10 months ago

tsuijten commented 10 months ago

I installed the application, that seems to work fine. When I run the app I see this output in the terminal:

 /Applications/EcoAssist.command ; exit;
This is an OSX computer...
   ...with an Intel processor.

Saving session...completed.

[Process completed]

The stderr.txt file contains this:

EnvironmentLocationNotFound: Not a conda environment: /Applications/.EcoAssist_files/miniforge/envs/ecoassistcondaenv

Traceback (most recent call last):
  File "/Applications/.EcoAssist_files/EcoAssist/EcoAssist_GUI.py", line 15, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'
tsuijten commented 10 months ago

Indeed I don't have a directory called /Applications/.EcoAssist_files/miniforge/envs/ecoassistcondaenv

But I do have one called /Applications/.EcoAssist_files/miniforge/envs/ecoassistcondaenv-yolov8

PetervanLunteren commented 10 months ago

Hmmm. That is weird...

Does /Applications/.EcoAssist_files/cameratraps/environment-detector-mac.yml exist?

Could you perhaps reinstall it and check if you can see anything off in the console output when installing? You can also copy-paste this installation output and send it to me via email: peter@addaxdatascience.com. I'll investigate what the problem is!

tsuijten commented 10 months ago

The file you suggested does not exist in that location. It does in the envs subfolder: /Applications/.EcoAssist_files/cameratraps/envs/environment-detector-mac.yml

I'll email you the installation log file.

PetervanLunteren commented 10 months ago

Found the issue. Due to an update of the file structure of MegaDetector, it couldn't find the conda environment YAML file. At the time I didn't test it on an intel Mac...

Should be fine if you reinstall it now. Can you confirm?

tsuijten commented 10 months ago

Yes it works now!