Jump to content

[Solved] Install Matplotlib


marla06

Recommended Posts

I'm using Python version 2.7.1

As I did not specified any python version, I suppose it is the default.

If I want to choose a version, I suppose the line " #!/usr/local/bin/python?.? " should be at the top of my dispatch.wsgi file ?

If it is more convenient for you I can use Python version 3.2 too.

 

Cheers

Link to comment
Share on other sites

  • 2 weeks later...

The following were installed:

freetype 2.5.0.1
libpng 1.6.6
pyparsing 2.0.1
numpy 1.7.1
matplotlib 1.3.0

There may have been some other things installed too that I forgot to list. It seemed like every dependency had multiple uninstalled dependencies of its own.

root@stevie [/home/krydos/src/matplotlib-1.3.0]# /usr/local/bin/python2.7
Python 2.7.1 (r271:86832, May 15 2011, 21:32:40)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> print matplotlib.__version__
1.3.0

It appears to be working. Apologies for the delay in getting all this set up. I've been quite busy, and as you might imagine it wasn't a particularly simple thing to install.

  • Like 1
Link to comment
Share on other sites

Apparently it only partially works. I don't have anymore the "no module present" error while I do an "import matplotlib", but get

"libpng16.so.16: cannot open shared object file: No such file or directory" instead. Maybe a problem with access rights ?

 

A minimalistic test case of what I'm trying to do (It works locally) is:

 

from matplotlib.pyplot import Figure
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
import django
fig=Figure()
ax=fig.add_subplot(111)
canvas=FigureCanvas(fig)
response=django.http.HttpResponse(content_type='image/png')
canvas.print_png(response)

Link to comment
Share on other sites

I'm unable to reproduce the "libpng16.so.16: cannot open shared object file: No such file or directory" error. Can you post a link to the script that causes the error?

 

Also I'll let you in on a secret, it might seem a bit counter intuitive, but I always try to work on the topics that are the oldest first. So, when you "bump" a post it actually moves it to the bottom of my todo list each time.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...