opened 07:11AM - 29 Oct 24 UTC
**Describe the bug**
running preUpgrade and it fails when settingup cloudflare.…
**To Reproduce**
simply run "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)" on an ubuntu 22.04 LTS after you have installed cyberpanel < 2.3.7
**Expected behavior**
It should run without any errors.
**Screenshots**
```
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-cqprurlq/cloudflare.egg-info
writing /tmp/pip-pip-egg-info-cqprurlq/cloudflare.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-cqprurlq/cloudflare.egg-info/dependency_links.txt
writing entry points to /tmp/pip-pip-egg-info-cqprurlq/cloudflare.egg-info/entry_points.txt
writing requirements to /tmp/pip-pip-egg-info-cqprurlq/cloudflare.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-cqprurlq/cloudflare.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-cqprurlq/cloudflare.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-cqprurlq/cloudflare.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 34, in <module>
File "/tmp/pip-install-766g99es/cloudflare_8c9e811f7b024c1aa51ba3fdd529cf00/setup.py", line 60, in <module>
main()
File "/tmp/pip-install-766g99es/cloudflare_8c9e811f7b024c1aa51ba3fdd529cf00/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
```
**Operating system:**
Ubuntu 22.04 LTS
**CyberPanel version:**
Current Version: 2.3
Build: 5Current Commit: 9f2c26167284149e174fec2c21311a52f410a52b
Latest Version: 2.3
Latest Build: 7Latest Commit: 4ad53e349c4e146241f6fffca13d8a15530cdabe
**Additional context**