[Tutor] SSL Error
Hi I am trying to run import requests in a py file but I am getting below error ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD, AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23' >>> I tried to execute below from the terminal but it still remains unresolved. sudo easy_install --upgrade pip I've also had to run: sudo pip uninstall pyopenssl sudo pip install mozdownload Can you please help me . Thanks & Regards Saket Mehrotra ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] SSL Error
Hi I am also not using any Open SSL package. I have just added " import requests" in py file. And when I run the module I get the SSL package error ,not sure why. Thanks Saket On Tue, Jul 31, 2018 at 10:28 PM, Marc Tompkins wrote: > This is a general Python tutor group; I'm not sure anybody here can help > you with the OpenSSL package (I've definitely never used it myself.) We're > all willing to help, but this might not be the right place to ask this > question. > > More to the point, though, when you ask questions on this list it's best > to just cut and paste BOTH your code and the actual error > message/traceback; from the bit that you've posted, it sounds like it might > be as simple as a typo, but we can't really tell without seeing your code. > > On Mon, Jul 30, 2018 at 7:52 PM, Saket Mehrotra > wrote: > >> Hi >> >> I am trying to run import requests in a py file but I am getting below >> error ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD, >> AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23' >> >>> >> >> I tried to execute below from the terminal but it still remains >> unresolved. >> >> sudo easy_install --upgrade pip >> >> I've also had to run: >> >> sudo pip uninstall pyopenssl >> >> sudo pip install mozdownload >> >> >> Can you please help me . >> >> Thanks & Regards >> Saket Mehrotra >> ___ >> Tutor maillist - Tutor@python.org >> To unsubscribe or change subscription options: >> https://mail.python.org/mailman/listinfo/tutor >> > > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Tutor Digest, Vol 174, Issue 2
I am running only one line of code "import requests" Error I am getting is below Traceback (most recent call last): File "/Users/saketmehrotra/Documents/Flaskask.py", line 4, in import requests File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/__init__.py", line 95, in from urllib3.contrib import pyopenssl File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 80, in ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD, AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv On Wed, Aug 1, 2018 at 9:30 PM, wrote: > Send Tutor mailing list submissions to > tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/tutor > or, via email, send a message with subject or body 'help' to > tutor-requ...@python.org > > You can reach the person managing the list at > tutor-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tutor digest..." > > Today's Topics: > >1. Re: SSL Error (Alan Gauld) > > > -- Forwarded message -- > From: Alan Gauld > To: tutor@python.org > Cc: > Bcc: > Date: Wed, 1 Aug 2018 09:13:07 +0100 > Subject: Re: [Tutor] SSL Error > On 01/08/18 05:07, Saket Mehrotra wrote: > > Hi > > > > I am also not using any Open SSL package. > > I have just added " import requests" in py file. And when I run the > module > > I get the SSL package error ,not sure why. > > Then you really need to send the complete error message > and the code that generates it - the full function > definition at least. > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > > > ___ > Tutor maillist - Tutor@python.org > https://mail.python.org/mailman/listinfo/tutor > > ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor