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

No module rospkg, No module PySide2, No module PyQt5

asked 2017-03-10 09:02:03 -0500

stevens1111 gravatar image

updated 2017-03-10 23:34:18 -0500

130s gravatar image

Hi I installed Ros and am going through the tutorials. It looks like my installation is not correct because when I run the Understanding Ros Topics tutorial and the command:

$ rosrun rqt_graph rqt_graph

I get errors about no rospkg module, no PySide2 modle no PyQt5 module. I just installed rospkg seperately with

$pip install rospkg

but I cannot get the other two errors to go away. I also don't want to have to install all these modules seperately. If I try to reinstall Ros full with the commaned:

$ sudo apt-get install ros-kinetic-desktop-full

I get the message:

ros-kinetic-desktop-full is already the newest version (1.3.0-0xenial-20170303-123712-0800).
0 upgraded, 0 newly installed, 0 to remove and 206 not upgraded.

What is the proper way to handle this?

edit retag flag offensive close merge delete

Comments

Btw, please copy-paste the entire log output, instead of explaining by your own words (e.g. saying "no PySide2" provides not enough info). That makes harder for us to see what's happening.

130s gravatar image 130s  ( 2017-03-10 23:37:07 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-03-10 23:36:54 -0500

130s gravatar image

updated 2017-03-11 18:13:15 -0500

Looks like you're on Ubuntu Xenial, so install rospkg via apt-get as its wiki page instruction says.


UPDATE @gvdhoorn

Shouldn't rospkg and the other modules have been installed automatically during installation of desktop-full?

It should be. So something is wrong with the OP's environment. rospkg seems to be depended by some core packages on my Ubuntu 14.04.

$ apt-cache rdepends python-rospkg
python-rospkg
Reverse Depends:
  ros-indigo-rqt-web
  ros-indigo-rqt-topic
  ros-indigo-rqt-tf-tree
  ros-indigo-rqt-shell
  ros-indigo-rqt-service-caller
  ros-indigo-rqt-runtime-monitor
  ros-indigo-rqt-robot-steering
  ros-indigo-rqt-robot-monitor
  ros-indigo-rqt-py-console
  ros-indigo-rqt-publisher
  ros-indigo-rqt-pose-view
  ros-indigo-rqt-plot
  ros-indigo-rqt-msg
  ros-indigo-rqt-logger-level
  ros-indigo-rqt-graph
  ros-indigo-rqt-dep
  ros-indigo-rqt-console
  ros-indigo-rqt-capabilities
  ros-indigo-rqt-bhand
  ros-indigo-rqt-bag
  ros-indigo-roswtf
  ros-indigo-rosunit
  ros-indigo-rospy
  ros-indigo-rosmsg
  ros-indigo-rosmake
  ros-indigo-roslib
  ros-indigo-roslaunch
  ros-indigo-rosgraph
  ros-indigo-rosdoc-lite
  ros-indigo-roscreate
  ros-indigo-rosclean
  ros-indigo-rosbag
  ros-indigo-ros-package-web-server
  ros-indigo-rocon-remocon
  ros-indigo-rocon-qt-teleop
  ros-indigo-rocon-qt-master-info
  ros-indigo-rocon-qt-listener
  ros-indigo-rocon-qt-library
  ros-indigo-rocon-qt-app-manager
  ros-indigo-rocon-python-utils
  ros-indigo-rocon-interactions
  ros-indigo-rocon-hue
  ros-indigo-rocon-gateway-graph
  ros-indigo-rocon-app-utilities
  ros-indigo-rocon-app-manager
  ros-indigo-qt-gui-py-common
  ros-indigo-qt-gui
  ros-indigo-multi-level-map-server
  ros-indigo-lama-interfaces
  ros-indigo-industrial-robot-simulator
  ros-indigo-genjava
  ros-indigo-concert-software-farmer
  ros-indigo-concert-qt-teleop
  ros-indigo-concert-qt-service-info
  ros-indigo-concert-qt-map-annotation
  ros-indigo-concert-qt-make-a-map
  ros-indigo-concert-qt-image-stream
  ros-indigo-concert-conductor-graph
  ros-indigo-concert-admin-app
  ros-indigo-camera-info-manager-py
  python3-rospkg
  python-rospkg-modules
  python-rospkg-modules
  python-rosinstall-generator
  python-rosdep
  python-jenkins-tools
  python-roswtf
  python-roslaunch
  python-roslib
  python-rosdep
$ dpkg -p python-rospkg|grep Ver
Version: 1.1.0-1
edit flag offensive delete link more

Comments

1

Shouldn't rospkg and the other modules have been installed automatically during installation of desktop-full?

@stevens1111: are you using any alternative Python interpreters by any chance? Like Anaconda? Or do you have multiple versions of Python on your machine? ROS depends on Python2, not 3.

gvdhoorn gravatar image gvdhoorn  ( 2017-03-11 04:15:22 -0500 )edit
0

answered 2017-03-11 12:40:00 -0500

stevens1111 gravatar image

I am using Ubuntu 16.04 LTS. I thought it would install rospkg automatically. After apt-get rospkg that error went away. However, for the Python errors I realized it was referring to my conda install for Python. I removed the conda bin path from the bashrc file and everything seems to be good. It would be nice to be able to have conda in the path as well but I can make do for now.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-03-10 09:02:03 -0500

Seen: 1,181 times

Last updated: Mar 11 '17