missing libjpeg.so.8 stops import of iris installed from conda forge

688 views
Skip to first unread message

Mike Mineter

unread,
Apr 19, 2017, 6:49:06 AM4/19/17
to Iris

I made a new conda environment with only Iris and the defined dependencies:

conda create -n cesd_iris python=2.7 iris -c conda-forge



and get the following:


python

import iris

....


File "/exports/eddie3_apps_local/apps/community/geos/condas/cesd_clim_1/cesd_iris/lib/python2.7/site-packages/iris/fileformats/um/_fast_load_structured_fields.py", line 31, in <module>

    from netCDF4 import netcdftime

  File "/exports/eddie3_apps_local/apps/community/geos/condas/cesd_clim_1/cesd_iris/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


In the lib directory, libjpeg.so.9 exists.


Any recommended way to resolve this?



Detail:


I did see this warning on doing the conda create:


Fetching package metadata: ......

Solving package specifications: .....................................

Warning: 2 possible package resolutions (only showing differing packages):

        ['iris-1.12.0-py27_2.tar.bz2', 'netcdf4-1.2.4-np112py27_3.tar.bz2'],

        ['iris-1.11.0-py27_0.tar.bz2', 'netcdf4-1.2.7-np112py27_0.tar.bz2'],



conda list 

...

iris                      1.12.0                   py27_2


...

jasper                    1.900.1                       4

..
netcdf4                   1.2.4               np112py27_3

...

Thanks

Mike




Filipe Pires Alvarenga Fernandes

unread,
Apr 19, 2017, 7:46:10 AM4/19/17
to Mike Mineter, Iris
Hi Mike. It seems that you are hitting the "classic" multiple channels issue.

Please take a look at [1] and see if that solves it for you.

-Filipe




**********************************************************
Filipe P. A. Fernandes
Physical Oceanographer

Email: oce...@gmail.com          

http://ocefpaf.github.io/
**********************************************************

--
You received this message because you are subscribed to the Google Groups "Iris" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scitools-iris+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mike Mineter

unread,
Apr 20, 2017, 11:45:52 AM4/20/17
to Iris
Thanks Filipe, yes that fixed it.

A small extra  issue, on our shared cluster, I'll mention in case it helps someone, was that the home space then filled up due to all packages going into  ~/.conda/pkgs.
Once recognised, I removed that directory, and linked it to a space with more quota.
Mike
To unsubscribe from this group and stop receiving emails from it, send an email to scitools-iri...@googlegroups.com.

Filipe Pires Alvarenga Fernandes

unread,
Apr 20, 2017, 11:56:20 AM4/20/17
to Mike Mineter, Iris
Are you using Anaconda or miniconda? I usually go for the latter rather than the former because most of the pre-installed packages from the Anaconda distribution will be substituted by conda-forge's version of them.

If you are already using miniconda then maybe cleaning up the old packages may help too.

$ conda clean --yes --tarballs --lock --index-cache --packages --source-cache

That is a clean all BTW you probably need to clean only the `--packages`.

-F

To unsubscribe from this group and stop receiving emails from it, send an email to scitools-iris+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages