Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48405
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams |
| Date | 2013-06-15 23:09 -0400 |
| References | <cc21e7aa-b934-4d91-8856-40fbee0bd2d4@googlegroups.com> <ed0ea7b6-7637-4e53-a946-90e8759d8625@y3g2000pbl.googlegroups.com> <51BD00CF.7080401@mrabarnett.plus.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3425.1371352199.3114.python-list@python.org> (permalink) |
On 6/15/2013 8:03 PM, MRAB wrote: > On 15/06/2013 23:10, alex23 wrote: \__init__.py", line 123 >>> raise CodecRegistryError,\ >>> ^ >>> SyntaxError: invalid syntax >> > To me that traceback looks like it's Python 3 trying to run code written > for Python 2. If that is the case, the ^ should be under the ',' (and perhaps it once was ;-). If really at the beginning of the line, then the error must be on the previous line. Even then, the examples I have tried point to the 'e' or 'raise'. Take a look in the file. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Fatal Python error: Py_Initialize: can't initialize sys standard streams lucabrasi154@gmail.com - 2013-06-15 14:29 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-15 22:43 +0100
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams alex23 <wuwei23@gmail.com> - 2013-06-15 15:06 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams alex23 <wuwei23@gmail.com> - 2013-06-15 15:10 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams lucabrasi <lucabrasi154@gmail.com> - 2013-06-15 15:53 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams MRAB <python@mrabarnett.plus.com> - 2013-06-16 01:03 +0100
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams lucabrasi <lucabrasi154@gmail.com> - 2013-06-15 19:44 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams lucabrasi <lucabrasi154@gmail.com> - 2013-06-15 19:46 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams Dave Angel <davea@davea.name> - 2013-06-15 22:55 -0400
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams Terry Reedy <tjreedy@udel.edu> - 2013-06-15 23:09 -0400
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams Larry Hudson <orgnut@yahoo.com> - 2013-06-15 21:09 -0700
Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams alex23 <wuwei23@gmail.com> - 2013-06-17 21:47 -0700
csiph-web