I've had problems like this using a git-source matplotlib and macports. 
This usually happens after libpng is upgraded.

Turns out a 'python setup.py install ...' in matplotlib will not solve 
things until you manually delete the contents of the matplotlib build/ 
directory. After which new go at setup.py install will link to the new 
libpng library. 'make clean' will not do this for you (which is probably 
an oversight in the matplotlib Makefile). Don't know if this will help 
for linux.

M

On 4/5/13 1:37 AM, Fernando Perez wrote:
> Well, I'm using the system libpng, which is what puzzles me: there
> should be no need for me to modify my LD_..., and I haven't done so in
> the past.  I'll have to dig into the build tomorrow to figure out
> exactly what's going on there...
>
> Will report back.
>
>
> On Thu, Apr 4, 2013 at 9:24 PM, Damon McDougall
> <damon.mcdoug...@gmail.com <mailto:damon.mcdoug...@gmail.com>> wrote:
>
>
>
>
>     On Thu, Apr 4, 2013 at 10:51 PM, Fernando Perez
>     <fperez....@gmail.com <mailto:fperez....@gmail.com>> wrote:
>
>         Thanks, Damon, for this info.
>
>         Based on this, I've tested now on another, different system with
>         the same version of linux and can't reproduce it either.  Very
>         odd, but it looks like something is amiss on my end, so let me
>         investigate further before anyone burns further cycles on the issue.
>
>         Cheers,
>
>         f
>
>
>         On Thu, Apr 4, 2013 at 8:06 PM, Damon McDougall
>         <damon.mcdoug...@gmail.com <mailto:damon.mcdoug...@gmail.com>>
>         wrote:
>
>             On Thu, Apr 4, 2013 at 6:41 PM, Fernando Perez
>             <fperez....@gmail.com <mailto:fperez....@gmail.com>> wrote:
>
>                 Hi folks,
>
>                 I'm getting the following error from a clean build of
>                 master on an
>                 ubuntu 12.10 machine:
>
>                 longs[junk]> python -c 'import matplotlib._png'
>                 Traceback (most recent call last):
>                    File "<string>", line 1, in <module>
>                 ImportError:
>                 
> /home/fperez/usr/opt/lib/python2.7/site-packages/matplotlib-1.3.x-py2.7-linux-x86_64.egg/matplotlib/_png.so:
>                 undefined symbol: png_create_read_struct
>
>
>                 I hadn't seen anything like this recently, nor can I
>                 find similar
>                 reports, so I'm wondering if anyone knows what's going
>                 on, or if it's
>                 an error on my side.  I can try to bisect it but I
>                 figured I'd ask
>                 first in case it's obvious to someone else...
>
>                 Cheers,
>
>                 f
>
>
>             Hi Fernando,
>
>             I can't recreate this on OS X with the current git master
>             branch, which is at 11e7ed.
>
>             Best wishes,
>             Damon
>
>             --
>             Damon McDougall
>             http://www.damon-is-a-geek.com
>             Institute for Computational Engineering Sciences
>             201 E. 24th St.
>             Stop C0200
>             The University of Texas at Austin
>             Austin, TX 78712-1229
>
>
>
>     Any time, Fernando.
>
>     Out of curiosity, is the png_create_read_struct a symbol from
>     libpng?  If so, try adding wherever your libpng lives to your
>     LD_LIBRARY_PATH and see what happens.
>
>     Best wishes,
>     Damon
>
>     --
>     Damon McDougall
>     http://www.damon-is-a-geek.com
>     Institute for Computational Engineering Sciences
>     201 E. 24th St.
>     Stop C0200
>     The University of Texas at Austin
>     Austin, TX 78712-1229
>
>
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
>
>
>
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>


------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to