Issue upgrading to 2.3.9

Hi,
I am trying to upgrade to 2.3.9 but getting this error if someone can help

2024-11-25 06:33:45 (50.1 MB/s) - ‘/usr/local/requirments.txt’ saved [613/613]

Collecting bcrypt==4.2.0 (from -r /usr/local/requirments.txt (line 1))
Using cached bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (9.6 kB)
Collecting beautifulsoup4==4.12.3 (from -r /usr/local/requirments.txt (line 2))
Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)
Collecting boto3==1.34.153 (from -r /usr/local/requirments.txt (line 3))
Using cached boto3-1.34.153-py3-none-any.whl.metadata (6.6 kB)
Collecting botocore==1.34.153 (from -r /usr/local/requirments.txt (line 4))
Using cached botocore-1.34.153-py3-none-any.whl.metadata (5.7 kB)
Collecting cloudflare==2.8.13 (from -r /usr/local/requirments.txt (line 5))
Using cached cloudflare-2.8.13.tar.gz (65 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info
writing /tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/dependency_links.txt
writing entry points to /tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/entry_points.txt
writing requirements to /tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/top_level.txt
writing manifest file ‘/tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/SOURCES.txt’
reading manifest file ‘/tmp/pip-pip-egg-info-lfdv4rb3/cloudflare.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
adding license file ‘LICENSE’
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “/tmp/pip-install-px26wloy/cloudflare_a6a452bd5ac144d19057c7792bcd5f2e/setup.py”, line 60, in
main()
File “/tmp/pip-install-px26wloy/cloudflare_a6a452bd5ac144d19057c7792bcd5f2e/setup.py”, line 18, in main
setup(
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/init.py”, line 117, in setup
return distutils.core.setup(**attrs)
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_distutils/core.py”, line 183, in setup
return run_commands(dist)
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_distutils/core.py”, line 199, in run_commands
dist.run_commands()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_distutils/dist.py”, line 954, in run_commands
self.run_command(cmd)
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/dist.py”, line 991, in run_command
super().run_command(command)
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_distutils/dist.py”, line 973, in run_command
cmd_obj.run()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/command/egg_info.py”, line 315, in run
self.find_sources()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/command/egg_info.py”, line 323, in find_sources
mm.run()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/command/egg_info.py”, line 549, in run
self.prune_file_list()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/command/sdist.py”, line 161, in prune_file_list
super().prune_file_list()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py”, line 380, in prune_file_list
base_dir = self.distribution.get_fullname()
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_core_metadata.py”, line 267, in get_fullname
return _distribution_fullname(self.get_name(), self.get_version())
File “/usr/local/CyberPanel/lib/python3.10/site-packages/setuptools/_core_metadata.py”, line 285, 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…

“pip install packaging==22”
fixed it for me.

1 Like

Thank you much… worked for me too :heart:, They should fix this issue ASAP