> Have you bundled it using PyInstaller, too? Are you using MERGE?

No, I haven’t. I haven’t had taken a look at Merge—up until now my belief was 
that multiprocessing did not need such tools. I can run Twisted’s own 
spawnProcess without bundling the subprocess or without merge, so I would think 
Ampoule would not change anything. It’s nothing but a wrapper over spawnProcess.

> Well, I'd prefer having a requirements.txt and a PyInstaller .spec-file, so I 
> can immediately start looking into the problem. :-)

My apologies, here’s the last working spec file I had. 

https://dl.dropboxusercontent.com/u/5815330/aether.spec

Requirements.txt does not work in this case, because PyQt needs to be compiled 
against the Qt installation you have. It handles everything, but it’s not 
automated into pip. 

I have tried to replace the sys.executable in the code I have sent:

return reactor.spawnProcess(processProtocol, sys.executable, args,
                                    env, path, uid, gid, usePTY,
                                    childFDs={0:"w", 1:"r", 2:"r", 3:"w", 
4:"r”})

And replaced it with the directory of my virtual environment. This at least 
started to show some import errors. It seems that it was trying to invoke the 
PyInstaller bundled executable as if it was the Python executable, which was 
the reason I was seeing a million of the same app being spawned. When I pointed 
it to a real Python executable, it started to at least show something.

My worst case scenario is that I can just put my entire virtual environment 
into the packaged folder, which I would find via _MEIPASS and use the Python 
executable there. A rather roundabout way to do this, but I can’t seem to find 
any other. 

Should I be packaging the second process on its own? Can Merge handle this?

Thanks for the help. I have had more progress yesterday than I had in entire 
last month.

Best,
Burak





On Apr 7, 2014, at 10:35 AM, Hartmut Goebel <[email protected]> wrote:

> Am 06.04.2014 23:55, schrieb Burak Nehbit:
>> The second program, which is the child process, runs on its own if I run it 
>> alone. It’s a GUI using PyQt and Qt. It
> 
> Have you bundled it using PyInstaller, too? Are you using MERGE?
> 
>> If you want to give a shot running it on your local machine, you can grab 
>> the code and follow the ‘Dependencies’ part of this blog post: 
>> http://blog.getaether.net/post/79723395145/aether-v1-1-is-here If you have 
>> PyQt5 / Qt installed, it should be fairly straightforward.
> 
> Well, I'd prefer having a requirements.txt and a PyInstaller .spec-file, so I 
> can immediately start looking into the problem. :-)
> 
> -- 
> Schönen Gruß 
> Hartmut Goebel 
> Dipl.-Informatiker (univ), CISSP, CSSLP
> Information Security Management, Security Governance, Secure Software 
> Development
> Goebel Consult, Landshut 
> http://www.goebel-consult.de
> 
> Blog: http://www.goebel-consult.de/blog/kurzanalyse-disconnect.me 
> Kolumne: 
> http://www.cissp-gefluester.de/2011-09-kommerz-uber-recht-fdp-die-gefaellt-mir-partei
> 
> Goebel Consult ist Mitglied bei http://www.7-it.de/
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to