Hi all. I just wanted to post a little info about this failure when trying to install CyberPanel and seeing the installer fail out just after adding repos and running the python3 virtual environment.
I patched the cyberpanel.sh script to correct the problem. My pull request can be found here: github,com/usmannasir/cyberpanel/pull/1387
The problem began due to some changes in python3 that started earlier in 2024. These changes are meant to prevent scripts from explicitly defining package version numbers with incompatible dependencies. You can read more here:
github,com/pypa/setuptools/issues/4483
If you have the package named packaging
installed and the version is <= 22, you will experience this error. If the package was installed with pip, you can update it normally without a problem. However, some distros, like AlmaLinux 9, have a package in the distro repo that is <=22. On AlmaLinux 9, the current 'packaging` version on the distro repo is 20.9 (package is ‘python3-packaging’). Version 22> (current is 24.2) does not break any packages or dependencies with AlmaLinux 9. However, the maintainers haven’t released a newer and compatible version.
This creates a problem with Cyber Panel’s installer. My code addition will ensure that packaging
is updated prior to running the script’s python code, no matter how it was installed on your system or if you have it installed at all.
I hope this helps some people out and is approved quickly.