-
Notifications
You must be signed in to change notification settings - Fork 178
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
ImportError: No module named rospkg #33
Comments
Are you using a catkin workspace for your project? Have you source the devel/setup.sh ? |
It was because of python2.7 and python3.8. I don't install rospkg in python2.7, I change my default python I search a long time but get nothing to solve this. Looks like numpy cancel |
If you are in conda environment , possibly this would help you to solve it ; https://anaconda.org/conda-forge/rospkg . |
I'm using Ubuntu 20.04 with noetic. I have already install full edition but I received a bug when I use this command:
roslaunch semantic_slam semantic mapping.launch
[ INFO] [1610618357.717406293]: Semantic octomap generator [max fusion]
Traceback (most recent call last):
File "/home/bie/ros_ws/Sem_SLAM/src/semantic_slam/semantic_cloud/src/semantic_cloud.py", line 14, in
import rospy
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init.py", line 49, in
from .client import spin, myargv, init_node,
File "/opt/ros/noetic/lib/python3/dist-packages/rospy/client.py", line 52, in
import roslib
File "/opt/ros/noetic/lib/python3/dist-packages/roslib/init.py", line 50, in
from roslib.launcher import load_manifest # noqa: F401
File "/opt/ros/noetic/lib/python3/dist-packages/roslib/launcher.py", line 42, in
import rospkg
ImportError: No module named rospkg
[semantic_cloud-2] process has died [pid 28899, exit code 1, cmd /home/bie/ros_ws/Sem_SLAM/src/semantic_slam/semantic_cloud/src/semantic_cloud.py __name:=semantic_cloud __log:=/home/bie/.ros/log/2a1d8be0-564f-11eb-90c0-244bfecec228/semantic_cloud-2.log].
log file: /home/bie/.ros/log/2a1d8be0-564f-11eb-90c0-244bfecec228/semantic_cloud-2*.log
The rivz window was successfully opened, but the semantic_image shows "No Image".
I've tried so hard to fix this, but it didn't work.
Maybe I install anaconda3 and it change my terminal? But I've tried to vim ~/.bashrc and delete anaconda content, it didn't work.
The text was updated successfully, but these errors were encountered: