Re: runtime error

2012-01-28 Thread Emile van Sebille
On 1/27/2012 10:38 AM nikos spanakis said... Hi I just minstalled python 3.1 on my windons XP SP3 but on the start up I get the following error message: You don't say what you specifically installed, but for windows you may find activestates distribution a good fit. See http://www.activest

runtime error

2012-01-27 Thread nikos spanakis
Hi I just  minstalled python 3.1 on my windons XP SP3 but on the start up I get the following error message: Fatal Python error: Py_Initialize: can't initialize sys standard streams ImportError: No module named encodings.utf_8 This application has requested the Runtime to terminate it in an

Re: odd runtime error

2010-12-01 Thread Cameron Simpson
On 01Dec2010 17:27, David Brown wrote: | Thanks for the clarification No worries. | I like the idea of wrapping all the | primary code in the script to a main function then calling it if its | being called by main. I find that useful too. I've got a few modules-that-implement-commands that look

Re: odd runtime error

2010-12-01 Thread David Brown
On Wed, Dec 1, 2010 at 5:19 PM, Cameron Simpson wrote: > On 01Dec2010 16:49, David Brown wrote: > | So I'm not subscribed to python-list but would like to get an answer > | to my question. I've made a small test program that dumps a > | RuntimeError and I'd like to know why. > | > | $ python test

Re: odd runtime error

2010-12-01 Thread Cameron Simpson
On 01Dec2010 16:49, David Brown wrote: | So I'm not subscribed to python-list but would like to get an answer | to my question. I've made a small test program that dumps a | RuntimeError and I'd like to know why. | | $ python test2.py | doing stuff | Traceback (most recent call last): | File "t

Re: odd runtime error

2010-12-01 Thread James Mills
On Thu, Dec 2, 2010 at 10:59 AM, Chris Rebert wrote: > On Wed, Dec 1, 2010 at 4:49 PM, David Brown wrote: >> So I'm not subscribed to python-list but would like to get an answer >> to my question. I've made a small test program that dumps a >> RuntimeError and I'd like to know why. >> >> $ python

Re: odd runtime error

2010-12-01 Thread David Brown
t; print "child %d exited with %d" % os.wait() > > It's *quite* strange for a module that's being imported to execute a > fork() in its body; this is almost assuredly the cause of the > RuntimeError. Why are you fork()ing in an importable module in the > first place?

Re: odd runtime error

2010-12-01 Thread Chris Rebert
On Wed, Dec 1, 2010 at 4:49 PM, David Brown wrote: > So I'm not subscribed to python-list but would like to get an answer > to my question. I've made a small test program that dumps a > RuntimeError and I'd like to know why. > > $ python test2.py > doing stuff > Traceback (most recent call last):

odd runtime error

2010-12-01 Thread David Brown
So I'm not subscribed to python-list but would like to get an answer to my question. I've made a small test program that dumps a RuntimeError and I'd like to know why. $ python test2.py doing stuff Traceback (most recent call last): File "test2.py", line 3, in import test RuntimeError: not

Re: Runtime error

2010-10-29 Thread John Machin
On Oct 29, 3:26 am, Sebastian wrote: > Hi all, > > I am new to python and I don't know how to fix this error. I only try to > execute python (or a cgi script) and I get an ouptu like > > [...] > 'import site' failed; traceback: > Traceback (most recent call last): > File "/usr/lib/python2.6/site.p

Re: Runtime error

2010-10-29 Thread Peter Pearson
On Thu, 28 Oct 2010 18:26:49 +0200, Sebastian wrote: > Hi all, > > I am new to python and I don't know how to fix this error. I only try to > execute python (or a cgi script) and I get an ouptu like > > [...] > 'import site' failed; traceback: > Traceback (most recent call last): > File "/usr/lib

Runtime Error

2010-10-28 Thread Sebastian
Hi all, I am new to python and I don't know how to fix this error. I only try to execute python (or a cgi script) and I get an ouptu like [...] 'import site' failed; traceback: Traceback (most recent call last): File "/usr/lib/python2.6/site.py", line 513, in main() File "/usr/lib/python2.6/s

Runtime error

2010-10-28 Thread Sebastian
Hi all, I am new to python and I don't know how to fix this error. I only try to execute python (or a cgi script) and I get an ouptu like [...] 'import site' failed; traceback: Traceback (most recent call last): File "/usr/lib/python2.6/site.py", line 513, in main() File "/usr/lib/python2.6/s

Re: pyc runtime error

2010-06-30 Thread Baris CUHADAR
On Jun 30, 3:10 pm, Thomas Jollans wrote: > On 06/30/2010 01:20 PM, Baris CUHADAR wrote: > > > > > On Jun 30, 12:06 pm, Christian Heimes wrote: > >>> Actually i wrote some scripts in python that are working as gateway > >>> controlling scripts iptables/tc/squid-proxy, and i want to execute > >>>

Re: pyc runtime error

2010-06-30 Thread Thomas Jollans
On 06/30/2010 01:20 PM, Baris CUHADAR wrote: > On Jun 30, 12:06 pm, Christian Heimes wrote: >>> Actually i wrote some scripts in python that are working as gateway >>> controlling scripts iptables/tc/squid-proxy, and i want to execute >>> them as cgi. Protection of source code is also important. T

Re: pyc runtime error

2010-06-30 Thread Baris CUHADAR
On Jun 30, 2:20 pm, Baris CUHADAR <189...@gmail.com> wrote: > On Jun 30, 12:06 pm, Christian Heimes wrote: > > > > Actually i wrote some scripts in python that are working as gateway > > > controlling scripts iptables/tc/squid-proxy, and i want to execute > > > them as cgi. Protection of source co

Re: pyc runtime error

2010-06-30 Thread Baris CUHADAR
On Jun 30, 12:06 pm, Christian Heimes wrote: > > Actually i wrote some scripts in python that are working as gateway > > controlling scripts iptables/tc/squid-proxy, and i want to execute > > them as cgi. Protection of source code is also important. These > > scripts works fine with ubuntu 9.10 an

Re: pyc runtime error

2010-06-30 Thread Christian Heimes
> Actually i wrote some scripts in python that are working as gateway > controlling scripts iptables/tc/squid-proxy, and i want to execute > them as cgi. Protection of source code is also important. These > scripts works fine with ubuntu 9.10 and ubuntu 10.04, trying to > eleminate this execution e

Re: pyc runtime error

2010-06-30 Thread Baris CUHADAR
On Jun 30, 11:31 am, Rami Chowdhury wrote: > On 2010-06-30 01:06, Baris CUHADAR wrote: > > > Can anyone explain this unexpected behavior? > > I'm sorry -- can you let us know what behavior you're expecting? > > > all files chmod 755, i've compiled x.py with py_compilefiles, > > also tried within p

Re: pyc runtime error

2010-06-30 Thread Rami Chowdhury
On 2010-06-30 01:06, Baris CUHADAR wrote: > Can anyone explain this unexpected behavior? I'm sorry -- can you let us know what behavior you're expecting? > all files chmod 755, i've compiled x.py with py_compilefiles, > also tried within python console with "import x" > > system: centos 5.4 32b

Re: pyc runtime error

2010-06-30 Thread Chris Rebert
On Wed, Jun 30, 2010 at 1:06 AM, Baris CUHADAR <189...@gmail.com> wrote: > Can anyone explain this unexpected behavior? > all files chmod 755, i've compiled x.py with py_compilefiles, > also tried within python console with "import x" > > system:  centos 5.4 32bit > > This a PATH related problem i

pyc runtime error

2010-06-30 Thread Baris CUHADAR
Can anyone explain this unexpected behavior? all files chmod 755, i've compiled x.py with py_compilefiles, also tried within python console with "import x" system: centos 5.4 32bit This a PATH related problem i think? [r...@centos-14 cgi-bin]# ./x.pyc : command not found ./x.pyc: line 2: synta

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-14 Thread W. eWatson
Gabriel Genellina wrote: En Sun, 12 Oct 2008 23:45:15 -0300, W. eWatson <[EMAIL PROTECTED]> escribió: The meat of the matter is the Fatal error msg I copied below. To me it indicates a serious error. Maybe some developer can sort it out. From above post. ++ A

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-14 Thread Gabriel Genellina
En Sun, 12 Oct 2008 23:45:15 -0300, W. eWatson <[EMAIL PROTECTED]> escribió: The meat of the matter is the Fatal error msg I copied below. To me it indicates a serious error. Maybe some developer can sort it out. From above post. ++ Ah, a tiny break through.

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Thanks for the help, but I'm bowing out of this graphics problem. This should have been a snap, but has turned into a detour. I'll get back to the python program I was considering for it, and just work without the scatter plot. It's easily done. It would just look prettier in a plot. The meat

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Ah, a tiny break through. I got C:\Python24\python myprogram.py aprog.py. I copied the program to this folder. I don't seem to be able to copy the window, so I see pretty much what I had before from a dialog that popped up, except it adds: Fatal Pyton error: Pystring_InterInPlace: strings only p

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Dennis Lee Bieber wrote: On Sun, 12 Oct 2008 15:07:57 -0700, "W. eWatson" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: I worked my way into the folder where the py program is, but couldn't executed. Just entering aprog.py, run aprog.py or exec aprog.py didn't work.

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
John Machin wrote: On Oct 13, 9:07 am, "W. eWatson" <[EMAIL PROTECTED]> wrote: I worked my way into the folder where the py program is, but couldn't executed. Just entering aprog.py, run aprog.py or exec aprog.py didn't work. One wouldn't expect the "run" or the "exec" to work. Try these in

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread John Machin
On Oct 13, 9:07 am, "W. eWatson" <[EMAIL PROTECTED]> wrote: > > I worked my way into the folder where the py program is, but couldn't > executed. Just entering aprog.py, run aprog.py or exec aprog.py didn't work. One wouldn't expect the "run" or the "exec" to work. Try these in this order: pytho

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Dennis Lee Bieber wrote: On Sun, 12 Oct 2008 12:56:26 -0700, "W. eWatson" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Oddly when I use cmd, it gets me to settings and docs. If I try c:\whatever I get a msg, and it remains in the same folder. That's likely the def

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread Benjamin Kaplan
On Sun, Oct 12, 2008 at 3:56 PM, W. eWatson <[EMAIL PROTECTED]> wrote: > > Thanks. > > Oddly when I use cmd, it gets me to settings and docs. If I try c:\whatever > I get a msg, and it remains in the same folder. > Are you just typing "C:\whatever" or did you type in "chdir C:\whatever"? -- http

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Dennis Lee Bieber wrote: On Sun, 12 Oct 2008 11:24:32 -0700, "W. eWatson" <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: available there. I've long forgotten how to get a console window up in Win XP. I can strip it all the code way down to the from, and it will fail the same

Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
I copied the following code from a matplotlib tutorial, and it fails. I'm using python 2.4 on Win XP. It's matplotlib-0.98.3.win32-py2.4exe. It fails in IDLE with a small window showing a runtime error. Clicking the OK on it kills IDLE and the shell. If I double-click on the py

Re: Runtime Error when loading ".pyd" module

2006-03-06 Thread Terry Tang
3 AM Subject: Re: Runtime Error when loading ".pyd" module > Terry Tang wrote: > > > it hits a "Runtime Error" (which is shown in a message box saying "abnormal > > program termination") and a message like the following is printed in the > > console:

Re: Runtime Error when loading ".pyd" module

2006-03-02 Thread Fredrik Lundh
Terry Tang wrote: > it hits a "Runtime Error" (which is shown in a message box saying "abnormal > program termination") and a message like the following is printed in the > console: > Fatal Python error: Interpreter not initialized (version mismatch?) both the mai

Help: Runtime Error when loading ".pyd" module

2006-03-01 Thread Terry Tang
kinter; # which finally calls: import _tkinter or import datetime it hits a "Runtime Error" (which is shown in a message box saying "abnormal program termination") and a message like the following is printed in the console: Fatal Python error: Interpreter not initialized (