Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48372 > unrolled thread
| Started by | lucabrasi154@gmail.com |
|---|---|
| First post | 2013-06-15 14:29 -0700 |
| Last post | 2013-06-17 21:47 -0700 |
| Articles | 12 — 8 participants |
Back to article view | Back to comp.lang.python
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
| From | lucabrasi154@gmail.com |
|---|---|
| Date | 2013-06-15 14:29 -0700 |
| Subject | Fatal Python error: Py_Initialize: can't initialize sys standard streams |
| Message-ID | <cc21e7aa-b934-4d91-8856-40fbee0bd2d4@googlegroups.com> |
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. File "D:\Program Files (x86)\Inkscape\python\Lib\encodings\__init__.py", line 123 raise CodecRegistryError,\ ^ SyntaxError: invalid syntax Here are my computer specs if you need them: Tech Support Guy System Info Utility version 1.0.0.2 OS Version: Microsoft Windows 7 Ultimate, Service Pack 1, 64 bit Processor: AMD FX(tm)-6100 Six-Core Processor, AMD64 Family 21 Model 1 Stepping 2 Processor Count: 6 RAM: 16330 Mb Graphics Card: NVIDIA GeForce GTX 560, 1024 Mb Hard Drives: C: Total - 239806 MB, Free - 39808 MB; D: Total - 61553 MB, Free - 46085 MB; F: Total - 1907726 MB, Free - 1461558 MB; Motherboard: ASUSTeK COMPUTER INC., M5A97 Antivirus: avast! Internet Security, Updated and Enabled Any help would be appreciated. I posted on another forum http://forums.techguy.org but no one answered, as of yet anyway. It is kind of weird because they answer everything. So I am assuming only Python users might know. Thank you for considering my problem.
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-06-15 22:43 +0100 |
| Message-ID | <mailman.3413.1371332609.3114.python-list@python.org> |
| In reply to | #48372 |
On 15/06/2013 22:29, lucabrasi154@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. > > File "D:\Program Files (x86)\Inkscape\python\Lib\encodings\__init__.py", line 123 > raise CodecRegistryError,\ > ^ > SyntaxError: invalid syntax > > Here are my computer specs if you need them: > > Tech Support Guy System Info Utility version 1.0.0.2 > OS Version: Microsoft Windows 7 Ultimate, Service Pack 1, 64 bit > Processor: AMD FX(tm)-6100 Six-Core Processor, AMD64 Family 21 Model 1 Stepping 2 > Processor Count: 6 > RAM: 16330 Mb > Graphics Card: NVIDIA GeForce GTX 560, 1024 Mb > Hard Drives: C: Total - 239806 MB, Free - 39808 MB; D: Total - 61553 MB, Free - 46085 MB; F: Total - 1907726 MB, Free - 1461558 MB; > Motherboard: ASUSTeK COMPUTER INC., M5A97 > Antivirus: avast! Internet Security, Updated and Enabled > > Any help would be appreciated. I posted on another forum http://forums.techguy.org but no one answered, as of yet anyway. It is kind of weird because they answer everything. So I am assuming only Python users might know. > > Thank you for considering my problem. > Your Python version would help :) How did you install Inkscape? It looks strange to see it in Program Files, I'd normally expect to see it in the site packages directory. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-06-15 15:06 -0700 |
| Message-ID | <8e1b57c5-5951-4160-8bb5-d9182c3e57cd@lr16g2000pbb.googlegroups.com> |
| In reply to | #48375 |
On Jun 16, 7:43 am, Mark Lawrence <breamore...@yahoo.co.uk> wrote: > Your Python version would help :) How did you install Inkscape? It > looks strange to see it in Program Files, I'd normally expect to see it > in the site packages directory. Inkscape is an application, not a library. It provides its own local install of Python to allow for user extensions.
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-06-15 15:10 -0700 |
| Message-ID | <ed0ea7b6-7637-4e53-a946-90e8759d8625@y3g2000pbl.googlegroups.com> |
| In reply to | #48372 |
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?
[toc] | [prev] | [next] | [standalone]
| From | lucabrasi <lucabrasi154@gmail.com> |
|---|---|
| Date | 2013-06-15 15:53 -0700 |
| Message-ID | <6f5d8d97-a66b-458c-a275-58fd2bae4fc6@googlegroups.com> |
| In reply to | #48380 |
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.
[toc] | [prev] | [next] | [standalone]
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Date | 2013-06-16 01:03 +0100 |
| Message-ID | <mailman.3420.1371341002.3114.python-list@python.org> |
| In reply to | #48380 |
On 15/06/2013 23:10, 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 > To me that traceback looks like it's Python 3 trying to run code written for Python 2. > 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? >
[toc] | [prev] | [next] | [standalone]
| From | lucabrasi <lucabrasi154@gmail.com> |
|---|---|
| Date | 2013-06-15 19:44 -0700 |
| Message-ID | <9bc0787c-d334-439f-8bac-4c051cfe1425@googlegroups.com> |
| In reply to | #48388 |
On Saturday, June 15, 2013 5:03:27 PM UTC-7, MRAB wrote: > On 15/06/2013 23:10, 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 > > > > > To me that traceback looks like it's Python 3 trying to run code written > > for Python 2. > > > > > 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? > > >
[toc] | [prev] | [next] | [standalone]
| From | lucabrasi <lucabrasi154@gmail.com> |
|---|---|
| Date | 2013-06-15 19:46 -0700 |
| Message-ID | <eef11ec2-3627-4a46-b5c8-9867de6d6ee6@googlegroups.com> |
| In reply to | #48400 |
On Saturday, June 15, 2013 7:44:09 PM UTC-7, lucabrasi wrote: > On Saturday, June 15, 2013 5:03:27 PM UTC-7, MRAB wrote: > > > On 15/06/2013 23:10, 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 > > > > > > > > > > > > > To me that traceback looks like it's Python 3 trying to run code written > > > > > > for Python 2. > > > > > > > > > > > > > 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? > > > > > > > Got the problem fixed. I noticed the conflict between 2.X and 3.3 on the French board. I just uninstalled and otherwise deleted all python files and reinstalled with only 3.3. Works like a charm. Thanks to everyone.
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2013-06-15 22:55 -0400 |
| Message-ID | <mailman.3423.1371351347.3114.python-list@python.org> |
| In reply to | #48400 |
On 06/15/2013 10:44 PM, lucabrasi wrote:
> On Saturday, June 15, 2013 5:03:27 PM UTC-7, MRAB wrote:
>> On 15/06/2013 23:10, alex23 wrote:
>>
<SNIP gobs of double-spaced nonsense -- stupid googlegroups
should be banned>
>>
>>> 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?
>>
>>>
>
Your message was a hard-to-read doble-spaced copy of someone else's
comments. If you have nothing to add, why bother posting? Especially
with googlegroups.
If you do have something to say, make sure it follows the part you're
quoting, and that it does not begin with those bracket separators.
Otherwise it simply lies buried in the context, and your contribution or
question is lost.
--
DaveA
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2013-06-15 23:09 -0400 |
| Message-ID | <mailman.3425.1371352199.3114.python-list@python.org> |
| In reply to | #48380 |
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
[toc] | [prev] | [next] | [standalone]
| From | Larry Hudson <orgnut@yahoo.com> |
|---|---|
| Date | 2013-06-15 21:09 -0700 |
| Message-ID | <rP-dnQfT-6nmpyDMnZ2dnUVZ_rWdnZ2d@giganews.com> |
| In reply to | #48380 |
On 06/15/2013 03:10 PM, alex23 wrote:
> On Jun 16, 7:29 am, lucabrasi...@gmail.com wrote:
>
> 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)
>
Somewhat OT, but have you ever looked at tinyurl.com? Very useful for this sort of thing.
-=- Larry -=-
[toc] | [prev] | [next] | [standalone]
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-06-17 21:47 -0700 |
| Message-ID | <b29a079d-0a9f-4641-80df-711136fbce22@jr6g2000pbb.googlegroups.com> |
| In reply to | #48408 |
On Jun 16, 2:09 pm, Larry Hudson <org...@yahoo.com> wrote: > On 06/15/2013 03:10 PM, alex23 wrote: > > (Sorry for the ugly url, it's a Google translation of a french > > language page) > > Somewhat OT, but have you ever looked at tinyurl.com? Very useful for this sort of thing. From past comments on this list, people can be reticent to click on URL shortener links as it's not immediately obvious where it will take them.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web