I am trying to create a Mac application package from python modules using matplotlib and wxpython.
Before packaging, my code generated only a user warning of multiple calls on matplotlib.use method.
When I tried to run the application after packaging with py2app, the application crashed with the following error message:
app/Contents/Resources/lib/python2.6/matplotlib/backends/backend_wx.py line 1769 in _init_toolbar …
app/Contents/Resources/lib/python2.6/matplotlib/backends/backend_wx.py line 1609 in _load_bitmap …
app/Contents/Resources/lib/python2.6/wx/_gdi.py line 555 in init …
PyAssertionError: C++ assertion “IsOpened()” failed at /BUILD/wxPython-src-184.108.40.206/src/common/ffile.cpp(175)
in Seek(): can’t seek on closed file
Please let me know how I can solve this problem.
Thanks in advance!
from Myunghwa Hwang
School of Geographical Sciences and Urban Planning
Arizona State University
mhwang4@…287… or Myunghwa.Hwang@…1861…