Re: [Tutor] SSL Error

2018-08-03 Thread Terry Carroll
On Wed, 1 Aug 2018, Marc Tompkins wrote: 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. Give us the _whole_ error message, even

Re: [Tutor] SSL Error

2018-08-01 Thread Marc Tompkins
On Wed, Aug 1, 2018 at 1:13 AM, Alan Gauld via Tutor wrote: > 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. > >

Re: [Tutor] SSL Error

2018-08-01 Thread Alan Gauld via Tutor
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

Re: [Tutor] SSL Error

2018-08-01 Thread Saket Mehrotra
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

Re: [Tutor] SSL Error

2018-07-31 Thread Peter Otten
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 >>>

Re: [Tutor] SSL Error

2018-07-31 Thread Marc Tompkins
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

Re: [Tutor] SSL Error

2018-07-31 Thread Zachary Ware
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

Re: [Tutor] SSL Error

2018-07-31 Thread Alan Gauld via Tutor
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

Re: [Tutor] SSL Error

2018-07-31 Thread Marc Tompkins
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

[Tutor] SSL Error

2018-07-31 Thread Saket Mehrotra
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

[Tutor] ssl error when trying to connect to https (also using timeoutsocket.py)

2007-03-07 Thread Tsila Hassine
Hello all, in my code i am importing timeoutsocket in order to set the time out of a connection. When i try to acces an https site I get the error: TypeError: ssl() argument 1 must be _socket.socket, not _socketobject when I am not using the timeoutsocket module, I don't have any problems. how