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

rosdep refuses to run

asked 2022-10-16 16:26:59 -0500

updated 2022-10-17 02:54:45 -0500

gvdhoorn gravatar image

This is on Ros Melodic on an Nvidia Jetson TX1 with Ubuntu 18.04. I'm trying to install the dependencies for the Zed-Ros-Wrapper.

Did my installation get corrupted? I removed and reinstalled Rosdep but that didn't change this error from coming up.

uriah@uriah-jetson:~$ rosdep update
Traceback (most recent call last):
  File "/usr/bin/rosdep", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 1380
    raise SyntaxError(e) from e
                            ^
SyntaxError: invalid syntax
edit retag flag offensive close merge delete

Comments

uriah@uriah-jetson:~$ rosdep update

Traceback (most recent call last):

File "/usr/bin/rosdep", line 6, in <module>

from pkg_resources import load_entry_point

File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 1380

raise SyntaxError(e) from e

                        ^

SyntaxError: invalid syntax

Rodolfo8 gravatar image Rodolfo8  ( 2022-10-16 16:32:57 -0500 )edit

It begins to look like the Python 2.7 is trying to use Numpy from Python 3.6 and is getting confused, perhaps

Rodolfo8 gravatar image Rodolfo8  ( 2022-10-16 16:51:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-16 17:13:31 -0500

sudo pip install -U rosdep rosinstall_generator vcstool rosinstall

pip install -U rosdep rosinstall_generator vcstool rosinstall

pip install --upgrade setuptools

rosdep update

These commands fixed the bad setup, whatever it was!

edit flag offensive delete link more

Comments

You're mixing python 2 and 3. Pip installing likely overlayed a python3 version of rosdep so you're only using python3 now. Note that you will have to keep everything in your pip environment up to date manually now.

tfoote gravatar image tfoote  ( 2022-10-16 18:29:51 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-10-16 16:26:59 -0500

Seen: 47 times

Last updated: Oct 17 '22