i starting ros2 in alpha phase. while building package ros1_bridge
got error:
traceback (most recent call last): file "bin/ros1_bridge_generate_factories", line 11, in <module> ros1_bridge import generate_cpp file "/home/ros/ros2_ws/src/ros2/ros1_bridge/ros1_bridge/__init__.py", line 13, in <module> import genmsg importerror: no module named 'genmsg'
this quite strange. on same computer build same code without problem. thing changed: have installed ros kinetic.
i found out in synaptic have 2 different packages of genmsg
installed: python-genmsg
, ros-kinetic-genmsg
. first 1 comes dependency of ros2 second 1 ros. may both necessary. think python-stuff , not familiar python. can run again?
this happens while dependencies installed ros , ros2 on same machine. package python-genmsg
, ros-kinetic-genmsg
. genmsg
can found @ these places:
- /opt/ros/kinetic/lib/python2.7/dist-packages
- /usr/lib/python2.7/dist-packages
this bring python run trouble. in respect ros1_bridge
shall fit ros kinetic environment python variable pythonpath
set kinetic one:
export pythonpath=/opt/ros/kinetic/lib/python2.7/dist-packages/
now restart build , build runs now...
Comments
Post a Comment