Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48382

Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams

Newsgroups comp.lang.python
Date 2013-06-15 15:53 -0700
References <cc21e7aa-b934-4d91-8856-40fbee0bd2d4@googlegroups.com> <ed0ea7b6-7637-4e53-a946-90e8759d8625@y3g2000pbl.googlegroups.com>
Message-ID <6f5d8d97-a66b-458c-a275-58fd2bae4fc6@googlegroups.com> (permalink)
Subject Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams
From lucabrasi <lucabrasi154@gmail.com>

Show all headers | View raw


On Saturday, June 15, 2013 3:10:07 PM UTC-7, alex23 wrote:
> On Jun 16, 7:29 am, lucabrasi...@gmail.com wrote:
> 
> > I get this error when I try to save .dxf files in Inkscape:
> 
> >
> 
> > Fatal Python error: Py_Initialize: can't initialize sys standard streams
> 
> >
> 
> > Then it seems to recover but it doesn't really recover. It saves the files and then DraftSite won't open them. Here is what the  > thing says when Inkscape tried to fix the saving problem.
> 
> 
> 
> What do you mean by "Inkscape tried to fix the saving problem"?
> 
> 
> 
> > File "D:\Program Files (x86)\Inkscape\python\Lib\encodings\__init__.py", line 123
> 
> > raise CodecRegistryError,\
> 
> > ^
> 
> > SyntaxError: invalid syntax
> 
> 
> 
> Here's a report of a similar issue with Blender (which also provides a
> 
> local install of Python under Windows):
> 
> http://translate.google.com.au/translate?hl=en&sl=fr&u=http://blenderclan.tuxfamily.org/html/modules/newbb/viewtopic.php%3Ftopic_id%3D36497&prev=/search%3Fq%3Dinkscape%2BCodecRegistryError
> 
> 
> 
> (Sorry for the ugly url, it's a Google translation of a french
> 
> language page)
> 
> 
> 
> Do you have a separate installation of Python? It's possible it may be
> 
> conflicting. If you rename it's folder to something else (which will
> 
> temporarily break that install), do you still see this same issue in
> 
> Inkscape?

Inkscape told me to not worry about the problem.  That somehow it had made a mistake and then it showed a little window with this information.
> File "D:\Program Files (x86)\Inkscape\python\Lib\encodings\__init__.py", line 123
> raise CodecRegistryError,\
> ^
> SyntaxError: invalid syntax 

I said Inkscape but maybe it is system message and not from Inkscape.
I will try your suggestions now, and thanks to everyone for responding so quickly.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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