Skip to content

python "six" package incompatible with RHEL 10 distribution packages #12310

@andrea-janna

Description

@andrea-janna

problem

I installed CloudStack version 4.22 on Rocky Linux 10 from the package repository http://download.cloudstack.org/el/10/4.22/
The package cloudstack-management installs several python packages in /usr/local/lib/python3.12/site-packages/
The local python "six" package is incompatible at least with python3-dateutil distribution package. For instance it generates the following error in python3-dateutil distribution package:

File "/usr/lib/python3.12/site-packages/dateutil/tz/tz.py", line 21, in
from six.moves import _thread
ModuleNotFoundError: No module named 'six.moves'

To trigger the error one can simply execute
python3 -c "from six.moves import _thread"

This error can affect other RHEL 10 packages. For instance on my installation the command "pcs" (from the distribution package pcs) stops working.

To fix the error I deleted the local six package but I don't know if it will affect CloudStack functionality.
rm -r /usr/local/lib/python3.12/site-packages/six*

versions

cloudstack-management 4.22 on Rocky Linux 10

The steps to reproduce the bug

  1. python3 -c "from six.moves import _thread"

What to do about it?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions