ros-naoqi / nao_virtual

all tools to simulate nao robot
Apache License 2.0
43 stars 26 forks source link

ImportError: No module named rospkg #13

Closed zhudelong closed 8 years ago

zhudelong commented 8 years ago

I installed the simulation environment of Nao Players in RobCup [ https://github.com/ros-naoqi/nao_virtual ] Everything is okay but cannot find Rospkg. I reinstalled with many methods but still not work. In fact, the pkg is there exactly and if I import rospkg in python client, the error occurs. I wonder if there is some problem about Python. Hope someone can help me. Thank you very much

Traceback (most recent call last): File "/opt/ros/indigo/share/xacro/xacro.py", line 60, in import xacro File "/opt/ros/indigo/lib/python2.7/dist-packages/xacro/init.py", line 45, in from roslaunch import substitution_args File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/init.py", line 48, in import rospkg

ImportError: No module named rospkg

while processing /opt/ros/indigo/share/nao_description/launch/upload_nao.launch: Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/indigo/share/xacro/xacro.py /opt/ros/indigo/share/nao_description/urdf/naoV40_generated_urdf/nao_robot.xacro] returned with code [1].

zhudelong commented 8 years ago

I find out the reason. since i installed the conda and the original path was rewrite.