Hi all,
I am on Mac OS 10.5 and numpy 1.3.0 and matplotlib 0.91.1.
When I run a qtdemo script, it fails with
File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/numerix/ma/__init__.py",
line 16, in <module>
from numpy.core.ma import *
ImportError: No module named ma
Any ideas? I have a mixed up system where I have installed my own
version of Python 2.6 and Apple's version at 2.5. Presently I am using
Apple's version of Python.
Kind regards,
Chaitanya
Diagnostics follow!!
ckande@...2821...:~/Downloads/pyqt_dataplot_demo> python-osx qt_mpl_dataplot.pyw
Traceback (most recent call last):
File "qt_mpl_dataplot.pyw", line 18, in <module>
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg
as FigureCanvas
File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/backends/backend_qt4agg.py",
line 9, in <module>
from matplotlib.figure import Figure
File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/figure.py",
line 10, in <module>
from axes import Axes, Subplot, PolarSubplot, PolarAxes
File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/axes.py",
line 6, in <module>
import matplotlib.numerix.npyma as ma
File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/numerix/__init__.py",
line 166, in <module>
__import__('ma', g, l)
File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/numerix/ma/__init__.py",
line 16, in <module>
from numpy.core.ma import *
ImportError: No module named ma
ckande@...2821...:~> python-osx
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import numpy
print numpy
<module 'numpy' from
'/Library/Python/2.5/site-packages/numpy-1.3.0-py2.5-macosx-10.5-i386.egg/numpy/__init__.pyc'>
import numpy.core
print numpy.core
<module 'numpy.core' from
'/Library/Python/2.5/site-packages/numpy-1.3.0-py2.5-macosx-10.5-i386.egg/numpy/core/__init__.pyc'>
import numpy.core.ma
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named ma
import matplotlib
print matplotlib
<module 'matplotlib' from
'/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/__init__.pyc'>