pip3 error 81
Hi,
Trying to install matplotlib or any other package using pip3 & I am getting the below:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x700000000d13668>: Failed to establish a new connection: [Errno 81] No route to host',)': /simple/matplotlib/
(repeated 4 or 5 times before it gives up)
I had a similar problem with yum & I was asked to change a config file to use ftp instead of https & it worked.
I checked the existing issues related to pip3 errors & verified that I am using the correct version (in /QOpenSys/pcks/bin) etc…
Based on what we see, it is clearly trying to use HTTPS and I suspect it is a firewall issue.
How can I confirm that? and like yum, is there a way to change it?
Thanks,
Roger
Comments (13)
-
-
reporter I do have connectivity & DNS is good as evidenced by ping ‘www.yahoo.com’ working fine.
-
reporter Hi, is there any update?
Thank you.
-
What happens if you run
curl https://pypi.org/simple/matplotlib/
? Does it print out the html or give an error? -
reporter \$ curl https://pypi.org/simple/matplotlib/
curl: (7) Failed to connect to pypi.org port 443: Connection refused
-
reporter Hi Kevin, it was a firewall issue.
I am passed this point now but I have another issue when executing the pip3 install matplotlib
Should I open a new case?
Here is the error anyway, thank you.ld: 0711-738 ERROR: Input file /usr/lib/libz.so:
XCOFF32 object files are not allowed in 64-bit mode.
collect2: error: ld returned 8 exit status
error: command '/QOpenSys/pkgs/lib/python3.6/config-3.6m/ld_so_aix' failed with exit status 1
Failed building wheel for matplotlib
Running setup.py clean for matplotlib -
It looks like the libz.so shipped by 5733-SC1 is causing problems. I’m not sure how to work around it at the moment, but you can use the pre-built version we ship via RPM:
yum install python3-matplotlib
-
reporter side note: I get
”You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.”is that normal?
Also, running the yum you requested - yum install python3-matplotlibGave:
Setting up Install Process
No package python3-matplotlib available.
Error: Nothing to doThanks for your help.
-
Oh sorry, I guess we didn’t end up shipping that as an rpm (though a spec file is still in our repo, leading to my confusion).
The warning is normal, we’re working on an update to suppress the message, but you can ignore it for now. You could try renaming /QOpenSys/usr/lib/libz.so while you do the pip install.
-
reporter Hi Kevin,
/QOpenSys/usr/lib/libz.so is a symbolic link pointing ../../QIBM/ProdData/SC1/zlib/lib/libz.so
Do you want me to rename the link so that a new one is created by the pip install?
Thanks
-
pip doesn’t create a new link, the problem is it’s shadowing the one in /QOpenSys/pkgs/lib/libz.so. Hmm, actually maybe you just need to install zlib-devel with yum.
-
reporter Hi Kevin,
Good news! after installing zlib-devel, the matplotlib install worked!
Thank you!
If you want to close the case, pls do. I will open a new one when needed.
Thanks again,
Roger
-
- changed status to resolved
Glad to hear you were able to get it working!
- Log in to comment
AFAIK, the public PyPI requires HTTPS (as evidence by this comment: https://github.com/pypa/pip/issues/5880#issuecomment-429587640). That said, the error you are getting is “no route to host” which would be at a lower level than http/https, so I don’t think that’s the problem. Does your IBM i system have connectivity to the internet and does it have DNS and upstream gateways defined properly to connect outside of your network?