komodo thread problem

2005-02-04 Thread [EMAIL PROTECTED]
Komodo problem with threading: Hello, I can't run this program: def printtime(Max): i = 0 while True: time.sleep(1) print time.ctime(time.time()) i+=1 if i==Max : break pass if __name__ == "__main__": thread.start_new_thread(printtime,(2,)) But it runs inside IDLE. pujo --

freebsd thread problem

2006-04-24 Thread Dorian Mcfarland
Hi there, I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the ports collection and I seem to have an underlying problem with the thread module. Pysqlite is calling 'import thread' which is failing with "no such module" and causing it not to load. I thought that 'thread' was one

Re: freebsd thread problem

2006-04-24 Thread Ivan Voras
Dorian Mcfarland wrote: > Hi there, > I have installed python(2.4.3) & trac(0.9.4) on freebsd(4.8) from the > ports collection and I seem to have an underlying problem with the > thread module. > Salling 'import thread' from the python prompt yields the same result. > > I have a 'threading.py'

Re: freebsd thread problem

2006-04-24 Thread Dorian Mcfarland
That was the problem. thanks for the clarity - finally working. > How did you install python? By default, if built from ports, it should > pop up a configuration dialog in which one of the options is to enable > thread support. If you have a bad configuration record, you can do a > "make config

os.system() inside a thread problem

2004-12-11 Thread Daniel Bernhardt
Hello, my thread calls a program with os.system(). > os.system("/usr/bin/wine /path/to/ultima/online.exe") Ultima Online is starting and i can enter commands and navigate through the game with my keyboard. If I move the mouse over the Ultima Online window Ultima Online crashes. (the mouse just ne

Re: os.system() inside a thread problem

2004-12-11 Thread Fredrik Lundh
Daniel Bernhardt wrote: > my thread calls a program with os.system(). >> os.system("/usr/bin/wine /path/to/ultima/online.exe") in the example you included, you use execv. which one is it? > Ultima Online is starting and i can enter commands and navigate through the > game with my keyboard. If I

Re: os.system() inside a thread problem

2004-12-11 Thread Daniel Bernhardt
Fredrik Lundh wrote: > in the example you included, you use execv. which one is it? it should be system(). I just played a bit and forgot to change it back. > > just curious: do you really have to use a thread? why not just do > >os.system(command + "&") > No, i don't need to use a th

python's thread problem on Linux platform

2006-04-22 Thread devdoer
I found that multi-threaded program(io-centralize ) runs very slowly on linux while the same program runs very quickly on windows.If I change the thread number to one ,the program runs quickly on linux, in fact the speed is quicker than the multi-threaded version . It turns out that python'

Re: python's thread problem on Linux platform

2006-04-22 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: > I found that multi-threaded program(io-centralize ) runs very slowly > on linux while the same program runs very quickly on windows.If I > change the thread number to one ,the program runs quickly on linux, in > fact the speed is quicker than the multi-threaded vers

Re: python's thread problem on Linux platform

2006-04-23 Thread robert
[EMAIL PROTECTED] wrote: > I found that multi-threaded program(io-centralize ) runs very slowly > on linux while the same program runs very quickly on windows.If I > change the thread number to one ,the program runs quickly on linux, in > fact the speed is quicker than the multi-threaded ver