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

Revision history [back]

The 'import tf' was a distraction that delayed finding this issue which is about python 3 pickle incompatibility with python 2:

https://github.com/ros-infrastructure/rosdep/issues/379

And my rosdep does have #!/usr/bin/python3 in it and is in /usr/local/bin (but on two other systems it just has a #!/usr/bin/python and is only in /usr/bin/rosdep, reports the same version). There is also a /usr/bin/rosdep but the local bin takes precedence.

The 'import tf' was a distraction that delayed finding this issue which is about python 3 pickle incompatibility with python 2:

https://github.com/ros-infrastructure/rosdep/issues/379

And my rosdep does have #!/usr/bin/python3 in it and is in /usr/local/bin (but on two other systems it just has a #!/usr/bin/python and is only in /usr/bin/rosdep, reports the same version). There is also a /usr/bin/rosdep but the local bin takes precedence.

This answer http://answers.ros.org/question/42818/tutorial-building-a-ros-package-rosdep-experienced-an-internal-error-nonetype-object-has-no-attribute-copy/ shows how to remove the wrong rosdep

sudo pip uninstall rosdep
Not uninstalling rosdep at /usr/lib/python2.7/dist-packages, owned by OS

Therefore it was installed by easy_install, and has to be removed by hand. There are a lot of ros files in /usr/local/bin, I'll try removing all of them.

The 'import tf' was a distraction that delayed finding this issue which is about python 3 pickle incompatibility with python 2:

https://github.com/ros-infrastructure/rosdep/issues/379

And my rosdep does have #!/usr/bin/python3 in it and is in /usr/local/bin (but on two other systems it just has a #!/usr/bin/python and is only in /usr/bin/rosdep, reports the same version). There is also a /usr/bin/rosdep but the local bin takes precedence.

This answer http://answers.ros.org/question/42818/tutorial-building-a-ros-package-rosdep-experienced-an-internal-error-nonetype-object-has-no-attribute-copy/ shows how to remove the wrong rosdeprosdep:

sudo pip uninstall rosdep
Not uninstalling rosdep at /usr/lib/python2.7/dist-packages, owned by OS

Therefore it was installed by easy_install, and has to be removed by hand. There are were a lot of ros files in /usr/local/bin, /usr/local/bin (rosversion, roslocate, rosinstall, rosdistro, rosco), I'll try removing remove all of them.

them:

sudo rm /usr/local/bin/ros*
sudo rm /usr/local/bin/catkin*
sudo rm -rf /usr/local/lib/python3.4/dist-packages/ros*
sudo rm -rf /usr/local/lib/python3.4/dist-packages/catkin_pkg

I'm not sure where they came from, they were all dated December 2nd, and I must not have run rosdep update since then until yesterday.