wxmpl incompatibility with matplotlib 0.98.x

View: New views
5 Messages — Rating Filter:   Alert me  

wxmpl incompatibility with matplotlib 0.98.x

by massimo sandal :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

Sorry if bothering you. Here we use a software (that I've written) that
is based on wxmpl and matplotlib, among other things. A collegue of mine
noticed a problem when installing it on Windows, with the following error:

   File "hooke.py", line 21, in <module>
     import wxmpl
   File "C:\Python25\lib\site-packages\wxmpl.py", line 26, in <module>
     from matplotlib.axes import PolarAxes, _process_plot_var_args
ImportError: cannot import name PolarAxes

He was using matplotlib 0.98.3 .Downgrading to 0.91 solved the issue.
I remember the same happened when, some month ago, I tried to install
the same software on OS X using what were basically SVN versions of mpl,
labeled "0.98pre" (see http://macinscience.org/?page_id=6 )

I guess you are probably aware of the problem: are you already working
on it :) ? Is there any workaround?

I'd like to help you patching it, if within my skills, but I'd need some
direction on how the mpl API have been updated.

m.
--
Massimo Sandal , Ph.D.
University of Bologna
Department of Biochemistry "G.Moruzzi"

snail mail:
Via Irnerio 48, 40126 Bologna, Italy

email:
massimo.sandal@...

web:
http://www.biocfarm.unibo.it/samori/people/sandal.html

tel: +39-051-2094388
fax: +39-051-2094387

[massimo_sandal.vcf]

begin:vcard
fn:Massimo Sandal
n:Sandal;Massimo
org:University of Bologna;Department of Biochemistry
adr:;;Via Irnerio 48;Bologna;;40126;Italy
email;internet:massimo.sandal@...
tel;work:+39-051-2094388
tel;fax:+39-051-2094387
x-mozilla-html:FALSE
version:2.1
end:vcard



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: wxmpl incompatibility with matplotlib 0.98.x

by Michael Droettboom-3 :: Rate this Message:

| View Threaded | Show Only this Message

I'm not aware of the problem (but I'm not a regular wxmpl user).

 From 0.91 to 0.98, a major refactoring was done to make it easier to
add new kinds of projections.  So PolarAxes is no longer a special case,
it is just one of many possible non-Cartesian projections.  
Unfortunately to do this, the API had to change in a number of places.  
These are documented in the API_CHANGES file in the "TRANSFORMS
REFACTORING" section.

wxmpl needs to be updated based on those instructions in order to be
compatible with mpl 0.98.  Hopefully that process won't be too
difficult, but it's hard to say without trying.  basemap, a fairly large
mpl toolkit, was able to handle the transition fairly smoothly.

Let me know if I can be of further assistance.

Cheers,
Mike

massimo sandal wrote:

> Hi,
>
> Sorry if bothering you. Here we use a software (that I've written)
> that is based on wxmpl and matplotlib, among other things. A collegue
> of mine noticed a problem when installing it on Windows, with the
> following error:
>
>   File "hooke.py", line 21, in <module>
>     import wxmpl
>   File "C:\Python25\lib\site-packages\wxmpl.py", line 26, in <module>
>     from matplotlib.axes import PolarAxes, _process_plot_var_args
> ImportError: cannot import name PolarAxes
>
> He was using matplotlib 0.98.3 .Downgrading to 0.91 solved the issue.
> I remember the same happened when, some month ago, I tried to install
> the same software on OS X using what were basically SVN versions of
> mpl, labeled "0.98pre" (see http://macinscience.org/?page_id=6 )
>
> I guess you are probably aware of the problem: are you already working
> on it :) ? Is there any workaround?
>
> I'd like to help you patching it, if within my skills, but I'd need
> some direction on how the mpl API have been updated.
>
> m.
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>  


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Re: wxmpl incompatibility with matplotlib 0.98.x

by Fernando Perez :: Rate this Message:

| View Threaded | Show Only this Message

Howdy,

On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <mdroe@...> wrote:

> I'm not aware of the problem (but I'm not a regular wxmpl user).
>
>  From 0.91 to 0.98, a major refactoring was done to make it easier to
> add new kinds of projections.  So PolarAxes is no longer a special case,
> it is just one of many possible non-Cartesian projections.
> Unfortunately to do this, the API had to change in a number of places.
> These are documented in the API_CHANGES file in the "TRANSFORMS
> REFACTORING" section.
>
> wxmpl needs to be updated based on those instructions in order to be
> compatible with mpl 0.98.  Hopefully that process won't be too
> difficult, but it's hard to say without trying.  basemap, a fairly large
> mpl toolkit, was able to handle the transition fairly smoothly.

Are there any news on this front?  Has wxmpl been updated, are there
plans to do so, or is it on hold for now?

Just curious...

Cheers,


f

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Parent Message unknown Re: wxmpl incompatibility with matplotlib 0.98.x

by Ryan Krauss-2 :: Rate this Message:

| View Threaded | Show Only this Message

I had emailed Ken and he said he intended to fix it.  He didn't give me a time line though.

Ryan



On Wed, Aug 27, 2008 at 9:30 PM, Ryan Krauss <ryanlists@...> wrote:
I had emailed Ken and he said he intended to fix it.  He didn't give me a time line though.

Ryan


On Wed, Aug 27, 2008 at 9:04 PM, Fernando Perez <fperez.net@gmail.com> wrote:
Howdy,

On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <mdroe@...> wrote:
> I'm not aware of the problem (but I'm not a regular wxmpl user).
>
>  From 0.91 to 0.98, a major refactoring was done to make it easier to
> add new kinds of projections.  So PolarAxes is no longer a special case,
> it is just one of many possible non-Cartesian projections.
> Unfortunately to do this, the API had to change in a number of places.
> These are documented in the API_CHANGES file in the "TRANSFORMS
> REFACTORING" section.
>
> wxmpl needs to be updated based on those instructions in order to be
> compatible with mpl 0.98.  Hopefully that process won't be too
> difficult, but it's hard to say without trying.  basemap, a fairly large
> mpl toolkit, was able to handle the transition fairly smoothly.

Are there any news on this front?  Has wxmpl been updated, are there
plans to do so, or is it on hold for now?

Just curious...

Cheers,


f

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Parent Message unknown Re: wxmpl incompatibility with matplotlib 0.98.x

by Paulo Meira :: Rate this Message:

| View Threaded | Show Only this Message

Hi,
I made some small changes to wxMpl to make it work with matplotlib
0.98, based on matplotlib's API_CHANGES.

As I'm new to both matplotlib and wxMpl (and Python too), I don't know
if it is working properly, but it doesn't print error messages
anymore. The demos from wxMpl seemed to work OK.

The modified file is attached, I hope it helps.

Paulo Meira
--

> On Wed, Aug 27, 2008 at 9:30 PM, Ryan Krauss <ryanlists@gm...> wrote:
>
> > I had emailed Ken and he said he intended to fix it. He didn't give me a
> > time line though.
> >
> > Ryan
> >
> >
> > On Wed, Aug 27, 2008 at 9:04 PM, Fernando Perez <fperez.net@gm...>wrote:
> >
> >> Howdy,
> >>
> >> On Thu, Aug 7, 2008 at 9:55 AM, Michael Droettboom <mdroe@st...>
> >> wrote:
> >> > I'm not aware of the problem (but I'm not a regular wxmpl user).
> >> >
> >> > From 0.91 to 0.98, a major refactoring was done to make it easier to
> >> > add new kinds of projections. So PolarAxes is no longer a special case,
> >> > it is just one of many possible non-Cartesian projections.
> >> > Unfortunately to do this, the API had to change in a number of places.
> >> > These are documented in the API_CHANGES file in the "TRANSFORMS
> >> > REFACTORING" section.
> >> >
> >> > wxmpl needs to be updated based on those instructions in order to be
> >> > compatible with mpl 0.98. Hopefully that process won't be too
> >> > difficult, but it's hard to say without trying. basemap, a fairly large
> >> > mpl toolkit, was able to handle the transition fairly smoothly.
> >>
> >> Are there any news on this front? Has wxmpl been updated, are there
> >> plans to do so, or is it on hold for now?
> >>
> >> Just curious...
> >>
> >> Cheers,
> >>
> >>
> >> f
> >>
> >> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win great
> >> prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in the
> >> world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Matplotlib-users mailing list
> >> Matplotlib-users@li...
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >>
> >
> >


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

wxmpl.py.gz (19K) Download Attachment