I unfortunately have not been able to get setupv1 to work. It has a couple of problems that I do not know how to surmount. The first is that it asserts if it finds that it has more than one path in its own __path__; when frozen, this will be the case, so the assert fails. The assert was unnecessary, so I removed it...but then, freezing with the v1 api active is successful, but nothing happens when the pubsub messages are sent, for a reason I was unable to determine.
I did take a quick look at GNUmed, and it looks like it would be a trivial matter to convert it to use the v3 api. Just put "from wx.lib.pubsub import setuparg1" before the importing of wx.lib.pubsub in gmGuiMain.py, and then replace all instances of Publisher() with pub, and it should work fine (there are about ten of them). On Tue, Dec 13, 2011 at 2:45 PM, Sebastian Hilbert < [email protected]> wrote: > On Tuesday, December 13, 2011 08:20:15 PM Sebastian Hilbert wrote: > > On Tuesday, December 13, 2011 07:57:58 PM Sebastian Hilbert wrote: > > > On Tuesday, December 13, 2011 07:23:00 PM Daniel Hyams wrote: > > > > Right; as far as I can tell and have tested, both v3 api's work (arg1 > > > > and kwargs). It's only the v1 api that is giving a problem, and has > > > > not been tested, at least by me. > > > > > > I have tested the examples you provided once again. > > > It seems that both do work despite me saying that arg1 does not work > > > yesterday. > > > > > > So from what I can say now is that arg1 and kwargs examples seem to > work. > > > > > > setupv1 has not been tested yet. > > > > I am starting to look into GNUmed. Now I see this. > > > > --------------------------------- > > > > Analyzing: C:\workplace\gnumed-client.1.1.7\client\gnumed.py > > W: library coredll.dll required via ctypes not found > > C:\workplace\pyinstaller-1.5.1\hooks\hook-wx.lib.pubsub.core.py:1: > > RuntimeWarnin > > g: Parent module 'hooks.hook-wx.lib.pubsub' not found while handling > > absolute im > > port > > import os > > C:\workplace\pyinstaller-1.5.1\hooks\hook-wx.lib.pubsub.core.py:2: > > RuntimeWarnin > > g: Parent module 'hooks.hook-wx.lib.pubsub' not found while handling > > absolute im > > port > > import sys > > wx.lib.pubsub: Adding kwargs protocol path > > W: pythoncom is changing it's name to pythoncom27 > > W: pywintypes is changing it's name to PyWinTypes27 > > C:\workplace\pyinstaller-1.5.1\hooks\hook-wx.lib.pubsub.setuparg1.py:1: > > RuntimeW > > arning: Parent module 'hooks.hook-wx.lib.pubsub' not found while handling > > absolu > > te import > > import os > > C:\workplace\pyinstaller-1.5.1\hooks\hook-wx.lib.pubsub.setuparg1.py:2: > > RuntimeW > > arning: Parent module 'hooks.hook-wx.lib.pubsub' not found while handling > > absolu > > te import > > import sys > > I: Analyzing C:\Python27\python.exe > > I: Dependent assemblies of C:\Python27\python.exe: > > > > -------------------------------------- > > > > The stuff about the parent hook. Is this critical ? > > > I can confirm that this arg1 version seems to work in the sense that it > freezes > ok. This API however seems to require upstream changes. Which is ok. > > I wonder if the setupv1 version can be made to work. Hopefully it does not > require upstream changes. > > Sebastian > > -- > You received this message because you are subscribed to the Google Groups > "PyInstaller" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pyinstaller?hl=en. > > -- Daniel Hyams [email protected] -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
