Open traversaro opened 3 years ago
Hi, thanks for trying!
Indeed it looks like it chooses the wrong python interpreter:
execute_process(/home/traversaro/mambaforge/bin/python3
/home/traversaro/mambaforge/envs/ros2env/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py
/home/traversaro/yarp-ros2/ros2_interfaces_ws/build/map2d_nws_ros2_msgs/ament_cmake_package_templates/templates.cmake) returned error code 1
It should read execute_process(/home/traversaro/mambaforge/envs/ros2env/bin/python3
and not mambaforge/bin/python3
.
Will have to investigate why this happens. Maybe if you can supply extra-cmake args to colcon a hotfix would be to give the absolute path the python interpreter ($CONDA_PREFIX/bin/python
with activated ros2env).
Good catch, I had missed that. I will check.
This should be fixed in Galactic / Humble.
I wanted to start testing the ROS2 packages by building a simple package (from https://github.com/robotology-playground/yarp-ros2), but compilation is failing.
Installation process
Build command
Build error
Notes
Note that
ros-foxy-ament-package
is correctly installed, and if I open a python interpreter and runfrom ament_package.templates import get_environment_hook_template_path
it works fine, so probably the issue is that a new Python interpreter that is not correctly configured is launched, or something similar.Complete environment