Ask Your Question

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

asked 2014-06-02 11:42:45 -0500

jashanvir gravatar image

Hello ! I am trying to install asctec_drivers so that I can control the quadrotor through ros in morse simulator.

When I try to run the rosdep install asctec_drivers i get the following error

ERROR: Rosdep experienced an error: 'NoneType' object has no attribute 'strip' Please go to the rosdep page [1] and file a bug report with the stack trace below. [1] : 
rosdep version: 0.10.27

Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/rosdep2/", line 121, in rosdep_main
    exit_code = _rosdep_main(args)   File "/usr/local/lib/python2.7/dist-packages/rosdep2/", line 279, in _rosdep_main
    return _package_args_handler(command, parser, options, args)   File "/usr/local/lib/python2.7/dist-packages/rosdep2/", line 335, in _package_args_handler
    val = rospkg.expand_to_packages(args, rospack, rosstack)   File "/usr/local/lib/python2.7/dist-packages/rospkg/", line 419, in expand_to_packages
    package_list = rospack.list()   File "/usr/local/lib/python2.7/dist-packages/rospkg/", line 179, in list
    self._update_location_cache()   File "/usr/local/lib/python2.7/dist-packages/rospkg/", line 171, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)   File "/usr/local/lib/python2.7/dist-packages/rospkg/", 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 overcome this error Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-02 11:51:50 -0500

dornhege gravatar image

File "/usr/local/lib/python2.7/dist...

This look like an old rosdep install. What do you get rosdep --version? Install rosdep from apt-get and remove the local install in /usr/local

which rosdep shoudl point to /usr/bin/rosdep.

edit flag offensive delete link more


I get 0.10.27. and when i tried to uninstall it i got the following error E: Unable to locate package rosdep

jashanvir gravatar image jashanvir  ( 2014-06-02 17:46:19 -0500 )edit

That seems to be a recent version. It looks like a bug to me. Maybe due to a misconfiguration, but it still shouldn't crash.

dornhege gravatar image dornhege  ( 2014-06-03 08:08:54 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2014-06-02 11:42:45 -0500

Seen: 2,420 times

Last updated: Jun 02 '14