Ask Your Question

Cannot find python module rosdep2.rospack

asked 2020-10-19 16:30:11 -0500

lopyou gravatar image

I'm currently doing the tutorial which is offered by ROS wiki. I've defined the beginner_tutorials package (as shown in the following page: ROS Tutorials - Creating Package).

When I try to run the following command on the terminal:

$ rospack depends1 beginner_tutorials

But I got the following error:

ModuleNotFoundError: No module named 'rosdep2'
ModuleNotFoundError: No module named 'rosdep2'
[rospack] Error: could not find python module 'rosdep2.rospack'. is rosdep up-to-date (at least 0.10.4)?

I installed rosdep via the following command and updated it:

$ sudo apt install python3-rosdep2
$ rosdep update

I then ran the same rospack command as before:

$ rospack depends1 beginner_tutorials

The following is the error message I receive:

could not find python module 'rosdep2.rospack', continuing without it

I have read somewhere that removing Anaconda should fix the issue, but I'm trying to understand first why this is happening and secondly I don't want to remove Anaconda as I do quite some work on it!

All help would be greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-03-05 06:49:43 -0500

ssg_1002 gravatar image

Try disabling the conda environment if you are running one in the terminal you are testing the above commands

conda deactivate

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



Asked: 2020-10-19 16:30:11 -0500

Seen: 186 times

Last updated: Mar 05