Cyberpanel Update Failed

2025-05-24 00:00:51 (4.80 MB/s) - ‘/usr/local/requirments-old.txt’ saved [638/638]

Collecting cffi==1.14.3 (from -r /usr/local/requirments-old.txt (line 1))
  Downloading cffi-1.14.3.tar.gz (470 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [56 lines of output]
      /usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License c
lassifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running egg_info
      creating /tmp/pip-pip-egg-info-xlps165f/cffi.egg-info
      writing /tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/dependency_links.txt
      writing entry points to /tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/entry_points.txt
      writing requirements to /tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/requires.txt
      writing top-level names to /tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/SOURCES.txt'
      reading manifest file '/tmp/pip-pip-egg-info-xlps165f/cffi.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 35, in <module>
        File "/tmp/pip-install-3y7lbdmb/cffi_4b5b5a3053aa4a239c34f334ed61a5de/setup.py", line 200, in <module>
          setup(
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
          return run_commands(dist)
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_comman
ds
          dist.run_commands()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_comma
nds
          self.run_command(cmd)
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/dist.py", line 1106, in run_command
          super().run_command(command)
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1021, in run_comma
nd
          cmd_obj.run()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 312, in run
          self.find_sources()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 320, in find_sour
ces
          mm.run()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run
          self.prune_file_list()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/command/sdist.py", line 162, in prune_file_l
ist
          super().prune_file_list()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 386, in prune_file_list
          base_dir = self.distribution.get_fullname()
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 275, in get_fullname
          return _distribution_fullname(self.get_name(), self.get_version())
        File "/usr/local/CyberPanelTemp/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 293, in _distribution_fullname
          canonicalize_version(version, strip_trailing_zero=False),
      TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
above command failed...

Thanks for reading

Try this code and see if it resolves:

pip install setuptools==59.6.0