Lately, several macOS users of PROS have been experiencing the following error:
Error: Command failed: prosv5 --machine-output --version
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/Cellar/pros-cli/3.1.4/libexec/bin/python3.7
Reason: image not found
This is a critical issue because it prevents ANY prosv5 command from being run. Luckily, it can be resolved. After some trial and error, I was able to fix this issue. Your python version and macOS version should not really matter in this case. Here are the following steps I followed.
Check your homebrew install
- run
brew doctor
: address any warnings until it returns:Your system is ready to brew
. - run
brew cleanup
this should take care of itself automatically
Note: I caution you to be careful as you fix the brew warnings. Know what a command does before you run it.
Reinstall PROS by following these exact steps
- Save any PROS projects and close any editor windows.
- run
brew tap osx-cross/arm && brew install arm-gcc-bin
- run
brew tap purduesigbots/pros
- run
brew cask reinstall pros-editor
- run
brew reinstall pros-cli
(Potentially optional, but still a good idea to run)
Note: These commands are from the PROS website: homebrew directions. You can read what each one does there.
Once you restart your terminal and reopen PROS the issue should be resolved.
You can test if everything is working by running prosv5
in any terminal window.
Expected output:
Usage: pros [OPTIONS] COMMAND [ARGS]...
Options:
--version Displays version and exits
--help Show this message and exit.
Standard Options:
--debug Enable debugging output
--verbose Enable verbose output
-l, --log [DEBUG|INFO|WARNING|ERROR|CRITICAL]
Logging level
--logfile <PATH CHOICE>... Log messages to a file
Commands:
conductor Perform project management for PROS
lsusb List plugged in VEX Devices
make Build current PROS project or cwd
terminal Open a terminal to a serial port There are...
upgrade Check for updates to the PROS CLI
upload Upload a binary to a microcontroller.
v5 Utilities for managing the VEX V5
Hopefully this helps!