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 <module> import requests File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/__init__.py", line 95, in <module> 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 <module> ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD, AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv
On Wed, Aug 1, 2018 at 9:30 PM, <tutor-requ...@python.org> 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 <alan.ga...@yahoo.co.uk> > 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