Yum install urllib3


















Sorry, something went wrong. Can you try to update your versions of requests and six as mentioned in - I think it's the same problem. He seems to have the latest version of requests already, and six is there, so it's a different situation than On CentOS 7, the only way to get urllib3 1. The yum version with epel is very old: python-urllib3. But, after installing certbot-apache with urllib3 v.

But then you get this when running certbot --apache : AttributeError: 'module' object has no attribute 'rand'. Seeing the same issue on a brand new installation of centos 7. Also tried installing python2-certbot , getting the same error as wardmundy. Was trying to run certbot-2 --standalone. I've tried installing an older version, 0. I went down the manual route, that worked, I got my cert successfully.

I tried to install certbot on Centos 7 today. Try upgrading to v0. I got the same error like Deronlee. Anything new? At least in some of these cases, I'm suspicious of corrupted Python environments where packages have been pip installed, overriding versions of packages provided by your operating system. We strongly recommend you do not do this. If you've already found yourself in this position, I recommend you use certbot-auto which has a minimal reliance on the Python packages found on your system.

Deronlee thanks for your advice. You also need lxml and cssselect libraries. It should be pointed out, you can also get this error if you are making the rookie mistake I did, running a python 3 script with the "old" python command, i.

December 4, Python Leave a comment. Really appreciate any help. Simply import urllib. This happens because your local module named urllib.

The current directory is preapended to sys. An extra debugging tip when this comes up is to look at the Traceback carefully, and realize that the name of your script in question is matching the module you are trying to import.

Rename your file to something else like url. Then It is working fine. Hope it helps! Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.

Learn more. Asked 4 years, 1 month ago. Active 1 year, 3 months ago. Released: Jan 7, HTTP library with thread-safe connection pooling, file post, and more. View statistics for this project via Libraries. Tags urllib, httplib, threadsafe, filepost, http, https, ssl, pooling. Much of the Python ecosystem already uses urllib3 and you should too.

Alternatively, you can grab the latest source code from GitHub :. Please see our contributing documentation for some tips on getting started.

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure with maintainers. If your company benefits from this library, please consider sponsoring its development. See this GitHub issue for more information on how to fix your proxy config. Pull Users who are using urllib3 version 1. These erroneous flags do not cause a problem in OpenSSL versions before 1.

There is no PR for this patch, as it was prepared for simultaneous disclosure and release. The master branch received the same fix in Pull Jan 7, Sep 22, Jun 25, May 26, Mar 15, Jan 26, Nov 12, Nov 11, Nov 10, Oct 19, Jul 22, Apr 16, Jan 21, Sep 24, Sep 20, Sep 19, May 23, Apr 29, Apr 24, Apr 22, May 2, Apr 17, Nov 2, Oct 16, Jun 5, Jul 20, Apr 25, Jan 19, Nov 16, Nov 3, Oct 27, Sep 26, Sep 6, Jun 11, Apr 11, Apr 6, Dec 29, Dec 18, Dec 14, Jul 21, May 3, Apr 21, Feb 25, Feb 11, Sep 13, Jul 7, Jun 24, Apr 18, Mar 6, Sep 25, Aug 14, Aug 2, Jun 16, Mar 25, Feb 6, Feb 5, Jan 29, Nov 4, Oct 11, Oct 9, Jul 18,



0コメント

  • 1000 / 1000