Re: [Matplotlib-users] wxPython-2.8 problems

2007-05-21 Thread Jochen Küpper

On 21.05.2007, at 19:55, Christopher Barker wrote:


Please don't cross-post quite so much!


My apologies for make so much fuzz about this!
(But is a posting to two mailing lists really posted too wide?)


there are some issues with building MPL against wxPython, but it looks
like you've got wxPython problems anyway -- so you need to resolve  
those

first. The macports or wxPython lists are your best bet for that.


There were actually problems with the MacPorts python-2.4 port, which  
re resolved by now. The details are given here:

  http://trac.macports.org/projects/macports/changeset/25391



wxPython was built against a particular version of wxWidgets -- I
suspect you've got more than one version of wxWidgets on there,


Well, no.
Maybe MacPorts updated wxPython before wxWidgets, but in principle  
that should not (and normally does not) happen either.


Or just go back and re-install wxPython, making sure you follow all  
the

steps correctly -- how did you did that in the first place?


MacPorts does it for me;)


PS: this will probably be easier if you use the macpython version of
python/wxpython/MPL -- do you need macports for a reason?


Yes, it gives me all the Unix tools I need from a single place and in  
a very clean way, including dependency tracking and clean uninstalls  
or upgrades...


Anyway, thank you very much for your suggestions.

A big thank you to everybody who has contributed to matplotlib and  
wxWidgets/wxPython for great products!


Greetings,
Jochen
--
Einigkeit und Recht und Freiheithttp://www.Jochen- 
Kuepper.de

Liberté, Égalité, FraternitéGnuPG key: CC1B0B4D
Sex, drugs and rock-n-roll




PGP.sig
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython-2.8 problems

2007-05-21 Thread Christopher Barker
First:

Please don't cross-post quite so much!

Second:

there are some issues with building MPL against wxPython, but it looks 
like you've got wxPython problems anyway -- so you need to resolve those 
first. The macports or wxPython lists are your best bet for that.

> For wxPython: I get the same error when trying to import wxpython or wx 
> directly in a fresh python:

> UserWarning: wxPython/wxWidgets release number mismatch
>   warnings.warn("wxPython/wxWidgets release number mismatch")

wxPython was built against a particular version of wxWidgets -- I 
suspect you've got more than one version of wxWidgets on there, and it's 
finding the wrong one. I don't use macports, so I'm not sure how it 
should be set up, but I'd look for files starting with "lib_wx", and see 
what versions you find.

Or just go back and re-install wxPython, making sure you follow all the 
steps correctly -- how did you did that in the first place?

-Chris

PS: this will probably be easier if you use the macpython version of 
python/wxpython/MPL -- do you need macports for a reason?




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-23 Thread Ken McIvor
On Jan 23, 2007, at 2:40 PM, Christopher Barker wrote:
> Ken McIvor wrote:
>> On Jan 23, 2007, at 1:08 PM, Christopher Barker wrote:
>>>
>>> I think it will work with older versions, but I haven't tested  
>>> it. How
>>> far back do we need to go? I think 2.6.3 ( the last "stable"  
>>> release )
>>> should do it.
>>
>> The current Debian stable (e.g. Sarge) has wxWindows 2.4.3.1.
>
> Really? Darn, 2.4 is very old for wxPython.

Yep!  You have no idea how happy I'll be when Etch comes out...

> Do a lot of folks only use the official packages?

I can't give you a confident yes, but I would imagine so.  I'm using  
them on deployed systems, so it's worth it to me to ensure  
compatibility.

Ken

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-23 Thread Christopher Barker
Ken McIvor wrote:
> On Jan 23, 2007, at 1:08 PM, Christopher Barker wrote:
>> I think it will work with older versions, but I haven't tested it. How
>> far back do we need to go? I think 2.6.3 ( the last "stable" release )
>> should do it.
> 
> The current Debian stable (e.g. Sarge) has wxWindows 2.4.3.1.

Really? Darn, 2.4 is very old for wxPython.

Do a lot of folks only use the official packages?

> I'm planning to make time for this, and a slew of other wx backend  
> stuff, in early February.

Great! thanks.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-23 Thread Ken McIvor
On Jan 23, 2007, at 1:08 PM, Christopher Barker wrote:
> John Hunter wrote:
>>
>> Hey Chris, thanks for this info.  Do we expect this modified code to
>> also work for older versions of wx, or is this 2.8 specific.
>
> I think it will work with older versions, but I haven't tested it. How
> far back do we need to go? I think 2.6.3 ( the last "stable" release )
> should do it.

