Cannot find python module rosdep2.rospack
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
roscpp
std_msgs
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!