Original posts attached.
Ken McIvor wrote:
David,
I'm not aware of any compatibility problems when using WxMpl with MPL
0.91, but then again I can't remember if I ever tested it thoroughly.
Could you please send me a short script that reproduces the problem,
along with the complete error message it generates? Thanks.
Ken
OK, finally had cause to work on this some more. With Chris Barker's help:
0) Tried unsuccessfully to reproduce the problem in a "minimal" app.
(i.e., quoting Chris: "it's difficult to build a minimal app. which
reproduces the problem");
1) We kluged a fix by manually adding get_xdata and get_ydata methods to
our derived class, but a) this seems like it shouldn't be necessary, and
b) it wasn't necessary before;
2) Chris' hypothesis is that it has something to do w/ the work being
done on matplotlib to add units to data objects (please correct me if
I'm wrong, Chris) but is uncertain of precisely how or why, and wasn't
readily able to pin it down more than that;
3) We're both rather amazed that no one else has yet reported this
problem, suggesting that either a) we don't scan posts to this list
carefully enough :-), or b) there's perhaps something wrong w/ my
installation?
Bottom line: working, but w/ an "unsatisfactory" solution.
DG
--- Begin Message ---
> Hi! I have some code importing MPL and wxmpl; presently, I have
> version 0.90.1 of the former installed and 1.2.8 of the latter. I
> hadn't run this code in a while; when I last did, in the late spring
> sometime, it worked fine. Now, when I do (from the command line), a
> call in it to <class-derived-from-wxmpl.PlotPanel>.Axes.clear()
> results in an error seq. ending in AttributeError:
> VectorLineCollection instance has no attribute 'get_xdata'. One
> "catch": the "old" version still exists as a py2app-ed stand-alone; I
> tried it and sure enough, it still works fine. By searching its Mac
> App file tree, I was able to determine that this old py2app-ed version
> is using version 0.90.0 of MPL; unfortunately, it (appears to be)
> using a compiled version of wxmpl, so I don't know how to determine
> what version of that its using. Did the update of MPL from 0.90.0 to
> 0.90.1 change anything that might result in this error; has there been
> a change in wxmpl which might result in this error? (Between then and
> now, I switched to a new Mac and installed everything from scratch, so
> it's very likely that my present version of wxmpl is different from
> the one I had installed when I created the py2app.) Any other ideas?
> (I'm at a total loss.) Thanks!
>
> DG
> --
> ERD/ORR/NOS/NOAA
> <http://response.restoration.noaa.gov/emergencyresponse/>
Additional info: when I'm in the directory in which wxmpl.pyc resides
inside the py2app bundle, run Python and import wxmpl, I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "wxmpl.pyc", line 18, in <module>
(
File "wx/__init__.pyc", line 45, in <module>
File "wx/_core.pyc", line 4, in <module>
File "wx/_core_.pyc", line 18, in <module>
File "wx/_core_.pyc", line 15, in __load
ImportError:
'/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/wx/_core_.so'
not found
(Note that the application package from which I got this error is the
version of the program that works!)
Following a suggestion, I copied this wxmpl.pyc to a place outside the
application package, ran python, and it imported fine. I checked its
version number and it's 1.2.8, same as what I have installed presently
(wxmpl.__file__ verified that the local version was imported, not my
site-packages version).
I'm at more of a loss than ever...
DG
--
ERD/ORR/NOS/NOAA <http://response.restoration.noaa.gov/emergencyresponse/>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--- End Message ---
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users