-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conda python 3.10 env issues when launching driver #330
Comments
The logging node requires the 'packaging' module. (py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py Fixed by running |
The proto2ros package needs the multipled package. Fixed by running |
The ros_helpers.py requires cv2 (py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py Fixed by running |
Thank you for figuring these out. We haven't currently supported a conda installation, so it's good knowledge to have for users who choose to install this way. |
Did you try running the |
@khughes-bdai Yes I got these errors after running the |
By the way, there were a few more conda and pip installs I had to run in order to get the driver running. This is my environment file, which you can try to use on a different machine to reproduce the same env. (it was originally a .yml file but github won't let me attach that file type) |
Thanks for all this info! I'll leave this issue open in case there are other anaconda users who might benefit from this. |
Starting this thread with issues faced while trying to launch driver on python 3.10 conda env.
The rclpy package requires GLIBCXX_3.4.30, as shown by the output:
(py3.10) annanya@annanya:~/Documents/spot_ros_ws$ ros2 launch spot_driver spot_driver.launch.py
[INFO] [launch]: All log files can be found below /home/annanya/.ros/log/2024-04-02-10-19-11-593847-annanya-4957
[INFO] [launch]: Default logging verbosity is set to INFO
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[WARNING] [launch_ros.actions.node]: Parameter file path is not a file: .
[INFO] [spot_ros2-1]: process started with pid [4991]
[INFO] [spot_image_publisher_node-2]: process started with pid [4993]
[INFO] [spot_inverse_kinematics_node-3]: process started with pid [4995]
[INFO] [robot_state_publisher-4]: process started with pid [4997]
[INFO] [state_publisher_node-5]: process started with pid [4999]
[INFO] [spot_alerts-6]: process started with pid [5001]
[INFO] [component_container_mt-7]: process started with pid [5012]
[robot_state_publisher-4] [INFO] [1712071153.581901268] [robot_state_publisher]: got segment arm_link_el0
[robot_state_publisher-4] [INFO] [1712071153.582023665] [robot_state_publisher]: got segment arm_link_el1
[robot_state_publisher-4] [INFO] [1712071153.582036721] [robot_state_publisher]: got segment arm_link_fngr
[robot_state_publisher-4] [INFO] [1712071153.582044766] [robot_state_publisher]: got segment arm_link_hr0
[robot_state_publisher-4] [INFO] [1712071153.582052190] [robot_state_publisher]: got segment arm_link_sh0
[robot_state_publisher-4] [INFO] [1712071153.582059731] [robot_state_publisher]: got segment arm_link_sh1
[robot_state_publisher-4] [INFO] [1712071153.582067147] [robot_state_publisher]: got segment arm_link_wr0
[robot_state_publisher-4] [INFO] [1712071153.582074328] [robot_state_publisher]: got segment arm_link_wr1
[robot_state_publisher-4] [INFO] [1712071153.582081463] [robot_state_publisher]: got segment base_link
[robot_state_publisher-4] [INFO] [1712071153.582088811] [robot_state_publisher]: got segment body
[robot_state_publisher-4] [INFO] [1712071153.582096370] [robot_state_publisher]: got segment front_left_hip
[robot_state_publisher-4] [INFO] [1712071153.582103595] [robot_state_publisher]: got segment front_left_lower_leg
[robot_state_publisher-4] [INFO] [1712071153.582111312] [robot_state_publisher]: got segment front_left_upper_leg
[robot_state_publisher-4] [INFO] [1712071153.582118488] [robot_state_publisher]: got segment front_rail
[robot_state_publisher-4] [INFO] [1712071153.582125810] [robot_state_publisher]: got segment front_right_hip
[robot_state_publisher-4] [INFO] [1712071153.582133291] [robot_state_publisher]: got segment front_right_lower_leg
[robot_state_publisher-4] [INFO] [1712071153.582140798] [robot_state_publisher]: got segment front_right_upper_leg
[robot_state_publisher-4] [INFO] [1712071153.582148204] [robot_state_publisher]: got segment rear_left_hip
[robot_state_publisher-4] [INFO] [1712071153.582155648] [robot_state_publisher]: got segment rear_left_lower_leg
[robot_state_publisher-4] [INFO] [1712071153.582163083] [robot_state_publisher]: got segment rear_left_upper_leg
[robot_state_publisher-4] [INFO] [1712071153.582170398] [robot_state_publisher]: got segment rear_rail
[robot_state_publisher-4] [INFO] [1712071153.582177700] [robot_state_publisher]: got segment rear_right_hip
[robot_state_publisher-4] [INFO] [1712071153.582184956] [robot_state_publisher]: got segment rear_right_lower_leg
[robot_state_publisher-4] [INFO] [1712071153.582192557] [robot_state_publisher]: got segment rear_right_upper_leg
[spot_ros2-1] Traceback (most recent call last):
[spot_ros2-1] File "/home/annanya/Documents/spot_ros_ws/install/spot_driver/lib/spot_driver/spot_ros2", line 16, in
[spot_ros2-1] import bdai_ros2_wrappers.process as ros_process
[spot_ros2-1] File "/home/annanya/Documents/spot_ros_ws/build/bdai_ros2_wrappers/bdai_ros2_wrappers/process.py", line 11, in
[spot_ros2-1] import rclpy
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/init.py", line 49, in
[spot_ros2-1] from rclpy.signals import install_signal_handlers
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/signals.py", line 15, in
[spot_ros2-1] from rclpy.exceptions import InvalidHandle
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/exceptions.py", line 15, in
[spot_ros2-1] from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpy
[spot_ros2-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/impl/implementation_singleton.py", line 32, in
[spot_ros2-1] rclpy_implementation = import_c_library('._rclpy_pybind11', package)
[spot_ros2-1] File "/opt/ros/humble/lib/python3.10/site-packages/rpyutils/import_c_library.py", line 39, in import_c_library
[spot_ros2-1] return importlib.import_module(name, package=package)
[spot_ros2-1] File "/home/annanya/miniconda3/envs/py3.10/lib/python3.10/importlib/init.py", line 126, in import_module
[spot_ros2-1] return _bootstrap._gcd_import(name[level:], package, level)
[spot_ros2-1] ImportError: /home/annanya/miniconda3/envs/py3.10/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/_rclpy_pybind11.cpython-310-x86_64-linux-gnu.so)
It was fixed by running
conda install -c conda-forge gcc=12.1.0
; maybe worth putting in a conda specific installation guide since the documentation currently recommends to use a virtual env.The text was updated successfully, but these errors were encountered: