Upgrade Error from 2.3 to 2.4 latest

Hi. When updating i receive this error. Anyone knows how to resolve this?

Collecting cffi==1.14.3 (from -r /usr/local/requirments.txt (line 1))
Using cached cffi-1.14.3-cp38-cp38-manylinux1_x86_64.whl.metadata (1.2 kB)
Collecting bcrypt==3.2.0 (from -r /usr/local/requirments.txt (line 2))
Using cached bcrypt-3.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl.metadata (7.5 kB)
Collecting beautifulsoup4==4.9.3 (from -r /usr/local/requirments.txt (line 3))
Using cached beautifulsoup4-4.9.3-py3-none-any.whl.metadata (4.2 kB)
Collecting boto3==1.18.26 (from -r /usr/local/requirments.txt (line 4))
Using cached boto3-1.18.26-py3-none-any.whl.metadata (6.3 kB)
Collecting botocore==1.21.26 (from -r /usr/local/requirments.txt (line 5))
Using cached botocore-1.21.26-py3-none-any.whl.metadata (5.5 kB)
Collecting cloudflare==2.8.13 (from -r /usr/local/requirments.txt (line 6))
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
╰─> [15 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 14, in
File “/usr/local/CyberPanel/lib/python3.8/site-packages/setuptools/init.py”, line 27, in
from .dist import Distribution
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “/usr/local/CyberPanel/lib/python3.8/site-packages/_virtualenv.py”, line 91, in exec_module
old(module)
File “/usr/local/CyberPanel/lib/python3.8/site-packages/setuptools/dist.py”, line 30, in
from . import (
File “/usr/local/CyberPanel/lib/python3.8/site-packages/setuptools/_entry_points.py”, line 45, in
def validate(eps: metadata.EntryPoints):
AttributeError: module ‘importlib_metadata’ has no attribute ‘EntryPoints’
[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.