On Friday, September 21, 2012, Michael Rawlins wrote:

>
> After the build, I determined that 'install' was also needed.
>
> > python setup.py install
>
> completed with no errors.  OK, finally built and installed. But now my
> matplotlib script gives this error:
>
> Traceback (most recent call last):
>   File "map_PrcpBias_Northeast.py", line 21, in <module>
>     from netCDF4 import Dataset as NetCDFFile
> ImportError: /usr/local/lib/python2.7/dist-packages/netCDF4.so: undefined
> symbol: nc_inq_var_endian
>
>
> So, checking shared library dependencies:
>
> > ldd /usr/local/lib/python2.7/dist-packages/netCDF4.so
>
>     linux-gate.so.1 =>  (0xb776a000)
>     libnetcdf.so.7 => /usr/local/lib/libnetcdf.so.7 (0xb7604000)
>     libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb75d3000)
>     libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb742d000)
>     libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7401000)
>     /lib/ld-linux.so.2 (0xb776b000)
>
> and
>
> > ldd /usr/local/lib/libnetcdf.so.7
>
>     linux-gate.so.1 =>  (0xb7765000)
>     libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7663000)
>     libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb74be000)
>     /lib/ld-linux.so.2 (0xb7766000)
>
> no libhdf5 there. Can this be fixed?
>
> MR
>
>
>
>
>From what I remember dealing with the netcdf c library, you have to
explicitly set a compile flag to enable hdf5 support. That was a while ago,
though. I'm not sure if things have changed.

Hope this helps.


-- 
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to