I’ve installed ROS2 Jazzy on Ubuntu 24.04 through the .deb packages:
I’ve installed Isaac Sim, then tried to get both working together, using the following method (Enabling rclpy, Custom ROS 2 Packages, and Workspaces with Python 3.11):
After building the workspace, I’ve opened a new terminal, sourced both jazzy_ws/install/local_setup.bash and isaac_sim_ros_ws/install/local_setup.bash
However, after doing that, and trying to check if ROS even works (via ros2), I’m met with:
Traceback (most recent call last):File “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/bin/ros2”, line 33, in sys.exit(load_entry_point(‘ros2cli==0.32.5’, ‘console_scripts’, ‘ros2’)())^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/bin/ros2”, line 25, in importlib_load_entry_pointreturn next(matches).load()^^^^^^^^^^^^^^^^^^^^File “/usr/lib/python3.12/importlib/metadata/init.py”, line 205, in loadmodule = import_module(match.group(‘module’))^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/usr/lib/python3.12/importlib/init.py”, line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “”, line 1387, in _gcd_importFile “”, line 1360, in _find_and_loadFile “”, line 1331, in _find_and_load_unlockedFile “”, line 935, in _load_unlockedFile “”, line 995, in exec_moduleFile “”, line 488, in _call_with_frames_removedFile “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/ros2cli/cli.py”, line 22, in from rclpy.executors import ExternalShutdownExceptionFile “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/rclpy/init.py”, line 49, in from rclpy.signals import install_signal_handlersFile “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/rclpy/signals.py”, line 15, in from rclpy.exceptions import InvalidHandleFile “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/rclpy/exceptions.py”, line 16, in from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpyFile “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/rclpy/impl/implementation_singleton.py”, line 32, in rclpy_implementation = import_c_library(‘._rclpy_pybind11’, package)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/rpyutils/import_c_library.py”, line 39, in import_c_libraryreturn importlib.import_module(name, package=package)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File “/usr/lib/python3.12/importlib/init.py”, line 90, in import_modulereturn _bootstrap._gcd_import(name[level:], package, level)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ModuleNotFoundError: No module named ‘rclpy._rclpy_pybind11’The C extension ‘/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/_rclpy_pybind11.cpython-312-x86_64-linux-gnu.so’ isn’t present on the system. Please refer to ‘https://docs.ros.org/en/jazzy/How-To-Guides/Installation-Troubleshooting.html#import-failing-without-library-present-on-the-system’ for possible solutionsWhich boils down to ModuleNotFoundError: No module named ‘rclpy._rclpy_pybind11’The C extension ‘/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/_rclpy_pybind11.cpython-312-x86_64-linux-gnu.so’ isn’t present on the system.
which boils down to: ModuleNotFoundError: No module named ‘rclpy._rclpy_pybind11’The C extension ‘/home/francis/IsaacSim-ros_workspaces/build_ws/jazzy/jazzy_ws/install/lib/python3.11/site-packages/_rclpy_pybind11.cpython-312-x86_64-linux-gnu.so’ isn’t present on the system.
I’m not sure why that’s happening. Ubuntu 24.04 uses Python 3.12, the dockerfile inside the workspaces repo installs 3.11.