conda-forge / pygrib-feedstock

A conda-smithy repository for pygrib.
BSD 3-Clause "New" or "Revised" License
2 stars 8 forks source link

Missing jpeg #14

Closed snowman2 closed 7 years ago

snowman2 commented 7 years ago

I installed pygrib:

$ conda install -c conda-forge pygrib

I tested import:

import pygrib Traceback (most recent call last): File "", line 1, in ImportError: libjpeg.so.9: cannot open shared object file: No such file or directory

I installed jpeg:

$ conda install -c conda-forge jpeg

Now all is well. Please add jpeg to dependencies :)

ocefpaf commented 7 years ago

pygrib depends on jasper, and jasper depends on jpeg. Those are properly specified and pinned as you can see from if you click on the links there.

What happened in your environment was probably a big mix of packages between conda-forge (that uses jpeg 9*) and defaults (that uses jpeg 8*). Unfortunately conda is known to break the pinning, like we have in jasper and install jpeg 8*.

Manually installing it, like what you did, may break other packages pulled from defaults that were compiled against jpeg 8*. The proper solution is to install everything in a environment with the conda-forge on top of defaults to use conda's channel preference feature.

snowman2 commented 7 years ago

OK. Thanks!

ocefpaf commented 7 years ago

BTW, if you type conda list before trying to force install jpeg again you will see the bad jpeg 8* there.