Hi,

I am having problems installing matplotlib-0.90.0 under Mac OS X (using MacPorts) when having wxPython-2.8.4.0 installed, getting the following error at build-time:

DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/ _Users_jochen_source_macports-trunk_dports_python_py-matplotlib/work/ matplotlib-0.90.0" && /opt/local/bin/python2.4 setup.py build' setup.py:267: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible.
  import wxPython
/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
WXAgg's accelerator requires wxPython
running build


Nevertheless, matplotlib builds, but bails out with

> python
Python 2.4.4 (#1, May  8 2007, 21:00:03)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/local/lib/python2.4/site-packages/pylab.py", line 1, in ?
    from matplotlib.pylab import *
File "/opt/local/lib/python2.4/site-packages/matplotlib/pylab.py", line 222, in ?
    new_figure_manager, draw_if_interactive, show = pylab_setup()
File "/opt/local/lib/python2.4/site-packages/matplotlib/backends/ __init__.py", line 24, in pylab_setup
    globals(),locals(),[backend_name])
File "/opt/local/lib/python2.4/site-packages/matplotlib/backends/ backend_wxagg.py", line 19, in ?
    import wx
File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ __init__.py", line 45, in ?
    from wx._core import *
File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ _core.py", line 14007, in ?
    default = locale.getpreferredencoding()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/locale.py", line 399, in getpreferredencoding
    import _locale
ImportError: No module named _locale


Again, a release number mismatch;
but then there is also the
  import _locale
error.

With respect to matplotlib I have now resorted to install it with GTKAGG, which works as expected.


For wxPython: I get the same error when trying to import wxpython or wx directly in a fresh python:

> python -E
Python 2.4.4 (#1, May  8 2007, 21:00:03)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ __init__.py", line 45, in ?
    from wx._core import *
File "/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/ _core.py", line 14007, in ?
    default = locale.getpreferredencoding()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/locale.py", line 399, in getpreferredencoding
    import _locale
ImportError: No module named _locale
>>>



Is this a known issue?
Is there an easy way around ?
Is there any other information I should send?


Greetings,
Jochen
--
Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
        Sex, drugs and rock-n-roll


Attachment: PGP.sig
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to