The current Debian stable (e.g. Sarge) has wxWindows 2.4.3.1.

>> Noone officially.  Ken and Charlie both have commit privileges and
>> have worked on wx,
>
> Ken has said he's going to try to take a look soon, but we're all  
> busy!

I'm planning to make time for this, and a slew of other wx backend  
stuff, in early February.

Ken

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-23 Thread Christopher Barker
John Hunter wrote:
> Christopher> OLD: wxBitmap *bitmap = new wxBitmap(image); NEW
> Christopher> wxBitmap *bitmap = new wxBitmap(*image);
> 
> Hey Chris, thanks for this info.  Do we expect this modified code to
> also work for older versions of wx, or is this 2.8 specific.

I think it will work with older versions, but I haven't tested it. How 
far back do we need to go? I think 2.6.3 ( the last "stable" release ) 
should do it.

Aside from this, that's relevant if I ever find the time to work on 
other parts of the wx backends.

I'll try to test.

> Noone officially.  Ken and Charlie both have commit privileges and
> have worked on wx,

Ken has said he's going to try to take a look soon, but we're all busy!

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-23 Thread John Hunter
> "Christopher" == Christopher Barker <[EMAIL PROTECTED]> writes:


Christopher> OLD: wxBitmap *bitmap = new wxBitmap(image); NEW
Christopher> wxBitmap *bitmap = new wxBitmap(*image);

Hey Chris, thanks for this info.  Do we expect this modified code to
also work for older versions of wx, or is this 2.8 specific.


Christopher> Is anyone maintaining the wx back-end now?

Noone officially.  Ken and Charlie both have commit privileges and
have worked on wx, but noone has volunteered to be the designated goto
person.

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-22 Thread Christopher Barker
Ken McIvor wrote:
> On Jan 21, 2007, at 11:04 AM, Allan Noriel Estrella wrote:
>> does matplotlib already support wxPython 2.8?
> 
> I have not had the opportunity to test it with 2.8.  However, I am  
> given to understand that it works.  The one caveat is that you cannot  
> presently compile the WXAgg accelerator with 2.8.

I've tested it with 2.8 on OS-X, and it can be compiled with an almost 
trivial fix.

There is an odd bug with the standard pylab toolbar: the icons on the 
buttons disappear after they have been clicked once, though the buttons 
do still work.

What platform do you want it on? Are you set up to compile it yourself?

NOTE: wxPython2.8 has added some features for more directly creating 
bitmaps from data. It would be great if someone used those in the 
back-end -- if it works well, we might be able to get rid of the 
accelerated back end altogether. You can search this list for more info 
-- look for posts by me and Ken McIvor.


Here's a bit more detail about the current state of affairs (this was 
recently posted on matplotlib-devel:

Russell Owen just built an installer for MPL on OS_X for Python2.5,
wxPython2.8.

To do it, he needed to patch

_wxagg.cpp, at line 238 as follows:

OLD:
wxBitmap *bitmap = new wxBitmap(image);
NEW
wxBitmap *bitmap = new wxBitmap(*image);

Thanks to a hint from Robin Dunn.

It now seems to work OK, except that when you use pylab.show() and then
click on the toolbar buttons to zoom, etc, the buttons no longer display

Also, it doesn't work with Numeric 24.2 either -- I think that's a known
issue, but I can't find a note about it at the moment.

Is anyone maintaining the wx back-end now?

Is MPL working with wxPython 2.8 on other platforms?

If anyone wants to try this binary out, it's temporarily at:




  >>> matplotlib.__version__
'0.87.7'
  >>> wx.__version__
'2.8.0.1'
  >>> numpy.__version__
'1.0.1'
  >>> Numeric.__version__
'24.2'


-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R(206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115   (206) 526-6317   main reception

[EMAIL PROTECTED]

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wxPython 2.8

2007-01-21 Thread Ken McIvor
On Jan 21, 2007, at 11:04 AM, Allan Noriel Estrella wrote:
>
> does matplotlib already support wxPython 2.8?

I have not had the opportunity to test it with 2.8.  However, I am  
given to understand that it works.  The one caveat is that you cannot  
presently compile the WXAgg accelerator with 2.8.  Everything will  
still work without, but animation is slower.

Ken

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users