[wxpython-users] wxaddons and py2exe
Chris Barker
Chris.Barker at noaa.gov
Thu Apr 3 15:08:31 PDT 2008
Hi Kevin (and everyone else),
I'm running into an odd issue with wx addons and py2exe.
I'm using
wxaddons.sized_controls
and I'm also using pubsub (the version downloaded from SF)
py2exe bundles up OK, but then I get a runtime error:
file "wxaddons\__init__.p[yo, line 180 in import_hook
ImportError: No module named pubsubconf
Now, I have no idea what pubsubconf has to do with wxaddons, but I
suspect that it doesn't and this is simply a result of installing an
import hook, and now all imports are running through that. Which makes
me think:
why not change the order of the imports....
and BINGO! now I get the import error, but in the normal way -- off to
fix that.
But anyway, It's been my experience that import hooks just cause trouble:
Can I turn that off in wxaddons?
Is it really needed anyway? The auto-download stuff is nifty, but maybe
a better idea than reality.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list