from ament_package.templates import get_environment_hook_template_path ModuleNotFoundError: No module named 'ament_package' CMake Error at /usr/share/ament_cmake_core/cmake/ament_cmake_package_templates-extras.cmake:41 (message): execute_process(/var/tmp/portage/dev-ros/ament_cmake_export_libraries-0.8.1/temp/python3.7/bin/python /usr/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_developer-libressl-20191211-212527 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * clang: clang version 9.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin llvm: 9.0.1 Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: (none found) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.13.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Fri, 13 Dec 2019 17:06:07 +0000 emerge -qpvO dev-ros/ament_cmake_export_libraries [ebuild N ] dev-ros/ament_cmake_export_libraries-0.8.1
Created attachment 599440 [details] emerge-info.txt
Created attachment 599442 [details] CMakeOutput.log
Created attachment 599444 [details] dev-ros:ament_cmake_export_libraries-0.8.1:20191213-175655.log
Created attachment 599446 [details] emerge-history.txt
Created attachment 599448 [details] environment
Created attachment 599450 [details] etc.portage.tbz2
Created attachment 599452 [details] logs.tbz2
Created attachment 599454 [details] temp.tbz2
maybe dup of bug #702722
what useflags to you have on dev-python/ament_package ? it is merged and in BDEPEND so should be found...
(In reply to Alexis Ballier from comment #10) > what useflags to you have on dev-python/ament_package ? > it is merged and in BDEPEND so should be found... mr-fox ~ # emerge -qpvO dev-python/ament_package [ebuild R ] dev-python/ament_package-0.8.8 USE="-test" PYTHON_TARGETS="python3_6 -python3_7"
(In reply to Toralf Förster from comment #11) > (In reply to Alexis Ballier from comment #10) > > what useflags to you have on dev-python/ament_package ? > > it is merged and in BDEPEND so should be found... > > mr-fox ~ # emerge -qpvO dev-python/ament_package > [ebuild R ] dev-python/ament_package-0.8.8 USE="-test" > PYTHON_TARGETS="python3_6 -python3_7" Ok so this is wrong. @python team: is it a problem with python-any-r1 or my code ? BDEPEND=" $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]') ${PYTHON_DEPS} " But python-any-r1 seems to take python3.7 if it's installed even if PYTHON_USEDEP is not satisfied...
The eclass is not currently equipped with a crystall ball, so you need to declare python_check_deps(). As the description on top of the eclass says. And the manual.
(In reply to Michał Górny from comment #13) > The eclass is not currently equipped with a crystall ball, so you need to > declare python_check_deps(). As the description on top of the eclass says. > And the manual. Ah! Thanks. I was expecting python_gen_any_dep to do this kind of magic for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90931d853657e42c750dd77959747751705687ed commit 90931d853657e42c750dd77959747751705687ed Author: Alexis Ballier <aballier@gentoo.org> AuthorDate: 2019-12-16 11:30:51 +0000 Commit: Alexis Ballier <aballier@gentoo.org> CommitDate: 2019-12-16 13:49:43 +0000 dev-ros/ament_cmake_export_libraries: Declare python_check_deps(). Thanks to mgorny. Closes: https://bugs.gentoo.org/702728 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier <aballier@gentoo.org> .../ament_cmake_export_libraries-0.8.1.ebuild | 5 +++++ .../ament_cmake_export_libraries-9999.ebuild | 5 +++++ 2 files changed, 10 insertions(+)