SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Ryan K. <rya...@gm...> - 2005年10月18日 20:21:34
I am trying to build mpl on a ubuntu Breezy box and I am getting the messag=
e:
WXAgg's accelerator requires `wx-config'.
What is wx-config and where do I get it? I am trying to build from
the 0.84 tarball.
Thanks,
Ryan
From: Charlie M. <cw...@gm...> - 2005年10月18日 20:49:47
Install libwxgtk2.6-dev
On 10/18/05, Ryan Krauss <rya...@gm...> wrote:
> I am trying to build mpl on a ubuntu Breezy box and I am getting the mess=
age:
> WXAgg's accelerator requires `wx-config'.
> What is wx-config and where do I get it? I am trying to build from
> the 0.84 tarball.
>
> Thanks,
>
> Ryan
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Charlie M. <cw...@gm...> - 2005年10月18日 20:54:08
Still bad news though I think. There is no package containing the
wxPython headers, so even with wx-config you can't compile on ubuntu.=20
There was a bug posted a while ago, but it doesn't look like it made
the release.
http://ubuntuforums.org/showthread.php?t=3D71395&highlight=3DwxPython.h
If anybody knows differently, please share.
- Charlie
On 10/18/05, Charlie Moad <cw...@gm...> wrote:
> Install libwxgtk2.6-dev
>
> On 10/18/05, Ryan Krauss <rya...@gm...> wrote:
> > I am trying to build mpl on a ubuntu Breezy box and I am getting the me=
ssage:
> > WXAgg's accelerator requires `wx-config'.
> > What is wx-config and where do I get it? I am trying to build from
> > the 0.84 tarball.
> >
> > Thanks,
> >
> > Ryan
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads, discussion=
s,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
From: Chris B. <Chr...@no...> - 2005年10月18日 21:02:31
Charlie Moad wrote:
> There was a bug posted a while ago, but it doesn't look like it made
> the release.
> 
> http://ubuntuforums.org/showthread.php?t=71395&highlight=wxPython.h
I don't know differently, but there is a set of rpms for wxPython-devel 
on the wxpython web site. maybe you could use that. It's also in the 
source tarball, of course.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Arnd B. <arn...@we...> - 2005年10月18日 22:37:14
On 2005年10月18日, Charlie Moad wrote:
> Still bad news though I think. There is no package containing the
> wxPython headers, so even with wx-config you can't compile on ubuntu.
> There was a bug posted a while ago, but it doesn't look like it made
> the release.
>
> http://ubuntuforums.org/showthread.php?t=71395&highlight=wxPython.h
>
> If anybody knows differently, please share.
The work-around (for debian sarge) is
 wget
