Hello there and @usmannasircp
Can anyone help me solve the problem, when I upgrade cyberpanel it shows erro the following at the eleventh hour-
Running setup.py install for pysftp ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ur7ivxep/pysftp_8e077705ff6e430580043c4dea68e67a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ur7ivxep/pysftp_8e077705ff6e430580043c4dea68e67a/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-231szc4x/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pysftp
cwd: /tmp/pip-install-ur7ivxep/pysftp_8e077705ff6e430580043c4dea68e67a/
Complete output (57 lines):
/usr/local/lib/python3.9/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running install
/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:90: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
By 2025-Oct-31, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ur7ivxep/pysftp_8e077705ff6e430580043c4dea68e67a/setup.py", line 19, in <module>
setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1020, in run_command
cmd_obj.ensure_finalized()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 135, in ensure_finalized
self.finalize_options()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/install.py", line 74, in finalize_options
super().finalize_options()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 402, in finalize_options
'dist_fullname': self.distribution.get_fullname(),
File "/usr/local/lib/python3.9/site-packages/setuptools/_core_metadata.py", line 275, in get_fullname
return _distribution_fullname(self.get_name(), self.get_version())
File "/usr/local/lib/python3.9/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'
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-ur7ivxep/pysftp_8e077705ff6e430580043c4dea68e67a/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-ur7ivxep/pysftp_8e077705ff6e430580043c4dea68e67a/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-231szc4x/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pysftp Check the logs for full command output.
above command failed…