ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

inspire's profile - activity

2019-02-23 13:13:24 -0500 marked best answer 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 ...
(more)
2018-09-04 09:27:12 -0500 received badge  Famous Question (source)
2018-08-27 23:27:52 -0500 received badge  Notable Question (source)
2018-08-27 09:26:47 -0500 received badge  Popular Question (source)
2018-08-27 08:35:54 -0500 commented answer ROS kinetic: ImportError: No module named terminal_color

good idea, thanks :)

2018-08-27 08:20:06 -0500 commented answer Ubuntu18 and ROS melodic catkin error: ImportError: No module named terminal_color

okay I found a workaround: https://answers.ros.org/question/301702/ros-kinetic-importerror-no-module-named-terminal_colo

2018-08-27 08:19:32 -0500 edited answer ROS kinetic: ImportError: No module named terminal_color

Okay I found a workaround: In /opt/ros/kinetic/lib/python2.7/dist-packages/catkin/terminal_color.py change the line fro

2018-08-27 08:19:24 -0500 answered a question ROS kinetic: ImportError: No module named terminal_color

Okay I found a workaround: In /opt/ros/kinetic/lib/python2.7/dist-packages/catkin/terminal_color.py change the line fro

2018-08-27 07:42:13 -0500 commented answer Ubuntu18 and ROS melodic catkin error: ImportError: No module named terminal_color

"sudo apt update && sudo apt install python-catkin-pkg python-catkin-pkg-modules" says that everything is up to

2018-08-27 07:36:21 -0500 commented answer Ubuntu18 and ROS melodic catkin error: ImportError: No module named terminal_color

