ROS kinetic: ImportError: No module named terminal_color
Hi,
I a trying to compile a catkin package that shall generate some ROS messages. Unfortunately I get to this error an can't get it resolved:
Traceback (most recent call last):
File "/opt/ros/kinetic/share/geneus/cmake/../../../lib/geneus/gen_eus.py", line 39, in <module>
import geneus
File "/opt/ros/kinetic/lib/python2.7/dist-packages/geneus/__init__.py", line 32, in <module>
from . geneus_main import *
File "/opt/ros/kinetic/lib/python2.7/dist-packages/geneus/geneus_main.py", line 43, in <module>
from catkin import terminal_color
File "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/terminal_color.py", line 2, in <module>
from catkin_pkg.terminal_color import * # noqa
ImportError: No module named terminal_color
Some days ago I updated my ROS packages and before it was working.
Here is some more information:
$ dpkg -L python-catkin-pkg-modules
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-catkin-pkg-modules
/usr/share/doc/python-catkin-pkg-modules/copyright
/usr/share/doc/python-catkin-pkg-modules/changelog.Debian.gz
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/catkin_pkg
/usr/lib/python2.7/dist-packages/catkin_pkg/topological_order.py
/usr/lib/python2.7/dist-packages/catkin_pkg/metapackage.py
/usr/lib/python2.7/dist-packages/catkin_pkg/tool_detection.py
/usr/lib/python2.7/dist-packages/catkin_pkg/terminal_color.py
/usr/lib/python2.7/dist-packages/catkin_pkg/changelog_generator.py
/usr/lib/python2.7/dist-packages/catkin_pkg/__init__.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cmake.py
/usr/lib/python2.7/dist-packages/catkin_pkg/changelog_generator_vcs.py
/usr/lib/python2.7/dist-packages/catkin_pkg/templates
/usr/lib/python2.7/dist-packages/catkin_pkg/templates/CMakeLists.txt.in
/usr/lib/python2.7/dist-packages/catkin_pkg/templates/package.xml.in
/usr/lib/python2.7/dist-packages/catkin_pkg/templates/metapackage.cmake.in
/usr/lib/python2.7/dist-packages/catkin_pkg/python_setup.py
/usr/lib/python2.7/dist-packages/catkin_pkg/group_dependency.py
/usr/lib/python2.7/dist-packages/catkin_pkg/package_templates.py
/usr/lib/python2.7/dist-packages/catkin_pkg/workspace_vcs.py
/usr/lib/python2.7/dist-packages/catkin_pkg/package.py
/usr/lib/python2.7/dist-packages/catkin_pkg/group_membership.py
/usr/lib/python2.7/dist-packages/catkin_pkg/packages.py
/usr/lib/python2.7/dist-packages/catkin_pkg/changelog.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/prepare_release.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/create_pkg.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/test_changelog.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/generate_changelog.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/tag_changelog.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/__init__.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/find_pkg.py
/usr/lib/python2.7/dist-packages/catkin_pkg/cli/package_version.py
/usr/lib/python2.7/dist-packages/catkin_pkg/package_version.py
/usr/lib/python2.7/dist-packages/catkin_pkg/condition.py
/usr/lib/python2.7/dist-packages/catkin_pkg/rospack.py
/usr/lib/python2.7/dist-packages/catkin_pkg/workspaces.py
/usr/lib/python2.7/dist-packages/catkin_pkg_modules-0.4.8.egg-info
/usr/lib/python2.7/dist-packages/catkin_pkg_modules-0.4.8.egg-info/top_level.txt
/usr/lib/python2.7/dist-packages/catkin_pkg_modules-0.4.8.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/catkin_pkg_modules-0.4.8.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/catkin_pkg_modules-0.4.8.egg-info/requires.txt
$ sudo ...
I believe this is a duplicate of #q294780. Can you please check?
you might be right although I am on ROS kinetic and not melodic. Also python-catkin-pkg and python-catkin-pkg-modules are up to date which is the solution of the accepted answer in the other question. Pip also tells me the package is up to date with "pip install --upgrade catkin_pkg_modules".