Python3 pip Error on Clean-installed Fedora33 Server

Hello. On clean-installed fedora33 server, I have problem with pip3 install. Following is commands & error I got just after installing fedora server with default settings.

$ cat /etc/os-release 
NAME=Fedora
VERSION="33 (Server Edition)"
ID=fedora
VERSION_ID=33
VERSION_CODENAME=""
PLATFORM_ID="platform:f33"
PRETTY_NAME="Fedora 33 (Server Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:33"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f33/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=33
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=33
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server
$ uname -a
Linux f33-python-test 5.9.13-200.fc33.x86_64 #1 SMP Tue Dec 8 15:42:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dnf update
Last metadata expiration check: 4:00:50 ago on Tue 15 Dec 2020 02:09:20 PM JST.
Dependencies resolved.   
Nothing to do.
Complete!
$ sudo dnf -qy install python3-pip
$ python3 --version
Python 3.9.0
$ pip3 --version
pip 20.2.2 from /usr/lib/python3.9/site-packages/pip (python 3.9)
$ pip3 list
Package         Version  
--------------- -------  
argcomplete     1.12.0   
dbus-python     1.2.16   
decorator       4.4.2
distro          1.5.0
gpg             1.14.0
libcomps        0.1.15
nftables        0.1
pexpect         4.8.0
pip             20.2.2
ptyprocess      0.6.0
pydbus          0.6.0
PyGObject       3.38.0
python-augeas   0.5.0
python-dateutil 2.8.1
rpm             4.16.0
selinux         3.1
sepolicy        3.1
setools         4.3.0
setroubleshoot  1.1
setuptools      49.1.3
six             1.15.0
slip            0.6.4
slip.dbus       0.6.4
sos             4.0
systemd-python  234

$ pip3 search 'pip'
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 216, in _main
    status = self.run(options, args)
  File "/usr/lib/python3.9/site-packages/pip/_internal/commands/search.py", line 60, in run
    pypi_hits = self.search(query, options)
  File "/usr/lib/python3.9/site-packages/pip/_internal/commands/search.py", line 80, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1116, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1456, in __request
    response = self.__transport.request(
  File "/usr/lib/python3.9/site-packages/pip/_internal/network/xmlrpc.py", line 45, in request
    return self.parse_response(response.raw)
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 1348, in parse_response
    return u.close()
  File "/usr/lib64/python3.9/xmlrpc/client.py", line 662, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: 'RuntimeError: This API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. Please use the Simple or JSON API instead.'>

I want to know how everyone deals with it.
Thank you.

1 Like

hi @vanou! Welcome to the forum! Please take a minute to go through the introductory posts in the #start-here if you’ve not had a chance to do so yet.

This particular issue looks like it’s related to pip/pypi. A web search sent me here:

pip search pam returns xmlrpc.client.Fault: · Issue #5435 · pypa/pip

Additional note: where possible, please use dnf to install system wide python modules. If you need modules that aren’t in the repos, of course, please create a virtual env and use pip there to install them. (Basically, do not use pip to install in system-wide locations—that breaks dnf and other system tools).

2 Likes

Thanks @FranciscoD !

This particular issue looks like it’s related to pip/pypi. A web search sent me here:

pip search pam returns xmlrpc.client.Fault: · Issue #5435 · pypa/pip

I reach this issue, too. And I wanted to know whether fedora community recognizes it or no. (Should I try to contribute to fedora package?)

Additional note: where possible, please use dnf to install system wide python modules. If you need modules that aren’t in the repos, of course, please create a virtual env

Yes. I agree. However this problem also occurs in virtual environment :wink:

Now I find the cause.
This is due to malicious attack to PyPi.

See

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.