Re: EnvironmentError

2020-11-20 Thread Peter Pearson
On Thu, 19 Nov 2020 13:19:07 +0100, Usman Musa wrote: > When I try to install a package or upgrade pip, using pip install I got > this error massage. > WARNING: Retrying (Retry(total=4, connect=None, read=None, > redirect=None, status=None)) after connection broken by > 'SSLError(SSLCertVeri

Re: EnvironmentError

2020-11-20 Thread Ivan "Rambius" Ivanov
ate verify failed: certificate is not yet valid (_ssl.c:1122)'))': > /packages/97/f3/c064343ac58d1a54c393a3f66483a29500f644a5918deeb935d28673edd9/virtualenv-20.1.0-py2.py3-none-any.whl > ERROR: Could not install packages due to an EnvironmentError: > HTTPSConnectionPool(ho

EnvironmentError

2020-11-19 Thread Usman Musa
us=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1122)'))': /packages/97/f3/c064343ac58d1a54c393a3f66483a29500f644a5918deeb935d28673edd9/virtualenv-20.1.0-py2.py3

Re: Why Error is derived from EnvironmentError in shutil.py?

2009-11-12 Thread Chris Rebert
On Thu, Nov 12, 2009 at 7:10 AM, Peng Yu wrote: > On Thu, Nov 12, 2009 at 12:00 AM, alex23 wrote: >> On Nov 12, 2:46 pm, Peng Yu wrote: >>> I see Error is derived from EnvironmentError in shutil.py. >>> >>> class Error(EnvironmentError): >>>     pa

Re: Why Error is derived from EnvironmentError in shutil.py?

2009-11-12 Thread Peng Yu
On Thu, Nov 12, 2009 at 12:00 AM, alex23 wrote: > On Nov 12, 2:46 pm, Peng Yu wrote: >> I see Error is derived from EnvironmentError in shutil.py. >> >> class Error(EnvironmentError): >>     pass >> >> I'm wondering why EnvironmentError can not be rai

Re: Why Error is derived from EnvironmentError in shutil.py?

2009-11-11 Thread alex23
On Nov 12, 2:46 pm, Peng Yu wrote: > I see Error is derived from EnvironmentError in shutil.py. > > class Error(EnvironmentError): >     pass > > I'm wondering why EnvironmentError can not be raised directly. Why > Error is raised instead? This way you can explicitly tr

Re: Why Error is derived from EnvironmentError in shutil.py?

2009-11-11 Thread Steven D'Aprano
On Wed, 11 Nov 2009 22:46:34 -0600, Peng Yu wrote: > I see Error is derived from EnvironmentError in shutil.py. > > class Error(EnvironmentError): > pass > > I'm wondering why EnvironmentError can not be raised directly. Why Error > is raised instead? Probab

Why Error is derived from EnvironmentError in shutil.py?

2009-11-11 Thread Peng Yu
I see Error is derived from EnvironmentError in shutil.py. class Error(EnvironmentError): pass I'm wondering why EnvironmentError can not be raised directly. Why Error is raised instead? -- http://mail.python.org/mailman/listinfo/python-list

socket.error.__bases__ = (EnvironmentError,) ?

2006-11-05 Thread robert
I've often trouble catching IO errors in general. Now a frequent case everywhere in an app after I've added a defaultsockettimout. Is this a legal/right practice to change the Exception tree like this: socket.error.__bases__ = (EnvironmentError,) And is there a chance that in future