I have found a workaround...not aesthetically pleasing at all, but it does
work.  I still think that I'm missing something easy on the pyinstaller
side....with the right recipe in the hooks-* script, things would probably
work just fine.

Anyway, what I did was to download the latest pubsub3 from sourceforge.
Since I was using the arg1 protocol, I copied all files in that
distribution, in core/arg1 to core (except for __init__.py), and deleted all
files in the core/kwargs directory.  Then I just changed all of my

from wx.lib.pubsub import Publisher

to

from pubsub import pub as Publisher

and everything works fine.

In effect, I worked around the path problem in a really hacky manner.
Hopefully someone here will know how to do this right in pyinstaller,
without having to hack pubsub to make it work.

On Tue, Oct 19, 2010 at 10:44 AM, Daniel Hyams <[email protected]> wrote:

> Have already done both :(
>
> I believe the problem arises because pubsub manipulates __path__ in order
> to pick between the v1 and v2 api's, but I just can't quite figure out what
> to put in the hooks file for wx.lib.pubsub to force it to import v1 of the
> api, which happens to be what I'm using.
>
>
> On Tue, Oct 19, 2010 at 10:34 AM, Martin Zibricky <[email protected]>wrote:
>
>> Daniel Hyams píše v Út 19. 10. 2010 v 10:12 -0400:
>> > wx.lib.pubsub is only one of the many modules that I'm importing from
>> > wxPython, though.  I import wx, wx.grid, wx.stc, and many others.
>> > pubsub is the only one that is causing any issues.
>>
>> maybe explicitly setting the API version could help somehow
>>
>> from wx.lib.pubsub import setupv1
>>
>> and maybe running building of your app with the -O python options (the
>> pubsub library contain some asserts which could fail when running as
>> frozen - with '-O' - python will ignore asserts)
>>
>> python -O Build.py your_spec_file.spec
>>
>> --
>> 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]<pyinstaller%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/pyinstaller?hl=en.
>>
>>
>
>
> --
> Daniel Hyams
> [email protected]
>



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

Reply via email to