Re: [Matplotlib-users] Any fix for wxAgg on Mac?

2006-11-09 Thread Russell E Owen
At 10:18 AM -0800 2006-11-09, Christopher Barker wrote:
Russell and Charlie,

Are your two binaries any different? Any reason to choose one over 
the other? In particular, which of these are supported:

numpy 1.*
Numeric
numarray

GTK
TK
wx (which version?)

My binary supports:
- numpy 1.0 (the default), Numeric and numarray
- TkAgg using the built in Tcl/Tk or a user-added Tcl/Tk 8.4.x
- WXAgg using wxPython 2.6
   (I just realized this is the default, which is bad because it's not built in)

It does not support GTK or Qt.

Unfortunately it requires the user to:
- Install one or more numeric packages
- Set up a matploblibrc file unless they want to use numpy and WXAgg
so it includes a ReadMe.txt file telling the user what to do.

It would be better if matplotlib just ran out of the box. I'm not 
sure the best way to do this. Some possibilities are:
- Include numpy in the matplotlib package and have the default 
matplotlibrc file use that. One would have to be careful about how to 
handle an existing numpy (if any), and I really don't know how to do 
that. Naive users would probably appreciate matplotlib using its own 
version and ignoring any built in (and possibly incompatible) 
version, but that sounds like a nightmare for more experienced users.

- Run a post-install script that modifies the default matploblibrc 
file by looking for installed numeric packages and picking one as the 
default for numerix. It could warn the user if no compatible numeric 
package was found. This is clearly less friendly than the first 
option, but doesn't bring up the issue of conflicting with a 
user-installed numpy.

- Some combination whereby a post-install script installs numpy 1.0 
if no numpy is found and bitches loudly if a too-old version is found.

Any ideas on this? Charlie: does your version already handle this somehow?


If we use my package then I should submit a new version that has 
TkAgg as its default.

-- Russell

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Any fix for wxAgg on Mac?

2006-11-09 Thread Charlie Moad
On 11/9/06, Russell E Owen [EMAIL PROTECTED] wrote:
 At 10:18 AM -0800 2006-11-09, Christopher Barker wrote:
 Russell and Charlie,
 
 Are your two binaries any different? Any reason to choose one over
 the other? In particular, which of these are supported:
 
 numpy 1.*
 Numeric
 numarray
 
 GTK
 TK
 wx (which version?)

 My binary supports:
 - numpy 1.0 (the default), Numeric and numarray
 - TkAgg using the built in Tcl/Tk or a user-added Tcl/Tk 8.4.x
 - WXAgg using wxPython 2.6
   (I just realized this is the default, which is bad because it's not built 
 in)

 It does not support GTK or Qt.

 Unfortunately it requires the user to:
 - Install one or more numeric packages
 - Set up a matploblibrc file unless they want to use numpy and WXAgg
 so it includes a ReadMe.txt file telling the user what to do.

 It would be better if matplotlib just ran out of the box. I'm not
 sure the best way to do this. Some possibilities are:
 - Include numpy in the matplotlib package and have the default
 matplotlibrc file use that. One would have to be careful about how to
 handle an existing numpy (if any), and I really don't know how to do
 that. Naive users would probably appreciate matplotlib using its own
 version and ignoring any built in (and possibly incompatible)
 version, but that sounds like a nightmare for more experienced users.

 - Run a post-install script that modifies the default matploblibrc
 file by looking for installed numeric packages and picking one as the
 default for numerix. It could warn the user if no compatible numeric
 package was found. This is clearly less friendly than the first
 option, but doesn't bring up the issue of conflicting with a
 user-installed numpy.

 - Some combination whereby a post-install script installs numpy 1.0
 if no numpy is found and bitches loudly if a too-old version is found.

 Any ideas on this? Charlie: does your version already handle this somehow?


 If we use my package then I should submit a new version that has
 TkAgg as its default.

I am guessing our versions are pretty much the same.  All the latest
numerical modules, no gtk, etc.  I don't think we need to worry about
dependencies.  Windows and linux doesn't technically run out of the
box either.  They are required to get the correct deps.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Any fix for wxAgg on Mac?

2006-11-09 Thread Christopher Barker
Russell and Charlie,

Are your two binaries any different? Any reason to choose one over the 
other? In particular, which of these are supported:

numpy 1.*
Numeric
numarray

GTK
TK
wx (which version?)

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/ORR/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Any fix for wxAgg on Mac?

2006-11-09 Thread Christopher Barker
Russell E Owen wrote:
 It turns out my wx-config was in:
 /usr/local/lib/wxPython-unicode-2.7.1.3/lib/wx/config/mac-unicode-debug-2.7
 not a location I'd ever have expected or would want to add to my $PATH 
 (and not easy to find -- I had to use a special file finding utility to 
 find it).
 
 No wonder I was having problems!
 
 Do you know who produced the wxPython installer package?

Robin Dunn builds those himself.

 If so, please 
 tell me or feel free to forward this message (edited as you see fit). I 
 want to suggest they put links to binaries in one of:
 - /usr/local/bin
 - /Library/Frameworks/Python.../bin
 
 I think the former is the right choice if the associated wx C++ 
 libraries (as installed by wxPython) are accessible to C++ users. 

They are really intended to be used specifically by wxPython. Often they 
are slightly different versions. I now when I've used wx for C++, I've 
used different libs.

 Otherwise if it's really a python-private sort of thing then it should 
 probably be the latter.

I think so. But there is a problem there, too. As I mentioned, you can 
have different versions of wxPython installed at once, so which one 
would put it's wx-config there?

Also, /Library/Frameworks/Python.../bin is the default locations for 
binaries on OS-X, set by dist-utils. On other systems, it's set to 
/usr/local, or who knows? In that case, putting wx-config there could 
clash with both C++ wx installations, and wxPythons used for different 
versions of python -- there's just no easy way. At least this way, when 
you pick that wx-config, you KNOW you've got the one you want.

As far as MPL is concerned, we could write a little code that would 
search for the default wxPython, and find wx-config there.

However, the better solution is really to get rid of the compile-time 
dependence on wx -- that's a problem anyway. For instance, I'm not sure 
we should make the pythonmac binary depend on wxPython 2.7 -- that is a 
development version -- 2.6.3 may be a better choice.

If only we all didn't have other things to do...

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/ORR/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Any fix for wxAgg on Mac?

2006-11-09 Thread Christopher Barker
Russell E. Owen wrote:
 I reinstalled wxPython 2.7 from the package at pythonmac.org (to be 
 paranoid). I'm using the Python 2.5 version.

check

 I got wx-config on my path and confirmed it's the right one (see below 
 for details).

