autowarefoundation / autoware-deb-packages

1 stars 2 forks source link

[2024.02.20] ament_cmake source package fails to build because ament_package Python package can't be found #70

Closed esteve closed 4 months ago

esteve commented 4 months ago

Approaches tried:

Potential improvements:

Will wait until https://github.com/autowarefoundation/autoware-deb-packages/pull/69 finishes to close this issue.

esteve commented 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

esteve commented 4 months ago

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

esteve commented 4 months ago

Fixed by #72