http://ftp.debian.org/debian/pool/main/w/wxwindows2.4/wxwindows2.4_2.4.3.1.tar.gz
 tar xzf wxwindows2.4_2.4.3.1.tar.gz
 su
 mkdir /usr/include/wx/wxPython/
 cp wxwindows2.4-2.4.3.1/wxPython/src/*.h /usr/include/wx/wxPython/
For ubuntu it should work similarly
(you can also replace the wget by a corresponding apt-get command
fetching the source).
HTH, Arnd
From: Chris B. <Chr...@no...> - 2005年10月18日 20:54:30
Ryan Krauss wrote:
> I am trying to build mpl on a ubuntu Breezy box and I am getting the message:
> WXAgg's accelerator requires `wx-config'.
There has been some discussion of this in this group recently, try 
searching the archives.
> What is wx-config and where do I get it?
wx-config is a little program that returns the various include and 
linking directories needed to build something against the wxWidgets 
library, It should be distributed with the wxPython "devel" package. I 
don't know if there is an ubuntu package for that, but I'd look for it.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Chris B. <Chr...@no...> - 2005年10月18日 22:33:15
Ryan Krauss wrote:
> I have installed libwxgtk2.6-dev and the message about wx-config has
> gone away but it now says it needs the wxPython headers. I downloaded
> the source tarball. What headers does it want and where do I put them
> so mpl finds them? (I can't find another recent thread about this).
Maybe it was on the Python-mac list....
This is what I have, on my Fedora core 4 system (wxPython installed from 
the src rpm):
In:
/usr/lib/wxPython-2.6.1.0-gtk2-unicode/include/wx-2.6/wx/wxPython/
printfw.h pyclasses.h pydrawxxx.h pyistream.h pytree.h wxPython.h 
wxPython_int.h
I don't know if you need all of those, but they'll probalby all come 
together anyway.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Ryan K. <rya...@gm...> - 2005年10月18日 23:25:30
Thanks to Arnd and Chris I think I am getting close. I can now
compile without any error messages that I see. But then I run a
script that plots something using WXAgg I get this message that keeps
coming up every few seconds after the script has run:
** (python:8999): WARNING **: IPP request failed with status 1030
Running the same script with the TkAgg backend does not produce this
error. Either backend produces the same nice looking plots.
What do I do next?
Thanks,
Ryan
On 10/18/05, Chris Barker <Chr...@no...> wrote:
> Ryan Krauss wrote:
> > I have installed libwxgtk2.6-dev and the message about wx-config has
> > gone away but it now says it needs the wxPython headers. I downloaded
> > the source tarball. What headers does it want and where do I put them
> > so mpl finds them? (I can't find another recent thread about this).
>
> Maybe it was on the Python-mac list....
>
> This is what I have, on my Fedora core 4 system (wxPython installed from
> the src rpm):
>
> In:
> /usr/lib/wxPython-2.6.1.0-gtk2-unicode/include/wx-2.6/wx/wxPython/
>
> printfw.h pyclasses.h pydrawxxx.h pyistream.h pytree.h wxPython.h
> wxPython_int.h
>
> I don't know if you need all of those, but they'll probalby all come
> together anyway.
>
> -Chris
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chr...@no...
>
From: Ken M. <mc...@ii...> - 2005年10月20日 01:26:51
Charlies, Chris, and Arnd: thanks for your prompt responses to Ryan's 
question! I'll write up a cookbook entry on the topic tomorrow.
I've known about the missing wxPython headers for some time and have 
been corresponding with the Debian package maintainer about it. 
Apparently the headers weren't getting installed in 2.6 due to some 
Extreme Cleverness on the part of wxPython's "setup.py" and in 2.4 
there wasn't even an attempt to install them. Last Thursday I filed 
patches on sourceforge, so hopefully this'll get fixed sometime soon.
Ken
From: Ryan K. <rya...@gm...> - 2005年10月20日 01:55:13
I still haven't gotten any input on the ** (python:8999): WARNING **:
IPP request failed with status 1030 message. Anyone know why the
WXAgg backend is causing this and how to get rid of it.
On 10/19/05, Ken McIvor <mc...@ii...> wrote:
> Charlies, Chris, and Arnd: thanks for your prompt responses to Ryan's
> question! I'll write up a cookbook entry on the topic tomorrow.
>
> I've known about the missing wxPython headers for some time and have
> been corresponding with the Debian package maintainer about it.
> Apparently the headers weren't getting installed in 2.6 due to some
> Extreme Cleverness on the part of wxPython's "setup.py" and in 2.4
> there wasn't even an attempt to install them. Last Thursday I filed
> patches on sourceforge, so hopefully this'll get fixed sometime soon.
>
> Ken
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Ryan K. <rya...@gm...> - 2005年10月20日 14:50:08
Apparently, whatever this problem is, it is caused by calling pylab.figure(=
#)
In [1]: pylab.figure(1)
** (python:8692): WARNING **: IPP request failed with status 1030
Out[1]: <matplotlib.figure.Figure instance at 0xb517f02c>
I can recreate this without any script with just that one command. I
am running matplotlib 0.84, IPython 0.6.16_cvs, and scipy
0.3.3_309.4626 on ubunut Breezy 5.10.
Any thoughts?
Ryan
On 10/19/05, Ryan Krauss <rya...@gm...> wrote:
> I still haven't gotten any input on the ** (python:8999): WARNING **:
> IPP request failed with status 1030 message. Anyone know why the
> WXAgg backend is causing this and how to get rid of it.
> In [1]: pylab.figure(1)
** (python:8692): WARNING **: IPP request failed with status 1030
Out[1]: <matplotlib.figure.Figure instance at 0xb517f02c>
> On 10/19/05, Ken McIvor <mc...@ii...> wrote:
> > Charlies, Chris, and Arnd: thanks for your prompt responses to Ryan's
> > question! I'll write up a cookbook entry on the topic tomorrow.
> >
> > I've known about the missing wxPython headers for some time and have
> > been corresponding with the Debian package maintainer about it.
> > Apparently the headers weren't getting installed in 2.6 due to some
> > Extreme Cleverness on the part of wxPython's "setup.py" and in 2.4
> > there wasn't even an attempt to install them. Last Thursday I filed
> > patches on sourceforge, so hopefully this'll get fixed sometime soon.
> >
> > Ken
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by:
> > Power Architecture Resource Center: Free content, downloads, discussion=
s,
> > and more. http://solutions.newsforge.com/ibmarch.tmpl
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
>
From: Ken M. <mc...@ii...> - 2005年10月20日 15:12:10
On Oct 19, 2005, at 8:55 PM, Ryan Krauss wrote:
> I still haven't gotten any input on the ** (python:8999): WARNING **:
> IPP request failed with status 1030 message. Anyone know why the
> WXAgg backend is causing this and how to get rid of it.
Sorry, I guess I missed your last email. I'll look into it. If the 
script is more complicated than "plot_something(); show()", could you 
please send a copy of it? Thanks.
Ken
From: Ken M. <mc...@ii...> - 2005年10月20日 15:44:11
On Oct 20, 2005, at 10:16 AM, Ryan Krauss wrote:
> It really isn't. I can cause the problem with just the line 
> pylab.figure(1).
I'm on a roll today: when I sent that reply I hadn't seen your latest 
email.
Anyways, I have been unable to reproduce this problem under Debian 
sarge (wxPython 2.4). I don't think I have access to a Ubuntu box, but 
I will check to see if the problem also exists under Debian sid 
(wxPython 2.6).
Ken
From: Ken M. <mc...@ii...> - 2005年10月20日 16:42:03
On Oct 20, 2005, at 11:20 AM, Ryan Krauss wrote:
> In [1]: import matplotlib.backends.backend_wxagg
> In [2]: matplotlib.backends.backend_wxagg._use_accelertor(False)
<snip>
> Apparently I have managed to build mpl with the wxagg accelerator.
> That seems odd because I started this thread because setup.py was
> complaining about not having wx-config.
Apparently I can't spell this morning either. That should be 
"_use_accelerator()". Sorry! :-/
Ken
From: Ryan K. <rya...@gm...> - 2005年10月20日 17:22:15
So, turning off the accelerator with wxPygtk2.6 did not solve this problem:
In [2]: wx.VERSION
Out[2]: (2, 6, 1, 1, 'pre')
In [3]: import matplotlib.backends.backend_wxagg
In [4]: matplotlib.backends.backend_wxagg._use_accelerator(False)
In [5]: pylab.figure(1)
** (python:11782): WARNING **: IPP request failed with status 1030
Out[5]: <matplotlib.figure.Figure instance at 0xb52048ec>
Ryan
On 10/20/05, Ken McIvor <mc...@ii...> wrote:
> On Oct 20, 2005, at 11:48 AM, Ryan Krauss wrote:
> > But when I try and turn off the accelerator I get:
> > In [4]: import matplotlib.backends.backend_wxagg
> >
> > In [5]: matplotlib.backends.backend_wxagg._use_accelertor(False)
>
> I misspelled "accelerator" in my earlier email. This should work:
>
> import matplotlib.backends.backend_wxagg
> matplotlib.backends.backend_wxagg._use_accelerator(False)
>
> > Let me know if I can try anything else to trouble shoot this. I know
> > it is really hard for you if you can't recreate the problem.
>
> I'll try to get a Ubuntu machine up and running today. I've been
> meaning to check it out, so this gives me a good excuse.
>
> Ken
>
>
From: Ken M. <mc...@ii...> - 2005年10月20日 17:12:53
On Oct 20, 2005, at 11:57 AM, Ryan Krauss wrote:
> So, turning off the accelerator with wxPygtk2.6 did not solve this 
> problem
Hmmm... googling around suggests that this error has something to do 
with talking to CUPS. If I had to guess, I'd say that wxWidgets is 
trying to talk to CUPS at startup to initialize the printing subsystem. 
 Could you please email me the output from the following command? It's 
probably going to be too big and verbose to be worth posting to the 
list, so send it to me directly.
$ strace python -c 'import pylab; pylab.figure(1)' > strace.txt 2>&1
Ken
From: Christopher B. <Chr...@no...> - 2005年12月27日 18:17:49
Charlie,
IIRC, you were working on a Cocoa back-end for MPL a while back. How's 
that coming?
If it was someone else, please speak up!
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Charlie M. <cw...@gm...> - 2005年12月28日 02:07:38
 Well, it is there and it works. There is no toolbar, and the
save image button is not implemented. I really haven't had access to
a mac in a while, so there hasn't been much development. I basically
figured out the hard part of how to do the agg buffer to NSImage
bridge. The rest of the perks should be pretty simple. The code is
in backend_cocoaagg.py and the nib files are in the backends folder.
- Charlie
On 12/27/05, Christopher Barker <Chr...@no...> wrote:
> Charlie,
>
> IIRC, you were working on a Cocoa back-end for MPL a while back. How's
> that coming?
>
> If it was someone else, please speak up!
>
> -Chris
>
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chr...@no...
>
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 によって変換されたページ (->オリジナル) /