On Wednesday, December 14, 2011 02:40:44 AM Daniel Hyams wrote:

HI Daniel,

> And as far as converting to api v3, also change any 'topic' keywords to
> 'topicName'.

I agree with your summary of findings.
For me that would mean we would need to get pure setupv1 api working with 
pyinstaller.

I have created a test case for it and here is the output after having been 
frozen.
==========================================

import wx._gdi_ # dynamically loaded from C:
\Temp\pubsub\dist\test_wxpubsub_setu
pv1\wx._gdi_.pyd
import wx._windows_ # dynamically loaded from C:
\Temp\pubsub\dist\test_wxpubsub_
setupv1\wx._windows_.pyd
import wx._controls_ # dynamically loaded from C:
\Temp\pubsub\dist\test_wxpubsub
_setupv1\wx._controls_.pyd
import wx._misc_ # dynamically loaded from C:
\Temp\pubsub\dist\test_wxpubsub_set
upv1\wx._misc_.pyd
Traceback (most recent call last):
  File "<string>", line 5, in <module>
  File "C:\workplace\pyinstaller-1.5.1\iu.py", line 477, in importHook
    mod = self.doimport(nm, ctx, ctx+'.'+nm)
  File "C:\workplace\pyinstaller-1.5.1\iu.py", line 521, in doimport
    exec co in mod.__dict__
  File "c:
\Temp\pubsub\build\pyi.win32\test_wxpubsub_setupv1\outPYZ1.pyz/wx.lib.
pubsub.setupv1", line 16, in <module>
  File "c:
\Temp\pubsub\build\pyi.win32\test_wxpubsub_setupv1\outPYZ1.pyz/wx.lib.
pubsub.pubsubconf", line 16, in setVersion
  File "c:
\Temp\pubsub\build\pyi.win32\test_wxpubsub_setupv1\outPYZ1.pyz/wx.lib.
pubsub.pubsubconf", line 51, in setVersion
AssertionError
RC: -1 from test_wxpubsub_setupv1
OK.

===========================================

Interestingly (but that really is another problem) when I use the arg1 api in 
unfrozen state it works just fine for GNUmed. However when using arg1 in frozen 
mode it freezes ok but does not run properly due to complaints about the 
syntax in subscribe() statements.

A shot in the dark is that the frozen version and the unfrozen version do not 
use the same api version despite having the same import statements.

This could be due to the freezing process/hook.

I will try to verify this by checking the test cases you supplied for arg1 
once more.

Regards,
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.

Reply via email to