|
From: John H. <jdh...@ac...> - 2006-02-27 16:23:41
|
>>>>> "Albert" == Albert Chin <mat...@ml...> writes:
Albert> The problem is duplicate function names. An error occurs
Albert> because set_bg() is contained in more than one loadable
Albert> module, and the wrong one is selected at
Albert> runtime. examples/image_demo.py won't run because Python
Albert> gives an AttributeError in lib/matplotlib/image.py, line
Albert> 141: im.set_bg( *bg)
I'm confused here. The only extension code that defines set_bg is the
_image module
johnh@jitter:src> grep set_bg *.h
_image.h: Py::Object set_bg(const Py::Tuple& args);
_image.h: static char set_bg__doc__[];
I don't see why you should be having a problem with this. Can you
submit a complete traceback?
Albert> Also, src/mplutils.cpp is included multiple times but I
Albert> haven't encountered any errors because of this yet.
This shouldn't pose a problem as long as there isn't a global
variable, right? My understanding is that the ft2font problem arises
because of the use of the global FT_Library _ft2Library .
JDH
|