-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 20.04 and ROS Noetic -> ImportError: No module named rospkg #226
Comments
The most common reason I've seen missing system modules like this results from the use of a non-default Python interpreter. From what I can tell, you installed Please run
If my hunch is incorrect and you are indeed using the system interpreter, then we'll need to dig deeper. Please run the following and let me know what you find: |
Hi ! FIY we spent a lot of time checking the repo sources, environment setup etc.. Couldn't find anything different from Ubuntu18.04 on which the simulator runs well. It seems that this issue is related to Ubuntu 20.04 depreciating python2, is that correct ? is there a way around this ? Thanks ! |
Hey, if you are using anaconda, try the same launch file after deactivating anaconda using: conda deactivate |
Ubuntu 20.04 has dropped support for many python2 packages in favor of their python3 counterparts. Please do not use old issues to ask new questions. You can ask questions on https://answers.ros.org or if you believe that you've found a bug in rospkg you can report it with a new issue. |
This is an issue because Ubuntu 20.04 has dropped python and python2, and now using python 3. Install the following lib to run ROS on Ubuntu 20.04: |
Yes, you are correct. |
I don't recommend installing this when running ROS as it could interfere with scripts that expect /usr/bin/python to be python 2 and will not run correctly. If you encounter difficulties setting up ROS please ask for help on https://answers.ros.org To avoid this issue becoming a honeypot for future questions I am going to close it (the original author never followed up) and lock it. |
Hi, I'm working on Ubuntu 20.04 and ROS Noetic. I want to install this tello driver but I get the following error message:
I've seen that
ImportError: No module named rospkg
is pretty well known and I've been reading through a lot of posts but most of the people either have problems with conda (which does not run on my machine) or with the python version (they changed the version from 2. to 3.). My python version is 3.8.10 so I don't think that there is the problem. Does anyone know what the problem could be? Help would be much appreciated.The text was updated successfully, but these errors were encountered: