Dear matplotlib/numpy gurus,
This is my first attempt to use matplotlib & numpy, with the following small piece of code:
#!/usr/bin/env jython **** jython because of the import of stilts from starjava ****
Fabrique les figures des champs du papier Catalogue
author=“marquett”
date ="$16 mai 2011 12:17:08$"
import sys
sys.path.append(’/star/starjava/etc/ttools’)
sys.path.append(’/Library/Frameworks/Python.framework//Versions/2.6/lib/python2.6/site-packages’)
import stilts
import glob
import matplotlib.pyplot as plt
I got the following trace:
Traceback (most recent call last):
File “/Users/marquett/Downloads/FigCat/src/figcat.py”, line 14, in
import matplotlib.pyplot as plt
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/init.py”, line 135, in
from matplotlib.rcsetup import (defaultParams,
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/rcsetup.py”, line 19, in
from matplotlib.colors import is_color_like
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/colors.py”, line 52, in
import numpy as np
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/init.py”, line 137, in
import add_newdocs
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/add_newdocs.py”, line 9, in
from numpy.lib import add_newdoc
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/init.py”, line 4, in
from type_check import *
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/type_check.py”, line 8, in
import numpy.core.numeric as _nx
File “/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/init.py”, line 5, in
import multiarray
ImportError: No module named multiarray
I use the latest 1.6.0 version of numpy and 1.0.0 one of matplotlib.
My so little experience tells me that this is a deep numpy issue rather than a matplotlib one.
Any hint welcome, thanks.
JB Marquette