Closed esteve closed 4 months ago
Seems to be fixed by installing python3-ament-package
. It doesn't seem to cause any conflicts with ros-humble-ament-package
, sicne the PYTHONPATH
in /opt/ros
takes precedence over /usr/lib/python3/dist-packages
I replaced installing python3-ament-package
with setting the PYTHONPATH
environment variable to point to /opt/ros/humble
so that when ros-humble-ament-package
is installed as a build dependency, the ament_package
module will be available during the build of ament_cmake_core
Fixed by #72
Approaches tried:
ros-humble-ament-package
in$extra_commands
: didn't work, Python can't find the module in$PYTHONPATH
ros-humble-ament-packages
to$core_depends
inSBUILD_CONF
: worked, but not optimal because it'd mean declaring it as a dependencypython3-ament-package
(from the Ubuntu/Debian APT repository) via$external_commands
: worked and seems the most correct approachPotential improvements:
python3-ament-package
when buildingros-humble-ament-cmake-core
Will wait until https://github.com/autowarefoundation/autoware-deb-packages/pull/69 finishes to close this issue.