SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Christian M. <mee...@un...> - 2005年10月27日 13:35:29
Hi all, Hi John,
I remembered that there was a recent post on installing matplotlib on
Ubuntu.
I tried apt-get update without an error message, but running apt-get
install python-matplotlib-jdh gives me the following output.
Reading package lists... Done
Building dependency tree... Done
Package python-matplotlib-jdh is not available, but is referred to by
another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package python-matplotlib-jdh has no installation candidate
Apparently something changed since your post and now John. Is the
package still available? What else would be a convenient way to install?
Well, I fear my question will turn out to be stupid, but I really have
no idea where to look for my mistake anymore.
TIA
Christian
From: Ryan K. <rya...@gm...> - 2005年10月27日 14:57:59
I recently installed matplotlib on ubuntu Breezy and it went fairly
well. I was having some problems that I thought were from John's
package not working on Breezy but turned out to be something else. I
ended up installing from source. It is fairly straight forward to
download the tarball and do a sudo python setup.py install. I ran
into some problems with needing the wxPython.h header file for the
WXAgg backend. If you look for a thread I started with the subject
"WXAgg's accelerator requires `wx-config'." you should find that Ken
and Arnd got me through it. Let me know if you get stuck anywhere.
Ryan
On 10/27/05, Christian Meesters <mee...@un...> wrote:
> Hi all, Hi John,
>
> I remembered that there was a recent post on installing matplotlib on
> Ubuntu.
>
> I tried apt-get update without an error message, but running apt-get
> install python-matplotlib-jdh gives me the following output.
>
> Reading package lists... Done
> Building dependency tree... Done
> Package python-matplotlib-jdh is not available, but is referred to by
> another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
> E: Package python-matplotlib-jdh has no installation candidate
>
> Apparently something changed since your post and now John. Is the
> package still available? What else would be a convenient way to install?
>
> Well, I fear my question will turn out to be stupid, but I really have
> no idea where to look for my mistake anymore.
>
> TIA
> Christian
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Christian M. <mee...@un...> - 2005年10月27日 17:48:07
Hi Ryan,
Thanks, but I too run into problems:
Doing python setup.py build is fine until:
<snip>
src/_na_backend_gdk.c:12:25: error: pygtk/pygtk.h: No such file or
directory
src/_na_backend_gdk.c: In function =E2=80=98pixbuf_get_pixels_array=E2=80=
=99:
src/_na_backend_gdk.c:31: error: =E2=80=98PyGObject=E2=80=99 undeclared (=
first use in
this function)
src/_na_backend_gdk.c:31: error: (Each undeclared identifier is reported
only once
src/_na_backend_gdk.c:31: error: for each function it appears in.)
src/_na_backend_gdk.c:31: error: =E2=80=98py_pixbuf=E2=80=99 undeclared (=
first use in
this function)
src/_na_backend_gdk.c:32: error: =E2=80=98GdkPixbuf=E2=80=99 undeclared (=
first use in
this function)
src/_na_backend_gdk.c:32: error: =E2=80=98gdk_pixbuf=E2=80=99 undeclared =
(first use in
this function)
src/_na_backend_gdk.c:40: warning: implicit declaration of function
=E2=80=98GDK_PIXBUF=E2=80=99
src/_na_backend_gdk.c:46: warning: implicit declaration of function
=E2=80=98gdk_pixbuf_get_height=E2=80=99
src/_na_backend_gdk.c:47: warning: implicit declaration of function
=E2=80=98gdk_pixbuf_get_width=E2=80=99
src/_na_backend_gdk.c:48: warning: implicit declaration of function
=E2=80=98gdk_pixbuf_get_has_alpha=E2=80=99
src/_na_backend_gdk.c:52: warning: implicit declaration of function
=E2=80=98gdk_pixbuf_get_pixels=E2=80=99
src/_na_backend_gdk.c:52: warning: cast to pointer from integer of
different size
src/_na_backend_gdk.c:56: warning: implicit declaration of function
=E2=80=98gdk_pixbuf_get_rowstride=E2=80=99
src/_na_backend_gdk.c: In function =E2=80=98init_na_backend_gdk=E2=80=99:
src/_na_backend_gdk.c:84: warning: implicit declaration of function
=E2=80=98init_pygtk=E2=80=99
error: command 'gcc' failed with exit status 1
Apparently the autodetection fails. Then I disabled all backends (except
for Agg, WX, WXAgg, which I want to use) and next time I tried setup.py
build:
WXAgg's accelerator requires `wx-config'.
The `wx-config' executable could not be located in any directory of the
PATH
environment variable. If it is in some other location or has some other
name,
set the WX_CONFIG environment variable to the full path of the
executable.
Sounds familiar, doesn't it? ;-)
Now, I tried to read on and in the end I am - frankly - completely
confused. Since I can't compile (I tried some other tweaks) ... is
somebody able to compile installation instructions? It appears that the
part on matplotlib's web page isn't up to date (how to build, the issue
with the debian's package, possibly other problems yet not seen by me?).
I would be willing to test everything shown to me and summarize this.
(Alas, I don't know how to build packages myself yet and I fear I won't
have the time to do anything quickly.)
Cheers,
Christian
From: Ryan K. <rya...@gm...> - 2005年10月27日 18:26:59
Attachments: wxPython.h
I know this can be frustrating, but hang in there.
Your initial error about pygtk.h not being found is a dependency
error. You need some other packages and I am not sure what they all
are. They are generally the development packages. For this one,
search in the Synaptics package manager for pygtk and find
python-gtk2-dev (and probably python-gnome2-dev). You may run into a
few more of these. Whenever you see a *.h: No such file error, you
have a dev package missing.
The only way around the wx-config error is to download the wxPython
source tarball and find wxPython.h. Then copy it to
/usr/include/wx/wxPython/wxPython.h. I will attach mine, but this
may be a bad idea. You can download from their webpage here:
http://www.wxpython.org/download.php#sources
(grab the first one in the list that doesn't say RPM - it is the tar.gz fil=
e).
So, copying wxPython.h from the tarball or the attached file should
solve the wx-config error (you may need the other *.h files in the
same folder of the tarball). Working through the dev packages should
solve the errors with the other backends. I have TkAgg, GTKAgg,
WXAgg, and PS working on mine (there are probably others, but those I
have tested).
Let me know if you need more info.
Ryan
On 10/27/05, Christian Meesters <mee...@un...> wrote:
> Hi Ryan,
>
> Thanks, but I too run into problems:
> Doing python setup.py build is fine until:
> <snip>
> src/_na_backend_gdk.c:12:25: error: pygtk/pygtk.h: No such file or
> directory
> src/_na_backend_gdk.c: In function 'pixbuf_get_pixels_array':
> src/_na_backend_gdk.c:31: error: 'PyGObject' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:31: error: (Each undeclared identifier is reported
> only once
> src/_na_backend_gdk.c:31: error: for each function it appears in.)
> src/_na_backend_gdk.c:31: error: 'py_pixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:40: warning: implicit declaration of function
> 'GDK_PIXBUF'
> src/_na_backend_gdk.c:46: warning: implicit declaration of function
> 'gdk_pixbuf_get_height'
> src/_na_backend_gdk.c:47: warning: implicit declaration of function
> 'gdk_pixbuf_get_width'
> src/_na_backend_gdk.c:48: warning: implicit declaration of function
> 'gdk_pixbuf_get_has_alpha'
> src/_na_backend_gdk.c:52: warning: implicit declaration of function
> 'gdk_pixbuf_get_pixels'
> src/_na_backend_gdk.c:52: warning: cast to pointer from integer of
> different size
> src/_na_backend_gdk.c:56: warning: implicit declaration of function
> 'gdk_pixbuf_get_rowstride'
> src/_na_backend_gdk.c: In function 'init_na_backend_gdk':
> src/_na_backend_gdk.c:84: warning: implicit declaration of function
> 'init_pygtk'
> error: command 'gcc' failed with exit status 1
>
> Apparently the autodetection fails. Then I disabled all backends (except
> for Agg, WX, WXAgg, which I want to use) and next time I tried setup.py
> build:
>
> WXAgg's accelerator requires `wx-config'.
>
> The `wx-config' executable could not be located in any directory of the
> PATH
> environment variable. If it is in some other location or has some other
> name,
> set the WX_CONFIG environment variable to the full path of the
> executable.
>
> Sounds familiar, doesn't it? ;-)
>
> Now, I tried to read on and in the end I am - frankly - completely
> confused. Since I can't compile (I tried some other tweaks) ... is
> somebody able to compile installation instructions? It appears that the
> part on matplotlib's web page isn't up to date (how to build, the issue
> with the debian's package, possibly other problems yet not seen by me?).
> I would be willing to test everything shown to me and summarize this.
> (Alas, I don't know how to build packages myself yet and I fear I won't
> have the time to do anything quickly.)
>
> Cheers,
> Christian
>
>
>
>
From: Charlie M. <cw...@gm...> - 2005年10月27日 18:27:41
Do you have the package "python-gtk2-dev" installed? You will need
this for the pygtk headers. Wx is a pain at the moment, but if you
are happy with gtk you should have no problems on ubuntu.
On 10/27/05, Christian Meesters <mee...@un...> wrote:
> Hi Ryan,
>
> Thanks, but I too run into problems:
> Doing python setup.py build is fine until:
> <snip>
> src/_na_backend_gdk.c:12:25: error: pygtk/pygtk.h: No such file or
> directory
> src/_na_backend_gdk.c: In function 'pixbuf_get_pixels_array':
> src/_na_backend_gdk.c:31: error: 'PyGObject' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:31: error: (Each undeclared identifier is reported
> only once
> src/_na_backend_gdk.c:31: error: for each function it appears in.)
> src/_na_backend_gdk.c:31: error: 'py_pixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:40: warning: implicit declaration of function
> 'GDK_PIXBUF'
> src/_na_backend_gdk.c:46: warning: implicit declaration of function
> 'gdk_pixbuf_get_height'
> src/_na_backend_gdk.c:47: warning: implicit declaration of function
> 'gdk_pixbuf_get_width'
> src/_na_backend_gdk.c:48: warning: implicit declaration of function
> 'gdk_pixbuf_get_has_alpha'
> src/_na_backend_gdk.c:52: warning: implicit declaration of function
> 'gdk_pixbuf_get_pixels'
> src/_na_backend_gdk.c:52: warning: cast to pointer from integer of
> different size
> src/_na_backend_gdk.c:56: warning: implicit declaration of function
> 'gdk_pixbuf_get_rowstride'
> src/_na_backend_gdk.c: In function 'init_na_backend_gdk':
> src/_na_backend_gdk.c:84: warning: implicit declaration of function
> 'init_pygtk'
> error: command 'gcc' failed with exit status 1
>
> Apparently the autodetection fails. Then I disabled all backends (except
> for Agg, WX, WXAgg, which I want to use) and next time I tried setup.py
> build:
>
> WXAgg's accelerator requires `wx-config'.
>
> The `wx-config' executable could not be located in any directory of the
> PATH
> environment variable. If it is in some other location or has some other
> name,
> set the WX_CONFIG environment variable to the full path of the
> executable.
>
> Sounds familiar, doesn't it? ;-)
>
> Now, I tried to read on and in the end I am - frankly - completely
> confused. Since I can't compile (I tried some other tweaks) ... is
> somebody able to compile installation instructions? It appears that the
> part on matplotlib's web page isn't up to date (how to build, the issue
> with the debian's package, possibly other problems yet not seen by me?).
> I would be willing to test everything shown to me and summarize this.
> (Alas, I don't know how to build packages myself yet and I fear I won't
> have the time to do anything quickly.)
>
> Cheers,
> Christian
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Ryan K. <rya...@gm...> - 2005年10月27日 18:39:02
You will also need the packages tk8.4 and tk8.4-dev for the Tk backend
(your version numbers might be slightly less if you are on Hoary).
Ryan
On 10/27/05, Christian Meesters <mee...@un...> wrote:
> Hi Ryan,
>
> Thanks, but I too run into problems:
> Doing python setup.py build is fine until:
> <snip>
> src/_na_backend_gdk.c:12:25: error: pygtk/pygtk.h: No such file or
> directory
> src/_na_backend_gdk.c: In function 'pixbuf_get_pixels_array':
> src/_na_backend_gdk.c:31: error: 'PyGObject' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:31: error: (Each undeclared identifier is reported
> only once
> src/_na_backend_gdk.c:31: error: for each function it appears in.)
> src/_na_backend_gdk.c:31: error: 'py_pixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in
> this function)
> src/_na_backend_gdk.c:40: warning: implicit declaration of function
> 'GDK_PIXBUF'
> src/_na_backend_gdk.c:46: warning: implicit declaration of function
> 'gdk_pixbuf_get_height'
> src/_na_backend_gdk.c:47: warning: implicit declaration of function
> 'gdk_pixbuf_get_width'
> src/_na_backend_gdk.c:48: warning: implicit declaration of function
> 'gdk_pixbuf_get_has_alpha'
> src/_na_backend_gdk.c:52: warning: implicit declaration of function
> 'gdk_pixbuf_get_pixels'
> src/_na_backend_gdk.c:52: warning: cast to pointer from integer of
> different size
> src/_na_backend_gdk.c:56: warning: implicit declaration of function
> 'gdk_pixbuf_get_rowstride'
> src/_na_backend_gdk.c: In function 'init_na_backend_gdk':
> src/_na_backend_gdk.c:84: warning: implicit declaration of function
> 'init_pygtk'
> error: command 'gcc' failed with exit status 1
>
> Apparently the autodetection fails. Then I disabled all backends (except
> for Agg, WX, WXAgg, which I want to use) and next time I tried setup.py
> build:
>
> WXAgg's accelerator requires `wx-config'.
>
> The `wx-config' executable could not be located in any directory of the
> PATH
> environment variable. If it is in some other location or has some other
> name,
> set the WX_CONFIG environment variable to the full path of the
> executable.
>
> Sounds familiar, doesn't it? ;-)
>
> Now, I tried to read on and in the end I am - frankly - completely
> confused. Since I can't compile (I tried some other tweaks) ... is
> somebody able to compile installation instructions? It appears that the
> part on matplotlib's web page isn't up to date (how to build, the issue
> with the debian's package, possibly other problems yet not seen by me?).
> I would be willing to test everything shown to me and summarize this.
> (Alas, I don't know how to build packages myself yet and I fear I won't
> have the time to do anything quickly.)
>
> Cheers,
> Christian
>
>
>
>
From: Ryan K. <rya...@gm...> - 2005年10月27日 18:40:52
You might get all the development packages you will ever need in one
step if you install gnome-devel - but it is a huge package with a lot
of dependencies that could take a while to install. But it might
keep you from hunting for individual packages needed by mpl backends.
Ryan
On 10/27/05, Ryan Krauss <rya...@gm...> wrote:
> You will also need the packages tk8.4 and tk8.4-dev for the Tk backend
> (your version numbers might be slightly less if you are on Hoary).
>
> Ryan
>
> On 10/27/05, Christian Meesters <mee...@un...> wrote:
> > Hi Ryan,
> >
> > Thanks, but I too run into problems:
> > Doing python setup.py build is fine until:
> > <snip>
> > src/_na_backend_gdk.c:12:25: error: pygtk/pygtk.h: No such file or
> > directory
> > src/_na_backend_gdk.c: In function 'pixbuf_get_pixels_array':
> > src/_na_backend_gdk.c:31: error: 'PyGObject' undeclared (first use in
> > this function)
> > src/_na_backend_gdk.c:31: error: (Each undeclared identifier is reporte=
d
> > only once
> > src/_na_backend_gdk.c:31: error: for each function it appears in.)
> > src/_na_backend_gdk.c:31: error: 'py_pixbuf' undeclared (first use in
> > this function)
> > src/_na_backend_gdk.c:32: error: 'GdkPixbuf' undeclared (first use in
> > this function)
> > src/_na_backend_gdk.c:32: error: 'gdk_pixbuf' undeclared (first use in
> > this function)
> > src/_na_backend_gdk.c:40: warning: implicit declaration of function
> > 'GDK_PIXBUF'
> > src/_na_backend_gdk.c:46: warning: implicit declaration of function
> > 'gdk_pixbuf_get_height'
> > src/_na_backend_gdk.c:47: warning: implicit declaration of function
> > 'gdk_pixbuf_get_width'
> > src/_na_backend_gdk.c:48: warning: implicit declaration of function
> > 'gdk_pixbuf_get_has_alpha'
> > src/_na_backend_gdk.c:52: warning: implicit declaration of function
> > 'gdk_pixbuf_get_pixels'
> > src/_na_backend_gdk.c:52: warning: cast to pointer from integer of
> > different size
> > src/_na_backend_gdk.c:56: warning: implicit declaration of function
> > 'gdk_pixbuf_get_rowstride'
> > src/_na_backend_gdk.c: In function 'init_na_backend_gdk':
> > src/_na_backend_gdk.c:84: warning: implicit declaration of function
> > 'init_pygtk'
> > error: command 'gcc' failed with exit status 1
> >
> > Apparently the autodetection fails. Then I disabled all backends (excep=
t
> > for Agg, WX, WXAgg, which I want to use) and next time I tried setup.py
> > build:
> >
> > WXAgg's accelerator requires `wx-config'.
> >
> > The `wx-config' executable could not be located in any directory of the
> > PATH
> > environment variable. If it is in some other location or has some othe=
r
> > name,
> > set the WX_CONFIG environment variable to the full path of the
> > executable.
> >
> > Sounds familiar, doesn't it? ;-)
> >
> > Now, I tried to read on and in the end I am - frankly - completely
> > confused. Since I can't compile (I tried some other tweaks) ... is
> > somebody able to compile installation instructions? It appears that the
> > part on matplotlib's web page isn't up to date (how to build, the issue
> > with the debian's package, possibly other problems yet not seen by me?)=
.
> > I would be willing to test everything shown to me and summarize this.
> > (Alas, I don't know how to build packages myself yet and I fear I won't
> > have the time to do anything quickly.)
> >
> > Cheers,
> > Christian
> >
> >
> >
> >
>
From: Ken M. <mc...@ii...> - 2005年10月27日 18:55:06
Ryan Krauss wrote:
> The only way around the wx-config error is to download the wxPython
> source tarball and find wxPython.h. Then copy it to
> /usr/include/wx/wxPython/wxPython.h. I will attach mine, but this
> may be a bad idea. You can download from their webpage here:
> http://www.wxpython.org/download.php#sources
> (grab the first one in the list that doesn't say RPM - it is the tar.gz file).
You will also need to install the wxWidgets "-dev" package, since that's where 
the "wx-config" program lives.
Ken
From: Ken M. <mc...@ii...> - 2005年10月27日 18:57:17
Christian Meesters wrote:
> I remembered that there was a recent post on installing matplotlib on
> Ubuntu.
> 
> I tried apt-get update without an error message, but running apt-get
> install python-matplotlib-jdh gives me the following output.
> 
> Reading package lists... Done
> Building dependency tree... Done
> Package python-matplotlib-jdh is not available, but is referred to by
> another package.
> This may mean that the package is missing, has been obsoleted, or
> is only available from another source
> E: Package python-matplotlib-jdh has no installation candidate
Are you using John's CVS packages or the stable-version packages at 
anakonda.net? It sounds like this might just be a matter of tweaking 
`/etc/apt/sources.list' appropriately, assuming we can figure out what the 
problem is.
Ken
From: Christian M. <mee...@un...> - 2005年10月31日 10:53:37
Thank you, Ken, Ryan, and Charlie, for your help.
I'm sorry for the late reply, but I wasn't online over the weekend and
have got no time before.
Anyway, I managed to install matplotlib with your help and got no
serious complaint during compilation (simply neglecting a few warnings).
Importing matplotlib and pylab works. I didn't do any testing so far,
but at least I got to this point and you deserved some feedback before
I'll get to the testing, since this may take until tomorrow.
Cheers
Christian
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /