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

yaml import error & no images created #4

Open
ninafiona opened this issue Mar 22, 2021 · 1 comment
Open

yaml import error & no images created #4

ninafiona opened this issue Mar 22, 2021 · 1 comment

Comments

@ninafiona
Copy link

ninafiona commented Mar 22, 2021

I get the following error:

Traceback (most recent call last):
  File "../../grabdepth.py", line 3, in <module>
    import rospy
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/__init__.py", line 47, in <module>
    from std_msgs.msg import Header
  File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/__init__.py", line 1, in <module>
    from ._Bool import *
  File "/opt/ros/noetic/lib/python3/dist-packages/std_msgs/msg/_Bool.py", line 6, in <module>
    import genpy
  File "/opt/ros/noetic/lib/python3/dist-packages/genpy/__init__.py", line 34, in <module>
    from . message import Message, SerializationError, DeserializationError, MessageException, struct_I
  File "/opt/ros/noetic/lib/python3/dist-packages/genpy/message.py", line 48, in <module>
    import yaml
ImportError: No module named yaml

even though I have pyyaml installed:

pip install pyyaml
Requirement already satisfied: pyyaml in ...

The script executes till the end though and prints Done., but the rgb and depth folders remain empty.

Update: fixed the import error with sudo apt-get install python-yaml, but get ImportError: No module named rospkg now. I think this is a ROS Noetic related issue.

@HetNaik997
Copy link

I am facing a similar issue. The RGB and depth image folders are empty for me as well. Did you get any reasons or fixes for it?

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