robot-control-stack icon indicating copy to clipboard operation
robot-control-stack copied to clipboard

Compatibility with python3.12

Open ayadabdalla opened this issue 2 years ago • 5 comments

Some dependencies in the pyproject are compatible with python3.11 but not with 3.12. Python3.12 is automatically shipped with the latest Ubuntu24.04 version, so it might be helpful for people who have a fresh installation to add this information to the readme. Should we?

ayadabdalla avatar Sep 23 '24 08:09 ayadabdalla

Yes good point. Can you look up in your shell history which packets are problematic?

juelg avatar Sep 25 '24 11:09 juelg

The only problematic package seems to be pyrealsense2. I checked the repository recently. There is no release with support for Python 3.12 yet. If you are only using the simulation you can use RCS without it.

fw-mi avatar Sep 27 '24 08:09 fw-mi

Since the realsense implementation is now in its own python package, it should be no problem to allow >=python3.11

juelg avatar Jul 10 '25 06:07 juelg

@khaledmohamed00 can you verify whether the latest version of RCS works with python 3.12 and if it does update the python version requirement in the pyproject.toml?

juelg avatar Jul 16 '25 07:07 juelg

  • RCS is compatible with Python 3.12 (confirmed).

  • Raising the minimum Python version in pyproject.toml to >=3.12 would force downstream users to:

    • Use Python 3.12 only
    • Ensure Python 3.12 is installed system-wide or via Conda, which will cause issues due to system-level dependencies.
  • Consequences of Requiring Python 3.12 If you update pyproject.toml to:

    requires-python = ">=3.12"
    

    Then:

    • Users with older Python versions (e.g. 3.10) will get an installation error.

    • This change will break compatibility with many LTS distros (e.g., Ubuntu 22.04 ships with Python 3.10).

    • You’ll need to:

      • Add Python 3.12 to debian_deps.txt
  • So should we add this change?

khaledmohamed00 avatar Jul 17 '25 15:07 khaledmohamed00