0.87 on HP-UX 11.23/PA with Python 2.4.2

> The throw Py::RuntimeError is coming from

    >> src/ft2font.cpp. There's a > global that holds information for
    >> FreeType libraries: > FT_Library _ft2Library;

Hi Albert, thanks for digging in to this. I think I understand now
the cause of your problem, though the best solution will require a bit
more thought.

I don't think embedding python is the right approach at the moment.
Hopefully we can be a little more clever about linking rather than
embedding ft2font multiple times. Alternatively, we can recode
backend agg to not use the font object directly, but pass around a
pixel buffer of the rendered glyphs.

    > src/_image.cpp is also duplicated and is a problem as
    > well. It'll need a similar fix.

Do you mean _image is bringing in ft2font? It shouldn't be. agg
definitely uses it but image does not. Can you provide a little more
detail here.

JDH

The problem is duplicate function names. An error occurs because
set_bg() is contained in more than one loadable module, and the wrong
one is selected at runtime. examples/image_demo.py won't run because
Python gives an AttributeError in lib/matplotlib/image.py, line 141:
  im.set_bg( *bg)

Also, src/mplutils.cpp is included multiple times but I haven't
encountered any errors because of this yet.

···

On Mon, Feb 27, 2006 at 09:44:51AM -0600, John Hunter wrote:

    > src/_image.cpp is also duplicated and is a problem as
    > well. It'll need a similar fix.

Do you mean _image is bringing in ft2font? It shouldn't be. agg
definitely uses it but image does not. Can you provide a little more
detail here.

--
albert chin (china@...319...)