py2exe problem

Hello,

after generating my multiplot.exe file with py2exe, I get following error message:

Traceback (most recent call last):
   File "multiplot.py", line 3, in <module>
   File "matplotlib\backends\backend_wxagg.pyo", line 21, in <module>
   File "matplotlib\figure.pyo", line 33, in <module>
   File "matplotlib\projections\__init__.pyo", line 1, in <module>
   File "matplotlib\projections\geo.pyo", line 4, in <module>
   File "matplotlib\numerix\__init__.pyo", line 166, in <module>
ImportError: No module named ma

Does anyone know what I can do? I already tried different bundle, optimize and compress settings, always the same result. BTW, I use matplotlib version 0.98.1 and numpy 1.1.1 (I think there was a problem with using 2 older versions of them).

If more information is needed, let me know.

Thanks!

Frederik Golks

F. Golks wrote:

Hello,

after generating my multiplot.exe file with py2exe, I get following error message:

Traceback (most recent call last):
  File "multiplot.py", line 3, in <module>
  File "matplotlib\backends\backend_wxagg.pyo", line 21, in <module>
  File "matplotlib\figure.pyo", line 33, in <module>
  File "matplotlib\projections\__init__.pyo", line 1, in <module>
  File "matplotlib\projections\geo.pyo", line 4, in <module>
  File "matplotlib\numerix\__init__.pyo", line 166, in <module>
ImportError: No module named ma

Does anyone know what I can do? I already tried different bundle, optimize and compress settings, always the same result. BTW, I use matplotlib version 0.98.1 and numpy 1.1.1 (I think there was a problem with using 2 older versions of them).

If more information is needed, let me know.

Thanks!

Frederik Golks

My guess is you need to include the matplotlib (and maybe the numpy) packages in your setup.py file. You should have a "packages" line with a list. Something like this:

packages = ['matplotlib', 'numpy']

Otherwise, you might want to post to the py2exe mailing list. I personally prefer Andrea's GUI2Exe as it makes this sort of thing a breeze: http://xoomer.alice.it/infinity77/main/GUI2Exe.html

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org