check.

 Now when I try to build matplotlib it fails. Ouch.
 
 It starts out with the same warning as last time:
 setup.py:267: DeprecationWarning: The wxPython compatibility package is 
 no longer automatically generated or activly maintained.  Please switch 
 to the wx package as soon as possible.
   import wxPython

This one is easy!

In setup.py, replace:

import wxPython

with

import wx

A few versions ago, the import wxPython form was deprecated -- it is 
now gone in 2.7. IN this case, all it's doing it checking if wxPython is 
installed, so th import wx should be the only change needed.

A quick search revealed that the back-end itself has been switched over 
already.

-Chris

PS: you haven't been sending your notes to the list.

-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/ORR/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Any fix for wxAgg on Mac?

2006-11-09 Thread Christopher Barker
Russell E Owen wrote:
 I should probably be using wxPython 2.6.x. I originally thought wxPython 
 2.7 was the current release but as you pointed out, that was a 
 misconception. Unfortunately, it's the only binary package available for 
 Python 2.5 at pythonmac.org.

There is a binary of wxPython 2.6 for Python2.5 at:

http://www.wxpython.org/download-2.6.3.3.php

Maybe I'll ask Bob to put that up on pythonmac -- the 2.7 one is out of 
date already anyway. Let me know how it works.

-CHB


-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/ORR/HAZMAT (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users