the "pip install --upgrade catkin_pkg_modules" command (without sudo) tells me it is already up to date (ROS kinetic her

2018-08-27 07:34:58 -0500 commented question ROS kinetic: ImportError: No module named terminal_color

you might be right although I am on ROS kinetic and not melodic. Also python-catkin-pkg and python-catkin-pkg-modules ar

2018-08-27 07:33:28 -0500 commented question ROS kinetic: ImportError: No module named terminal_color

you might be right although I am on ROS kinetic and not melodic. Also python-catkin-pkg and python-catkin-pkg-modules ar

2018-08-27 07:33:28 -0500 received badge  Commentator
2018-08-27 07:24:41 -0500 edited question ROS kinetic: ImportError: No module named terminal_color

ROS kinetic: ImportError: No module named terminal_color Hi, I a trying to compile a catkin package that shall generate

2018-08-27 07:12:19 -0500 asked a question ROS kinetic: ImportError: No module named terminal_color

ROS kinetic: ImportError: No module named terminal_color Hi, I a trying to compile a catkin package that shall generate

2018-08-08 01:40:37 -0500 marked best answer Completely disable logging outputs on screen

Hi, I want to disable the ROS logging in the console completely, but still have the logging to the /rosout topic. I tried these two options:

  1. Set output="log" in the launch file. This disables the output of Debug, Info and Warning messages but still, Error and Fatal messages are shown in the console.
  2. Set the logger level to Fatal but this completely disables the /rosout topic, too.

Are there any other possibilities I could try out?

Thanks!

2018-07-14 09:46:50 -0500 received badge  Famous Question (source)
2018-07-14 09:46:50 -0500 received badge  Notable Question (source)
2018-07-14 09:46:50 -0500 received badge  Popular Question (source)
2018-06-18 03:33:01 -0500 received badge  Famous Question (source)
2018-06-15 17:39:23 -0500 marked best answer ROS message subfolder

Hi, I noticed that ROS does not correctly see message files in subfolders of the "msg" folder. The add_message_files command can take a DIRECTORY command which works partly:

add_message_files(
  DIRECTORY
  msg/subfolder1
  FILES
  testmessage.msg
)

Both catkin_make_isolated and catkin build run perfectly but after a source devel/setup.bash, the rosmsg list command does not show this testmessage. If I change the subfolder name to something different in the CMakeLists file, cmake complaints about the missing path. Hence, the folder path is recognized partly.

The only solution I found was to move all message files out of subfolders such they are directly placed at e.g., msg/testmessage.msg. Then, the rosmsg list command shows the message.

Is there another way to use subfolders for message definitions?

Thanks!

2017-10-26 05:31:38 -0500 received badge  Famous Question (source)
2017-10-26 05:31:38 -0500 received badge  Notable Question (source)
2017-10-26 05:31:38 -0500 received badge  Popular Question (source)
2017-07-20 23:17:18 -0500 received badge  Famous Question (source)
2017-06-27 13:33:56 -0500 received badge  Famous Question (source)
2017-06-27 13:33:56 -0500 received badge  Notable Question (source)
2017-06-27 13:33:56 -0500 received badge  Popular Question (source)
2017-05-17 12:17:11 -0500 received badge  Famous Question (source)
2017-05-03 10:30:23 -0500 commented question catkin build with cmake file and flags

I mean the top-level package. That one that holds the main function...

2017-05-03 09:48:39 -0500 edited question catkin build with cmake file and flags

catkin build with cmake file and flags Hi, I have many packages that rely on each other. With "catkin build", all packa

2017-05-03 09:27:36 -0500 asked a question catkin build with cmake file and flags

catkin build with cmake file and flags Hi, I have many packages that rely on each other. With "catkin build", all packa

2017-04-28 11:59:17 -0500 marked best answer Wrap external library as catkin package

Hi,

I have a precompiled library that I want to use in multiple catkin packages. Hence, I want to wrap this external library with a catkin package which then can be used in other packages with the XML command <build_depend>wrapper_library</build_depend> and the cmake command find_package(wrapper_library). Can you tell me which commands must be included in the cmakelists file of the wrapper_library such that it easily provides the wrapped library to other packages? Do these other catkin packages need more commands like the target_link_libraries(mypackage wrapper_library)? I don't really know how to start because this use case is not documented in the Ros tutorials, I think... And I am no cmake expert :)

Thanks in advance!

inspire

2017-04-28 11:59:17 -0500 received badge  Scholar (source)
2017-04-28 11:59:16 -0500 received badge  Supporter (source)
2017-04-28 11:59:14 -0500 commented answer Wrap external library as catkin package

thanks, that helped a lot!

2017-04-28 11:59:00 -0500 received badge  Notable Question (source)
2017-04-27 18:31:29 -0500 received badge  Notable Question (source)
2017-04-27 15:08:48 -0500 commented answer Completely disable logging outputs on screen

Ah yeah, that's indeed a solution. But I have another logging framework running that should still be able to log everyth

2017-04-27 15:02:44 -0500 received badge  Popular Question (source)
2017-04-27 13:04:18 -0500 edited question Completely disable logging outputs on screen

Completely disable logging outputs on screen Hi, I want to disable the ROS logging in the console completely, but still

2017-04-27 11:12:12 -0500 asked a question Completely disable logging outputs on screen

Completely disable logging outputs on screen Hi, I want to disable the ROS logging in the console completely, but still

2017-04-23 20:34:21 -0500 received badge  Popular Question (source)
2017-04-23 13:53:29 -0500 commented question Wrap external library as catkin package

Yeah and I am able to automatically compile it with a similar catkin wrapper. But this library only compiles with things

2017-04-23 13:30:59 -0500 edited question Wrap external library as catkin package

Wrap external library as catkin package Hi, I have a precompiled library that I want to use in multiple catkin packages

2017-04-23 13:30:00 -0500 asked a question Wrap external library as catkin package

Wrap external library as catkin package Hi, I have a precompiled library that I want to use in multiple catkin packages.

2017-03-20 12:55:43 -0500 received badge  Famous Question (source)
2017-03-18 10:11:23 -0500 received badge  Notable Question (source)
2017-03-18 08:09:14 -0500 received badge  Student (source)