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

Can not open on macOS due to `xcrun: error` #21

Closed alexnkorovin closed 1 year ago

alexnkorovin commented 1 year ago

Hello,

I have installed EcoAssist on Max with Intel CPU with MacOS Ventura 13.4.1 (c) (22F770820d) and Xcode 14.3.1 (14E300c) Installation has finished without any visible issues, however when I double clicking EcoAssist.command file the Terminal window appears with the following text:

/Applications/EcoAssist.command ; exit; (base) ➜ ~ /Applications/EcoAssist.command ; exit; This is an OSX computer... ...with an Intel processor.

Saving session...completed.

[Process completed]

No application window is opened. Could you give a hint for this issue. I really like the idea and would like to test you package

Thank you for the help!

PetervanLunteren commented 1 year ago

Hi @alexnkorovin,

Not sure what's going on, but we can find out! You can enable console output by

  1. opening your /Applications/EcoAssist.command with a text editor like TextEdit or Visual Studio Code;
  2. outcomment these lines like so:
    # exec 1> $LOCATION_ECOASSIST_FILES/EcoAssist/logfiles/stdout.txt
    # exec 2> $LOCATION_ECOASSIST_FILES/EcoAssist/logfiles/stderr.txt
  3. close and save the file;
  4. start EcoAssist as you would do normally.

This will not fix the issue, but it will give us more information in whats going on. Please share the console output here.

Thanks!

alexnkorovin commented 1 year ago

Thank you for your hint! Problem with starting up the app was solved.

I checked up stderr.txt file and found the error massage: stderr: 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun'

Looking around I found solution here: https://setapp.com/how-to/fix-xcrun-error The issue is in missing xcode path after upgrading to later version of MacOS. Problem was solver with the terminal command: sudo xcode-select -s /Applications/Xcode.app

PetervanLunteren commented 1 year ago

Perfect, good luck!