Installing from svn

Hi,

I'm trying to install matplotlib from the svn source. I can compile
the code and install it to my desired location but I cannot import it
into python.

I did:

svn co matplotlib download | SourceForge.net
matplotlib
cd matplotlib
python setup.py install --prefix=/home/glen/local

I have numpy and scipy installed and working correctly using the above
prefix and matplotlib compiles and installs the same way but when I
issue "import matplotlib as mpl" nothing results. There is no error
but also no library.

dir(mpl)

['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']

mpl.__path__

['matplotlib']

mpl.__file__

'matplotlib/__init__.pyc'

Where am I going wrong?

Glen

Glen Shennan, on 2011-01-21 15:41, wrote:

Hi,

I'm trying to install matplotlib from the svn source. I can compile
the code and install it to my desired location but I cannot import it
into python.

I did:

svn co matplotlib download | SourceForge.net
matplotlib
cd matplotlib
python setup.py install --prefix=/home/glen/local

I have numpy and scipy installed and working correctly using the above
prefix and matplotlib compiles and installs the same way but when I
issue "import matplotlib as mpl" nothing results. There is no error
but also no library.

>>> dir(mpl)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']

>>> mpl.__path__
['matplotlib']

>>> mpl.__file__
'matplotlib/__init__.pyc'

Hi Glen,

what directory are you in when you're doing this?

>>> mpl.__path__
['matplotlib']

suggests that you're importing from some local directory. If
everything worked right, the path should be something like

mpl.__path__

['/home/glen/local/lib/python2.x/site-packages/matplotlib']

best,

ยทยทยท

--
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7