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 errors in running handsfree_v6_plus_arm_bringup #18

Open
SkyWxxk opened this issue Apr 24, 2023 · 1 comment
Open

YAML errors in running handsfree_v6_plus_arm_bringup #18

SkyWxxk opened this issue Apr 24, 2023 · 1 comment

Comments

@SkyWxxk
Copy link

SkyWxxk commented Apr 24, 2023

When I running the roslaunch handsfree_v6_plus_arm_bringup arm_bringup.launch sim:=true in terminal, the errors occured. Some of errors are below:
Traceback (most recent call last): File "v6_plus_arm_sim_hw.py", line 4, in <module> 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 File "/opt/ros/noetic/lib/python3/dist-packages/yaml/__init__.py", line 399 class YAMLObject(metaclass=YAMLObjectMetaclass): ^ SyntaxError: invalid syntax process[arm_action_server-9]: started with pid [14471] Traceback (most recent call last): File "arm_controller_trajectory.py", line 7, in <module> 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 File "/opt/ros/noetic/lib/python3/dist-packages/yaml/__init__.py", line 399 class YAMLObject(metaclass=YAMLObjectMetaclass): ^ SyntaxError: invalid syntax Traceback (most recent call last): File "joint_state_publisher.py", line 3, in <module> 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 File "/opt/ros/noetic/lib/python3/dist-packages/yaml/__init__.py", line 399 class YAMLObject(metaclass=YAMLObjectMetaclass): ^ SyntaxError: invalid syntax [v6_plus_arm_sim_hw-2] process has died [pid 14463, exit code 1, cmd /home/nick/handsfree/handsfree_ros_ws/src/handsfree_arm/handsfree_v6_plus_arm/handsfree_v6_plus_arm_hw/scripts/v6_plus_arm_sim_hw.pyc __name:=v6_plus_arm_sim_hw __log:=/home/nick/.ros/log/07dab29e-e26e-11ed-94d5-8d5134ab6ba9/v6_plus_arm_sim_hw-2.log]. log file: /home/nick/.ros/log/07dab29e-e26e-11ed-94d5-8d5134ab6ba9/v6_plus_arm_sim_hw-2*.log
These handsfree packages can work in handsfree girreff robot which is ubuntu16 with ros kinetic. I want to run these packages in ubuntu20 with ros noetic. How to fix these problems?

@yangzhongii
Copy link

May be you should try python2.7, because the packages are designed for ubuntu16 which uses python2. The difference between python2 and python3 may lead to SyntaxError easily.

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

No branches or pull requests

2 participants