Ask Your Question
0

rqt AttributeError: 'NoneType' object has no attribute 'strip'

asked 2014-10-29 09:48:13 -0600

duanxiaobin gravatar image

Hello! I am trying to run rqt_gragh as the tutorials/understanding topics said. But when I run that I got following error.

   human@pangaea:~$ rosrun rqt_gui rqt_gui 
Traceback (most recent call last):
  File "/opt/ros/groovy/lib/rqt_gui/rqt_gui", line 8, in <module>
    p = r.get_path('rqt_gui')
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 188, in get_path
    self._update_location_cache()
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 171, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 68, in list_by_path
    resource_name = root.findtext('name').strip(' \n\r\t')
AttributeError: 'NoneType' object has no attribute 'strip'

I would really appreciate if anybody can tell me how to figure it out.Thanks!

edit retag flag offensive close merge delete

Comments

It looks like you have an invalid package.xml / manifest.xml somewhere on your ROS_PACKAGE_PATH. Do you have any custom packages in your environment? which are not installed from Debian?

Dirk Thomas gravatar image Dirk Thomas  ( 2014-10-29 10:58:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-10-29 23:43:40 -0600

duanxiaobin gravatar image

I make a mistake about setup environment. Before that I throught I only need type source /opt/ros/indigo/setup.bashone time.So I open a new terminal not type that, then rosrun rqt-gragh rqt-graghthe error occur.I should setup the environment correctly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-10-29 09:48:13 -0600

Seen: 977 times

Last updated: Oct 29 '14