netCDF4 import error with libjepg.so.8

1 view
Skip to first unread message

nelson....@gmail.com

unread,
Jun 21, 2017, 2:42:51 PM6/21/17
to Anaconda - Public
Hello,

I recently installed Anaconda2 on my adviser's linux servers, as well as the netCDF4 library. However, when trying to import netCDF4, I get the following:

[knelson12@polar ~]$ python
Python 2.7.13 |Anaconda custom (64-bit)| (default, Dec 20 2016, 23:09:15)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import netCDF4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/knelson12/anaconda2/lib/python2.7/site-packages/netCDF4/__init__.py", line 3, in <module>
    from ._netCDF4 import *
ImportError: libjpeg.so.8: cannot open shared object file: No such file or directory
>>>

I've seen a lot about updating the LD_LIBRARY_PATH, but haven't been able to figure out what to put in my startup file. Additionally, it doesn't appear as though I have the libjpeg.so.8, as per the following:

[knelson12@polar lib]$ pwd
/home/knelson12/anaconda2/lib
[knelson12@polar lib]$ ls libjpeg*
libjpeg.a  libjpeg.la  libjpeg.so  libjpeg.so.9  libjpeg.so.9.2.0
[knelson12@polar lib]$

Is this a version issue? Thanks for any help!

Kevin

Nehal J Wani

unread,
Jun 25, 2017, 11:29:49 PM6/25/17
to anac...@continuum.io, nelson....@gmail.com
Hello Kevin,

This has been fixed in the latest build of libnetcdf. Type: conda install libnetcdf=4.4.1=1


Cheers!

Nehal J Wani

--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+unsubscribe@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/anaconda/.

Reply all
Reply to author
Forward
0 new messages