Skip to content

Python version is incompatible with many packages #558

@AlexisTM

Description

@AlexisTM

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

ROS Noetic was based on Python 3.8, but Robostack is based on 3.11.

Many packages are incompatible in subtle ways with 3.11.

Namely:

  • rosbag_pandas Uses a collection removed in 3.11
  • rqt_bag is expected ints and gets floats
[...]
  File "/workspace/.pixi/envs/default/lib/python3.11/site-packages/rqt_gui/ros_plugin_provider.py", line 106, in load
    return class_ref(plugin_context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/.pixi/envs/default/lib/python3.11/site-packages/rqt_bag/bag.py", line 57, in __init__
    self._widget = BagWidget(context, args.clock)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/.pixi/envs/default/lib/python3.11/site-packages/rqt_bag/bag_widget.py", line 77, in __init__
    self._timeline = BagTimeline(context, publish_clock)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/.pixi/envs/default/lib/python3.11/site-packages/rqt_bag/bag_timeline.py", line 111, in __init__
    self._timeline_frame = TimelineFrame(self)
                           ^^^^^^^^^^^^^^^^^^^
  File "/workspace/.pixi/envs/default/lib/python3.11/site-packages/rqt_bag/timeline_frame.py", line 129, in __init__
    self._topic_font.setPointSize(self._topic_font_size)
TypeError: setPointSize(self, a0: int): argument 1 has unexpected type 'float'

Installed packages

pixi
python 3.8

Environment info

[using Pixi]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions