Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-20 Thread Alexandre Quessy
Hi again, I think using multiprocessing should be the way to go, so that you use twisted for the main event loop in one process, and wx for the main event loop in the other. In a simple way, you can also build your own custom multiprocessing tool. You just need one system calls, and one network co

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-20 Thread Gabriel Rossetti
Hello Alexandre, His is how I had it before, but it was causing me problems and I was told that it's better tu run them in separate threads. Do you use twistd (.tac files)? I'll have a look at your application, thanks! Gabriel Alexandre Quessy wrote: Hi everyone, I use Twisted everyday, and

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-15 Thread Alexandre Quessy
Hi everyone, I use Twisted everyday, and have worked on a wx GUI for an application using it. We also use Py2App to bundle it up. It works flawlessly. I use the Twisted main loop, which controls the wx events loop. To make both of them work together, you need to do the following : {{{ from twiste

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-14 Thread Gabriel Rossetti
Christopher Barker wrote: Gabriel Rossetti wrote: no SSH, nothing) and I have to had reboot it. It uses a combination of Twisted and wxPython and is rather large, so I don't know where this comes from, it could be wx, twisted or the two together. It's probably not wx -- it is used a fair bit

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Nathan
On Wed, Aug 12, 2009 at 2:15 PM, Christopher Barker wrote: > Gabriel Rossetti wrote: >> >> no SSH, nothing) and I have to had reboot it. It uses a combination of >> Twisted and wxPython and is rather large, so I don't know where this comes >> from, it could be wx, twisted or the two together. > > I

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Dave Peterson
Christopher Barker wrote: hmm -- I think that is indeed where the working dir is set by py2app when starting op. try: print os.getcwd() you can look in the "Console" app to see stuff printed to stdout. Or you can just open up a terminal and explicitly run the executable like so: /path/t

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Christopher Barker
Gabriel Rossetti wrote: no SSH, nothing) and I have to had reboot it. It uses a combination of Twisted and wxPython and is rather large, so I don't know where this comes from, it could be wx, twisted or the two together. It's probably not wx -- it is used a fair bit on Macs. I don't know how

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Aahz
On Wed, Aug 12, 2009, Gabriel Rossetti wrote: > > Hello everyone, I am trying to use py2app with multiprocessing but it > doesn't work correctly, I get this : > > ImportError: > '/System/Library/Frameworks/Python.framework/Versions/2.5/lib-dynload/multiprocessing/_multiprocessing.so' > > not

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Gabriel Rossetti
Thank you Daniel for your comment, I am having a rather hard time porting my app to Mac. It works great on linux, it also works on windows, but on Mac it goes crazy, it even locks up the OS (all I can do is move the mouse pinwheel of death around but no clicks, no keyboard, no SSH, nothing) and

Re: [Pythonmac-SIG] py2app & multiprocessing

2009-08-12 Thread Daniel Ashbrook
I don't know the answer to this question, but I wanted to warn you: be careful using multiprocessing with PyObjc. I never was able to get it into a easy test case, but sometimes one or more of my multiprocessing processes would never return when used in conjunction with PyObjc, and the prog