Script upgrade Error

i try upgrade cyberpanel and show this error,

Traceback (most recent call last):
File “upgrade.py”, line 12, in
import requests
File “/usr/lib/python2.7/site-packages/requests/init.py”, line 97, in
from . import utils
File “/usr/lib/python2.7/site-packages/requests/utils.py”, line 28, in
from .compat import (
ImportError: cannot import name integer_types

any ideas ?

@CyberPanel @usmannasir

try this and give it another go.

pip install requests urllib3 pyOpenSSL --upgrade

also, reference the below. seen this before a few times and usually fixed by one of these methods

https://www.wmduszyk.com/?p=12080&langswitch_lang=pl
error: python-urllib3-1.10.2-5.el7.noarch: erase skipped
pip uninstall urllib3
yum -y install python-urllib3
pip install --upgrade requests

try this and give it another go.

pip install requests urllib3 pyOpenSSL --upgrade

also, reference the below. seen this before a few times and usually fixed by one of these methods

error: python-urllib3-1.10.2-5.el7.noarch: erase skipped
pip uninstall urllib3
yum -y install python-urllib3
pip install --upgrade requests

Thanks it’s work :wink:

awesome glad to hear it :slight_smile: