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

lucabrasi lucabrasi154 at gmail.com
Sat Jun 15 18:53:26 EDT 2013


On Saturday, June 15, 2013 3:10:07 PM UTC-7, alex23 wrote:
> On Jun 16, 7:29 am, lucabrasi... at 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.




More information about the Python-list mailing list