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

" $ rospack depends beginner_tutorials" error

asked 2017-08-22 02:36:59 -0500

PerOve gravatar image

updated 2017-08-22 05:49:12 -0500

Straight dump of console output:

ImportError: No module named rosdep2.rospack
ImportError: No module named rosdep2.rospack
[rospack] Error: could not find python module 'rosdep2.rospack'. is rosdep up-to-date (at least 0.10.4)?
$ env | grep ROS
ROS_ROOT=/opt/ros/lunar/share/ros
ROS_PACKAGE_PATH=/home/perove/catkin_ws/src:/opt/ros/lunar/share
ROS_MASTER_URI=http://localhost:11311
ROSLISP_PACKAGE_DIRECTORIES=/home/perove/catkin_ws/devel/share/common-lisp
ROS_DISTRO=lunar
ROS_ETC_DIR=/opt/ros/lunar/etc/ros
edit retag flag offensive close merge delete

Comments

1

This is not really a question. Please see our Support Guidelines.

gvdhoorn gravatar image gvdhoorn  ( 2017-08-22 02:39:36 -0500 )edit

What is the cause of this error.? I have subsequently re-installed a new kinetic instance in a virtual machine ubuntu 16.04 with python 3.6 (default). It appears to run now. I previously ran with 2.7 environment (Anaconda).. this now gives the same error. What Python should be used?

PerOve gravatar image PerOve  ( 2017-08-22 04:31:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-22 04:34:08 -0500

gvdhoorn gravatar image

updated 2017-08-22 04:36:00 -0500

Lunar only supports Python 2.7 (see REP-3 and (fi) #q269143). If you want to use Anaconda, you'll have to make sure that all ROS Python packages have been installed for that as Anaconda does not use the default / system Python packages. That is most likely why you are getting that error.

There have been quite some questions and answers about Anaconda posted/resolved recently, so a search should provide some pointers.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-08-22 02:36:59 -0500

Seen: 414 times

Last updated: Aug 22 '17