Closed mavneo closed 1 month ago
Can you try with “What to do if I have Python-related problems during the build of custom messages?" question in https://robostack.github.io/FAQ.html ?
Feel free to reopen if it’s still an issue
Thanks for the quick update, but still encountering the same error. zsh: no such file or directory: -DPython_EXECUTABLE=/Users/manojbin2/miniforge3/envs/ros_env/bin/python
Thanks for the quick update, but still encountering the same error. zsh: no such file or directory: -DPython_EXECUTABLE=/Users/manojbin2/miniforge3/envs/ros_env/bin/python
Are you encountering the same error of the original post or the new error you are reporting?
@traversaro I'm encountering the same error
You are installing packages from robostack-humble, can you follow the instructions on the website and use the robostack-staging channel?
@traversaro I have used this https://robostack.github.io/GettingStarted.html as ref for installing.
@traversaro I have used this https://robostack.github.io/GettingStarted.html as ref for installing.
Those instructions refer to robostack-staging channel, that is not the one reported in mamba list.
I’m quite certain that the description in the FAQ fixes this - please follow the instructions carefully.
I'm having the same problem. Followed the instructions in the FAQ, it works for cmake
but not for colcon build
. Using robostack-staging
channel on an aarch64 Mac, just updated all packages.
$ colcon build --cmake-args="-DPython_EXECUTABLE=$CONDA_PREFIX/bin/python -DPython3_EXECUTABLE=$CONDA_PREFIX/bin/python -DPYTHON_EXECUTABLE=$CONDA_PREFIX/bin/python -DPython3_FIND_STRATEGY=LOCATION -DPython_FIND_STRATEGY=LOCATION"
...
CMake Error at /opt/homebrew/Caskroom/miniconda/base/envs/ros2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found
version "3.12.2")
...
$ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DPython_EXECUTABLE=/opt/homebrew/Caskroom/miniconda/base/envs/ros2/bin/python -DPython3_EXECUTABLE=/opt/homebrew/Caskroom/miniconda/base/envs/ros2/bin/python -DPYTHON_EXECUTABLE=/opt/homebrew/Caskroom/miniconda/base/envs/ros2/bin/python -DPython3_FIND_STRATEGY=LOCATION -DPython_FIND_STRATEGY=LOCATION
...
success
Please help, thank you!
Hi @etherswangel - please open a new issue and provide all the requested information :)
Solution to issue cannot be found in the documentation.
Issue
Installed packages
Environment info