Unable to upgrade cyberpanel to latest versin

psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command ‘/usr/bin/gcc’ failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Building wheel for py3dns (pyproject.toml) … done
Created wheel for py3dns: filename=py3dns-3.2.1-py3-none-any.whl size=20838 sha256=a4aef1dc64e8f1b4c7c6a6bb2f652bd0b772b78ac79cdcd5b4859d210ca93cd6
Stored in directory: /root/.cache/pip/wheels/04/6c/59/20cadeb949daa0f469951136be59a742cef8de62cef2e8d288
Successfully built py3dns
Failed to build mysqlclient psutil
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mysqlclient, psutil)

Unable to upgrade to latest cyberpanel version using centOS7

I had similar errors apparently related to various versions of scripts used that aren’t always compatible. The fix that was the easiest for me was accessing ssh and running:

pip install packaging==22

After that, the update ran without any errors.

1 Like