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'
If you start the Python interpreter and execute
>>> import ssl
>>>
On Tue, Jul 31, 2018 at 10:03 AM, Alan Gauld via Tutor
wrote:
> On 31/07/18 03:52, Saket Mehrotra wrote:
>
> > error ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD,
> > AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23'
>
> Are you sure you spelled the attribute correctly?
>
> Have
On Tue, Jul 31, 2018 at 12:06 PM Alan Gauld via Tutor wrote:
>
> On 31/07/18 03:52, Saket Mehrotra wrote:
>
> > error ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD,
> > AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23'
>
> Are you sure you spelled the attribute correctly?
>
> Have
On 31/07/18 03:52, Saket Mehrotra wrote:
> error ssl.PROTOCOL_SSLv23: OpenSSL.SSL.SSLv23_METHOD,
> AttributeError: module 'ssl' has no attribute 'PROTOCOL_SSLv23'
Are you sure you spelled the attribute correctly?
Have you tried
>>> import ssl
>>> dir(ssl)
Top see what the attribute names
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
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
Thanks Alan and Peter for the comprehensive replies...that gives me some
good 'homework' to do and clarity on how to go about it.
Much appreciatedwill spend some time now getting my head around it.
Thanks so much.
- Matthew Polack
Matthew Polack | Teacher
[image: Emailbanner3.png]