AttributeError: 'module' object has no attribute 'RosPack'
please help me i don't know what i'm missing , when i run the tuto of client server i get this issue please help !!!!!
Traceback (most recent call last):
File "/home/bxxmed/tuto_ws/src/rospkg_dem/scripts/add_two_ints_servertuto.py", line 4, in <module>
import rospy
File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/__init__.py", line 49, in <module>
from .client import spin, myargv, init_node, \
File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/client.py", line 52, in <module>
import roslib
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
from roslib.launcher import load_manifest
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 48, in <module>
_rospack = rospkg.RosPack()
AttributeError: 'module' object has no attribute 'RosPack'
Not using Anaconda by any chance?
i figured out the problem i was doing catkin_make instead of catkin build , but i really don't know the difference between them !!!
That should not make any difference.
You did do a
source /home/bxxmed/tuto_ws/devel/setup.bash
before yourrosrun rospkg_dem add_two_ints_servertuto.py
, right?yes sure , i did that one thing i did is i install python 2.7.14 without removing previous version , and i installed roboware studio , i don't know may be this cause this bug !!!