Skip to content
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

cannot run set origin.py script #47

Open
Illusion-1404 opened this issue Aug 25, 2021 · 1 comment
Open

cannot run set origin.py script #47

Illusion-1404 opened this issue Aug 25, 2021 · 1 comment

Comments

@Illusion-1404
Copy link

I am getting this strange error , even though yaml is installed for python 2.7

Traceback (most recent call last):
File "/home/octo/catkin_ws/src/vision_to_mavros/scripts/set_origin.py", line 9, in
import rospy
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/init.py", line 47, in
from std_msgs.msg import Header
File "/opt/ros/melodic/lib/python2.7/dist-packages/std_msgs/msg/init.py", line 1, in
from ._Bool import *
File "/opt/ros/melodic/lib/python2.7/dist-packages/std_msgs/msg/_Bool.py", line 6, in
import genpy
File "/opt/ros/melodic/lib/python2.7/dist-packages/genpy/init.py", line 34, in
from . message import Message, SerializationError, DeserializationError, MessageException, struct_I
File "/opt/ros/melodic/lib/python2.7/dist-packages/genpy/message.py", line 48, in
import yaml
ModuleNotFoundError: No module named 'yaml'

@thien94
Copy link
Owner

thien94 commented Aug 30, 2021

You could try:

  • verify which python version is the default one. If possible, install yaml in python3 as well,
  • run the script in python2 and python3 and see which is the correct version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants