ERROR:Could not find the colcon-terminal-notifier.app in the install prefix '/usr/local
Operation OS: MacOS Monterey ROS2 Version:Foxy
When I use the command "colcon build",The terminal post the Error:
ERROR:colcon.colcon_notification.desktop_notification.terminal_notifier:Could not find the colcon-terminal-notifier.app in the install prefix '/usr/local'
Can you help me how can I solve this error? Thank you!
The colcon path is
colcon: /usr/local/bin/colcon
This is a bug with the colcon-notification library which has been reported in this pull request.
Until it is fixed in the library, you can work around this by manually making the change in your copy of the
colcon_notification
python library:site_packages
directory used by your ROS2 installation, probably somewhere like/opt/homebrew/lib/python3.11/site-packages
.colcon_notification/desktop_notification/terminal_notifier.py
.As you can see, the fix is simply just changing the filename of the notifier app in the script from using underscores to dashes.