Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prescribed conda development environment missing shared object files #239

Open
jsbaasi opened this issue Mar 20, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@jsbaasi
Copy link
Contributor

jsbaasi commented Mar 20, 2024

Describe the bug

The satip conda environment.yml file grabs transitive packages that are incorrect versions for pyproj I'm guessing. Below is the last call satip does before an import error occurs.

File "/home/user/anaconda3/envs/satip/lib/python3.12/site-packages/pyproj/network.py", line 10, in
from pyproj._network import ( # noqa: F401 pylint: disable=unused-import

ImportError: xxxxxxxxx: cannot open shared object file: No such file or directory

It occurs for 2 transitive packages laid out below

  1. libtiff - libtiff version 4.6.0 gets installed in the satip environment, which provides libtiff.so.6. Pyproj requires libtiff.so.5 which comes with 4.5.x instead.

  2. libjpeg-turbo version 3.0.0 gets installed in the satip environment, which provides libjpeg.so and libjpeg.so.8 and libjpeg.so.8.3.2. Pyproj requires (actually libtiff requires this) libjpeg.so.9 which comes with not completely sure.

To Reproduce

Setup the satip conda environment and try to download eumetsat data with satip. Will import error.

Expected behavior

No import error occuring

This can be seen in the base conda environment as libtiff.so.5 and libjpeg.so.9 are both present

@jsbaasi jsbaasi added the bug Something isn't working label Mar 20, 2024
@jsbaasi
Copy link
Contributor Author

jsbaasi commented Mar 20, 2024

I fixed this on my machine by just copying the required shared object files from my base conda environment. For fixing the bug with the satip environment, maybe there should be better dependency constraints? or a direct dependency to libjpeg and libtiff?

@jacobbieker
Copy link
Member

Ah, thanks for finding this! Yeah, I guess better dependency constraints is probably my preferred way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants