wx.html2 and py2exe

Hi,

When I run the py2exe'd version I get this exception at startup of my application - at a point where html2 is not yet used/imported.

Traceback (most recent call last):
   File "run_cb.py", line 13, in <module>
   File "zipextimporter.pyo", line 82, in load_module
   File "twcbsrc\controllers\app_cb.pyo", line 33, in <module>
   File "zipextimporter.pyo", line 82, in load_module
   File "twcbsrc\controllers\base.pyo", line 48, in <module>
   File "zipextimporter.pyo", line 82, in load_module
   File "wx\html2.pyo", line 63, in <module>
AttributeError: 'module' object has no attribute 'WEB_VIEW_ZOOM_TINY

I can see that py2exe packaged html2.pyo and _html2.pyd (that is where the object comes from, no?).

Anyone has some ideas on this?

Werner

First build after upgrade to latest preview of 2.9.5 and I had forgotten to delete py2exe "build" and "dist" folder, after that and a new build things are working again.

Sorry for the noise
Werner

···

On 23/04/2013 11:21, Werner wrote:

Hi,

When I run the py2exe'd version I get this exception at startup of my application - at a point where html2 is not yet used/imported.

Traceback (most recent call last):
  File "run_cb.py", line 13, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "twcbsrc\controllers\app_cb.pyo", line 33, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "twcbsrc\controllers\base.pyo", line 48, in <module>
  File "zipextimporter.pyo", line 82, in load_module
  File "wx\html2.pyo", line 63, in <module>
AttributeError: 'module' object has no attribute 'WEB_VIEW_ZOOM_TINY

I can see that py2exe packaged html2.pyo and _html2.pyd (that is where the object comes from, no?).

Anyone has some ideas on this?