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

how to fix import pygimli error libcholmod.so.3 on Mybinder #722

Open
stefanazzz opened this issue May 20, 2024 · 12 comments
Open

how to fix import pygimli error libcholmod.so.3 on Mybinder #722

stefanazzz opened this issue May 20, 2024 · 12 comments

Comments

@stefanazzz
Copy link

stefanazzz commented May 20, 2024

Problem description

When trying to run from my Github repository using MyBinder,
import pygimli gives the following error:

"libcholmod.so.3: cannot open shared object file: No such file or directory (...)"

This can be fixed by adding python=3.8 to the yml environment file (see file below)

Your environment

from environment.yml file on github:

channels:
  - conda-forge
  - gimli
  - defaults
dependencies:
  - python=3.8          <-- add this line to make "import pygimli" work correctly
  - pygimli>=1.1.0

Notes

I suppose that 1.1.0 is compatible only with 3.8 not more recent versions. Note that pygimli >=1.5.0 shows the same problem when compiled with the current (May 2024) default mybinder python 3.11.x. I tried a few combinations but so far only 1.1.0 and 3.8 seem to work on mybinder.

@stefanazzz stefanazzz changed the title how to fix import pygimli error on Mybinder how to fix import pygimli error libcholmod.so.3 on Mybinder May 20, 2024
@halbmy
Copy link
Contributor

halbmy commented May 20, 2024

Can you try using pip install pygimli instead?

@stefanazzz
Copy link
Author

stefanazzz commented May 21, 2024 via email

@ruboerner
Copy link

Is #721 (comment) probably related?

@stefanazzz
Copy link
Author

stefanazzz commented May 24, 2024 via email

@stefanazzz
Copy link
Author

stefanazzz commented May 24, 2024 via email

@prisae
Copy link
Contributor

prisae commented Jul 5, 2024

Just to mention it here too: The same happens on Github Actions: While conda install -c gimli pygimli does work, loading pygimli results in

ImportError: libcholmod.so.3: cannot open shared object file: No such file or directory

@prisae
Copy link
Contributor

prisae commented Jul 5, 2024

I just got hit by this even on my local machine (Ubuntu 22.04.4) with Python 3.11.

@carsten-forty2
Copy link
Contributor

carsten-forty2 commented Jul 5, 2024

For win and linux and py310, py311 you can try pip install pygimli which may help.
However, the pgcore package which comes with the pip installation is not compatible with the current master and dev branch. If you want to use git sources with the pgcore from pip, you need to switch to the wheel branch which should not far away from dev and will be rebased to the new dev after some more tests.

@prisae
Copy link
Contributor

prisae commented Jul 5, 2024

Cool, thanks, that works for now!

@halbmy halbmy closed this as completed Aug 27, 2024
@prisae
Copy link
Contributor

prisae commented Sep 3, 2024

This was marked as completed, but I keep running into this issue also with pyGIMLi 1.5.2, when using conda. When using pip, pyGIMLi installs a s..tload of stuff, basically re-building my entire environment, and subsequently fails of dependency issues.

Nothing urgent, but I think something still to keep an eye on...?

@halbmy halbmy reopened this Sep 3, 2024
@halbmy
Copy link
Contributor

halbmy commented Sep 3, 2024

You're completely right, we should leave this issue open until it is solved properly and not only a hack mixing conda and pip. As the dependency is with pgcore and not pyGIMLi, we will solve it only with pyGIMLi v1.6, i.e. a core update.

@prisae
Copy link
Contributor

prisae commented Sep 4, 2024

This time this suggestion made it possible (thanks @halbmy):

conda create -n pg -c gimli -c conda-forge "pygimli>=1.5.0" python=3.10 suitesparse=5

(the suitesparse=5-bit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants