f



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

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.

0
6/15/2013 9:29:22 PM
comp.lang.python 77058 articles. 6 followers. Post Follow

11 Replies
5273 Views

Similar Articles

[PageSpeed] 36

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

0
breamoreboy1 (1156)
6/15/2013 9:43:11 PM
On Jun 16, 7:43=A0am, Mark Lawrence <breamore...@yahoo.co.uk> wrote:
> Your Python version would help :) =A0How did you install Inkscape? =A0It
> 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.


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

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 q=
uickly.

0
6/15/2013 10:53:26 PM
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?
>

0
python3897 (1417)
6/16/2013 12:03:27 AM
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?
> 
> >

0
6/16/2013 2:44:09 AM
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. 
0
6/16/2013 2:46:57 AM
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
0
davea9629 (629)
6/16/2013 2:55:33 AM
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

0
tjreedy (5460)
6/16/2013 3:09:41 AM
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 -=-

0
orgnut (44)
6/16/2013 4:09:30 AM
On Jun 16, 2:09=A0pm, 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? =A0Very 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.
0
wuwei23 (1194)
6/18/2013 4:47:42 AM
Reply:

Similar Artilces:

cx_Freeze:Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'
This is a multi-part message in MIME format. ------=_NextPart_54CDB0CF_09831520_492C90BA Content-Type: text/plain; charset="gb18030" Content-Transfer-Encoding: base64 SSBkb3dubG9hZGVkIGN4X0ZyZWV6ZSBmcm9tIGhlcmUsIGluc3RhbGxlZCBpdCBzdWNjZXNz ZnVsbHkgb24gVWJ1bnR1IGZvbGxvd2luZyB0aGlzIHRocmVhZCAuDQoNCkFmdGVyIHJ1biBw eXRob24zIHNldHVwLnB5IGJ1aWxkIGluIGN4X0ZyZWV6ZS9zYW1wbGVzL3NpbXBsZSx0aGVu IGNoYW5nZSB0aGUgZGlyIHRvIGN4X0ZyZWV6ZS9zYW1wbGVzL3NpbXBsZS9idWlsZC9leGUu bGludXgtaTY4Ni0zLjQscnVuIHRoZSBmb2xsb3dpbmcgY29tbWFuZCAsSSBnb3QgdGhlIGVy cm9yDQoNCoE3yzQgIGV4ZS5saW51eC1pNjg2LTMuNCAgLi9oZWxsbw0KDQpGYXRhbCBQeXRo b24gZXJyb3I6IFB5X0luaXRpYWxpemU6IFVuYWJsZSB0byBnZXQgdGhlIGxvY2FsZSBlbmNv ZGluZw0KDQpJbXBvcnRFcnJvcjogTm8gbW9kdWxlIG5hbWVkICdlbmNvZGluZ3MnDQoNClsx XSAgICAzOTUwIGFib3J0ICAgICAgLi9oZWxsbw0KDQqBN8s0ICBleGUubGludXgtaTY4Ni0z LjQgIA0KDQphbnkgaWRlYSBvbiBmaXhpbmcgdGhpcyBpc3N1ZSA/ ------=_NextPart_54CDB0CF_09831520_492C90BA Content-Type: text/html; charset="gb18030" Content-Transfer-Encoding: base64 PCEtLSBbaWYgZ3RlIG1zbyA5XT48eG1sPjx3OldvcmREb2N1bWVudD48dzpCcm93c2VyTGV2 ZWw+TWljcm9zb2Z0SW50ZXJuZXRFeHBsb3JlcjQ8L3c6QnJvd3NlckxldmVsPjx3OkRpc3Bs YXlIb3Jpem9udGFsRHJhd2luZ0dyaWRFdmVyeT4wPC93OkRpc3BsYXlIb3Jpem9udGFsRHJh d2luZ0dyaWRFdmVyeT48dzpEaXNwbGF5VmVydGljYWxEcmF3aW5nR3JpZEV2ZXJ5PjI8L3c6 RGlzcGxheVZlcnRpY2FsRHJhd2luZ0dyaWRFdmVyeT48dzpEb2N1bWVudEtpbmQ+RG9jdW1l bnROb3RTcGVjaWZpZWQ8L3c6RG9jdW1lbnRLaW5kPjx3OkRyYXdpbmdHcmlkVmVydGljYWxT cGFjaW5nP...

(EMBEDDING) Can't get python error message
I run this string to produce a error "x+1" PyRun_SimpleStringFlags() return -1, so that i know this is a script with error inside... but now - how can i get error message? i tested some py-functions - but this functions do not work... i called this functions direct after PyRun_SimpleStringFlags PyErr_Occurred() return always 0 PyErr_Fetch() with 3 pointers... all values are always Null PyErr_Print() do nothing strange... but after my programm end... here comes a error message (from StdErr i think) Traceback (most recent call last): File "<string>", line 1, in...

Embedding python : can't find encoding error
Hi, I'm trying to embed python in a c++ program. I have compiled python32.lib with msvc 2010 targetting 32bits, i link it with my program wich is also 32bit. I get an error when calling Py_Initialize() : "no codec search functions registered: can't find encoding" Py_FileSystemDefaultEncoding value is "mbcs". _PyCodec_Lookup raise an eror because len = PyList_Size(interp- >codec_search_path); returns 0 in codecs.c Does someone already had this problem ? I have no idea how to solve that. Sorry for my bad english. Precisions : I'm trying...

Can't find module named 'svn' in python
Hi, i have a simple test which tries to load 'svn' moddule. # python -c "from svn import client" Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named svn I have checked I have sub-directories 'libsvn', 'svn' under /usr/local/lib/svn-python/ cd /usr/local/lib/svn-python/ [root@localhost svn-python]# ls libsvn svn But python still can't find it. Please tell me what am I missing. I appreciate your help. My first thought: Check if you have /usr/local/lib/svn-python/ in your PYTHONPATH environme...

Python 2.1 Compilation error
I am attempting to compile python 2.1 from the source on a RedHat 9.0 system. The problem is that a openssl header file (kssl.h) requires krb5.h which isn't in the usual place (/usr/include). Instead krb5.h gets installed at usr/kerberos/include. The openssl version is 0.9.7a-2. When I build python, the ./configure works fine but the make' has problems building the _socket extension. The beginning of the error message is pasted below. How do I let python know where to find the krb5.h file? In file included from /usr/include/openssl/ssl.h:179, from /home/merlin/Python-2.1.2/Modu...

Something that Perl can do that Python can't?
So here it is: handle unbuffered output from a child process. Here is the child process script (bufcallee.py): import time print 'START' time.sleep(10) print 'STOP' In Perl, I do: open(FILE, "python bufcallee.py |"); while ($line = <FILE>) { print "LINE: $line"; } in which case I get LINE: START followed by a 10 second pause and then LINE: STOP The equivalent in Python: import sys, os FILE = os.popen('python bufcallee.py') for line in FILE: print 'LINE:', line yields a 10 second pause followed by LINE: START L...

[SOLARIS
We are facing problem in starting mysql [MySQL 3.23.58] in Solaris 8 platform and exception is thrown 'Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!'. I have tried using using either root or specific user. If I check MySQL logs by viewing /opt/mysql/data/<hostname>.err 040119 09:34:32 mysqld started Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists! 040119 9:34:32 Aborting 040119 9:34:32 /opt/mysql/bin/mysqld: Shutdown Complete 040119 09:34:32 mysqld ended I've tried several times to install it, but still get the same error. Any clue on that problem ? Any help to solve this problem is really appreciated. Regards, Chithuu ..! Chithu wrote: > We are facing problem in starting mysql [MySQL 3.23.58] in Solaris 8 > platform and exception is thrown 'Fatal error: Can't change to run as > user 'mysql' ; Please check that the user exists!'. > > I have tried using using either root or specific user. > > If I check MySQL logs by viewing > /opt/mysql/data/<hostname>.err > > > 040119 09:34:32 mysqld started > Fatal error: Can't change to run as user 'mysql' ; Please check that > the > user exists! > 040119 9:34:32 Aborting > 040119 9:34:32 /opt/mysql/bin/mysqld: Shutdown Complete > 040119 09:34:32 mysqld ended &...

What's wrong with my python? I can't use string
I have a xxx.py which has code as below: import string print dir(string) print string.printable when I run it, I got the strange error: "<?xml version=\"1.0\" encoding=\"gbk\"?>\n" "<root>\n" "<result>##result##</result>\n" "<msg>##msg##</msg>\n" "<pass_no>##pass_no##</pass_no>\n" "<pot_num>##pot_num##</pot_num>\n" "<pots_mashed>##pots_mashed##</pots_mashed>\n" "<yb_used>##yb_used##</yb_used>\n" "<ri...

perlcc error
Hi, I'm a perl hack and want to distribute a windows executable of one of my scripts. When I invoke the perl compiler by using perlcc, I get the following error. perlcc.bat: Can't unlink error file pccrYVGS If I try multiple times, the error is the same but the filename changes. I googled and didn't see anything that would help me. One thing I did find out was that a recent installation of some development tools blew away portions of my 'path' environment variable, including the path to the perl bin directory (which also has perlcc.bat). I have restored this to th...

perlcc error
Hi, I'm a perl hack and want to distribute a windows executable of one of my scripts. When I invoke the perl compiler by using perlcc, I get the following error. perlcc.bat: Can't unlink error file pccrYVGS If I try multiple times, the error is the same but the filename changes. I googled and didn't see anything that would help me. One thing I did find out was that a recent installation of some development tools blew away portions of my 'path' environment variable, including the path to the perl bin directory (which also has perlcc.bat). I have restored this to th...

config.sys corrupted; can't fix; can't start windows 2000
The computer attempts to open windows 2000 pro and gets hung up with the message that winn config.sus is corrupted. I tried booting from the win 2000 cd-rom and then creating floppy boot disks. The computer won't recognize or run off of these. Rename the Config.sys file in the root directly to ConfigOLD.sys. See if the machine will boot without it for now. Any release of NT should be able to. If you work out for sure that the Config.sys file is faulty, you can go in with your text editor, and troubleshoot it. You will need the base knowledge to work in this file. Jerry G. ======== ...

I've built Python, but can't figure out how to package it for windows
Python 2.6.4 is built, and I found a bdist_wininst project and wininst-8 project. How do I manage to build the msi for this thing? En Tue, 09 Feb 2010 19:55:30 -0300, Mark Jones <mark0978@gmail.com> escribi�: > Python 2.6.4 is built, and I found a bdist_wininst project and > wininst-8 project. > > How do I manage to build the msi for this thing? See the Tools\msi directory; and look for some posts last year from Tim Golden regarding some issues with the directory layout and other details. -- Gabriel Genellina That was so simple, thanks. I scanned all the folders ...

Access to sys.argv when python interpreter is invoked in some modes like 'python -c "command"'
The python tutorial says "When the script name is given as '-' (meaning standard input), sys.argv[0] is set to '-'. When -c command is used, sys.argv[0] is set to '-c'. " but when we use a command say 'python -c "command"' where can we access "sys.argv" (are there some commands where "sys.argv" is accessed. I can run 'python -c "import sys sys.argv", I get an error message -Tiro poggle.themammal@gmail.com wrote: > The python tutorial says > "When the script name is given as '-' (meaning...

Fatal Python error with Py_InitModule (Python 2.3)
I'm using Python embedded in my app, and I've run into problems creating my own modules. I'm using Python version 2.3 compiled with MSVC .NET (not 2003). When I call Py_InitModule I get the message: "Fatal Python error: Interpreter not initialized (version mismatch?)" However, Python does seem to be initialized. Py_IsInitialized() returns 1, and I can PyImport_Import() and I can run scripts successfully from my program. I'm not sure what I could be doing wrong, all the information I've found online indicates that the above message comes from incompatible v...

i have configured proxy but fiddler can't capture python's network requests
here's my code. I've change the port from 8888 to 1111. import urllib2 proxy_support = urllib2.ProxyHandler({'http':'http://127.0.0.1:1111'}) opener = urllib2.build_opener(proxy_support, urllib2.HTTPHandler) urllib2.install_opener(opener) content = urllib2.urlopen('http://www.google.com').read() print content The weird thing is: 1. If I close fiddler, python throws error when running Traceback (most recent call last): File "C:\Users\Micky\test.py", line 5, in <module> content = urllib2.urlopen('http://www.google.com').read() Fi...

..\..\Python-2.5.2\Include\pyport.h(117) : fatal error C1189: #error : "Python needs a typedef for Py_ssize_t in pyport.h."
When I try and compile using VS2003 for Release. Compiles fine for Debug. In a hurry (should be gardening). Any solution? TIA Bill ...

Python can't divide??!?!
Ummmm... This is weird. Sorry if it's known about (how can it NOT be, I wonder?) but I haven't seen any reference to it anywhere. I'm running the latest Python (2.3.3) on Windows XP Pro, i386 architecture. Fire up python or whatever. Do this: Result: 3 / 5 0 Fair enough, int / int = int 3 / 5.0 0.59999999999999998 eh? 3.0 / 3 0.59999999999999998 ummmm... 3.0 / 5.0 0.59999999999999998 how did I guess... That's just an example. Python cannot divide. Period. If you try 1.0 / 3 you get 0.33333333333333331, and from thi...

python can't count!
hello i'm wondering if i'm just too stupid for python or if i've missed something fundamentally important of its semantics. Why does the following program result in the TypeError: print_it() takes exactly 1 argument (2 given)? I don't see any function passing or receiving 2 arguments here... am i blind? import threading class Server(threading.Thread): def print_it(n): print n def run(self): self.print_it(34) while 1: pass s = Server() s.start() On 2 Oct 2003 08:02:48 -0700, dokaspar@student.ethz.ch (Dominik Kaspar) wrote: >h...

Fatal Python error using ctypes & python exceptions
Hi Everyone, I've created a 'C' dll that is accessed via ctypes library containing a bunch of functions. I've successfully been able to use the functions. However, I would like to throw python exceptions from some of them. I throw them using: ::PyErr_SetString(::PyExc_RuntimeError, theErrorString); I crash the console when this function is invoked in the 'C' domain. I get an error stating: Fatal Python error: PyThreadState_Get: no current thread when the calling code in python is: try: cdll.MyDll.ThrowingFunction() except: print "An error has occurred&...

Getting Error can't find '__main__' module in 'X'
Hey I am newbie in python.I have installed python 2.7.5 correctly.It is working fine but I am having some issues.I have set windows Enviroment variables. The problem is when I try to save my program in a folder(C:\Users\John\X)it shows that module error but when I save it outside this X folder ( C:\Users\John ) It runs successfully.How to fix it? On 06/02/2013 07:04 AM, meakaakka wrote: > Hey I am newbie in python.I have installed python 2.7.5 correctly.It is working fine but I am having some issues.I have set windows Enviroment variables. Please be a lot more specific. Do you have ...

who said python can't be obsfucated!?
def s(c):return[]if c==[]else s([_ for _ in c[1:]if _<c[0]])+[c[0]] +s([_ for _ in c[1:]if _>=c[0]]) Anyone else got some wonders...? On Apr 2, 2:19 pm, cokofree...@gmail.com wrote: > def s(c):return[]if c==[]else s([_ for _ in c[1:]if _<c[0]])+[c[0]] > +s([_ for _ in c[1:]if _>=c[0]]) > > Anyone else got some wonders...? Nope. On Wed, 02 Apr 2008 07:19:08 -0700, cokofreedom wrote: > def s(c):return[]if c==[]else s([_ for _ in c[1:]if _<c[0]])+[c[0]] > +s([_ for _ in c[1:]if _>=c[0]]) > > Anyone else got some wonders...? Not so good: it took me ...

I can't install python on my pc
I can=E2=80=99t install python on my pc because it encounters an error ever= y time I try to install it. Please help as soon as possible. Sent from Mail for Windows 10 On Sat, 20 Feb 2016 06:34 pm, Giriprasadh Raghavan wrote: > > I can’t install python on my pc because it encounters an error every time > I try to install it. Please help as soon as possible. Sent from Mail for > Windows 10 Shall we guess what the error says? My guess is that you are out of disk space. You need to delete some files, or put in a bigger hard drive. -- Steven ...

Can't initialize the BDE error
Hi All I get the following error: "An error occurred while attempting to initialize the Borland Database Engine (error $2501)" I have Delphi 4 installed, and then also installed Delphi 7. I assume that it is caused by both installations on the same machine. How can I get the BDE working in Delphi 7 (actually, of cource on both)? Both are installed in different directories, i.e. "C:\Program Files\Common Files\Borland Shared 4\BDE\bdeadmin.exe" and "C:\Program Files\Common Files\Borland Shared 7\BDE\bdeadmin.exe" Thanks in advance Anton...

Why Python 4.0 won't be like Python 3.0
A blog from Nick Coghlan http://www.curiousefficiency.org/posts/2014/08/python-4000.html that should help put a few minds to rest. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence On 2014-08-17, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote: > A blog from Nick Coghlan > http://www.curiousefficiency.org/posts/2014/08/python-4000.html that > should help put a few minds to rest. I agree with the comments that the appellation for "simply the next version after 3.9" should be 3....

Web resources about - Fatal Python error: Py_Initialize: can't initialize sys standard streams - comp.lang.python

Resources last updated: 3/10/2016 12:05:47 PM