problem with modules

Hi there,

Very basic questions.
I have installed matplotlib by Synaptic on Ubuntu and I’m trying to get the examples work (without much success!).

  1. To begin with, I’ve copied the lines:

deb http://anakonda.altervista.org/debian packages/
deb-src http://anakonda.altervista.org/debian sources/

into /etc/apt/sources.list, but when I try to update I get errors like this:

Failed to fetch http://anakonda.altervista.org/debian/packages/Packages.gz 302 Moved Temporarily [IP: 193.1.172.188 8484]

  1. When I try to run some examples I have downloaded from the website, the program complains about modules. For example, if I try
    python hline_demo.py

I get:

Traceback (most recent call last):
File “hline_demo.py”, line 2, in
from matplotlib.pyplot import *
ImportError: No module named pyplot

Can anybody help here?

Cheers,
Davide

1. To begin with, I've copied the lines:

deb http://anakonda.altervista.org/debian packages/
deb-src http://anakonda.altervista.org/debian sources/

I'm sure matplotlib is in Ubuntu's official repos by now [1]. Same for Debian.

2. When I try to run some examples I have downloaded from the website, the
program complains about modules. For example, if I try
python hline_demo.py

Ubuntu's latest version is 0.90.1. According to [2], the pyplot
module was introduced with 0.91.2.

[1] http://packages.ubuntu.com/search?keywords=matplotlib&searchon=names&suite=all&section=all
[2] http://matplotlib.sourceforge.net/whats_new.html

cheers,
steve

···

On Thu, Feb 28, 2008 at 05:40:00PM +0000, Davide Cellai wrote:

That answers my questions.

Thank you very much,

Davide

···

On Thu, Feb 28, 2008 at 8:08 PM, Steve Schmerler <elcorto@…361…> wrote:

On Thu, Feb 28, 2008 at 05:40:00PM +0000, Davide Cellai wrote:

  1. To begin with, I’ve copied the lines:

deb http://anakonda.altervista.org/debian packages/

deb-src http://anakonda.altervista.org/debian sources/

I’m sure matplotlib is in Ubuntu’s official repos by now [1]. Same for Debian.

  1. When I try to run some examples I have downloaded from the website, the

program complains about modules. For example, if I try

python hline_demo.py

Ubuntu’s latest version is 0.90.1. According to [2], the pyplot

module was introduced with 0.91.2.

[1] http://packages.ubuntu.com/search?keywords=matplotlib&searchon=names&suite=all&section=all

[2] http://matplotlib.sourceforge.net/whats_new.html

cheers,

steve


This SF.net email is sponsored by: Microsoft

Defy all challenges. Microsoft(R) Visual Studio 2008.

http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Davide Cellai wrote:

That answers my questions.

Thank you very much,

Davide

     > 1. To begin with, I've copied the lines:
     >
     > deb http://anakonda.altervista.org/debian packages/
     > deb-src http://anakonda.altervista.org/debian sources/
     >

    I'm sure matplotlib is in Ubuntu's official repos by now [1]. Same
    for Debian.

     > 2. When I try to run some examples I have downloaded from the
    website, the
     > program complains about modules. For example, if I try
     > python hline_demo.py
     >

    Ubuntu's latest version is 0.90.1. According to [2], the pyplot
    module was introduced with 0.91.2.

Right -- but the examples from 0.90.1 should still work for you if you want to use the 0.90.1 packages in the Ubuntu or Debian repositories. You can download the (older) examples as part of the source distribution from here:

Cheers,
Mike

···

On Thu, Feb 28, 2008 at 8:08 PM, Steve Schmerler <elcorto@...361... > <mailto:elcorto@…361…>> wrote:
    On Thu, Feb 28, 2008 at 05:40:00PM +0000, Davide Cellai wrote:

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA