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

ModuleNotFoundError: No module named 'ripser' #171

Closed
jonyscathe opened this issue Jul 12, 2024 · 4 comments · Fixed by #172
Closed

ModuleNotFoundError: No module named 'ripser' #171

jonyscathe opened this issue Jul 12, 2024 · 4 comments · Fixed by #172
Assignees
Labels
bug dependencies Pull requests that update a dependency file

Comments

@jonyscathe
Copy link

Installing ripser==0.6.9 in either a python:3.12.4-slim docker container with poetry or installing with pip in Ubuntu (also Python 3.12.4) I get a ModuleNotFoundError when I try and run import ripser or any from ripser import ripser or similar imports.

In my poetry environment I can see the ripser-0.6.9.dist-info, but not ripser itself.

'pyRipser.cpython-312-x86_64-linux-gnu.so' is also in the site-packages folder so I can run import pyRipser but that only gets me doRipsFiltrationDM and doRipsFiltrationDMSparse.

I don't think I'm doing anything wrong here. Ripser 0.6.8 works fine in the same environment.

@catanzaromj catanzaromj added bug dependencies Pull requests that update a dependency file labels Jul 12, 2024
@catanzaromj catanzaromj self-assigned this Jul 12, 2024
@catanzaromj
Copy link
Contributor

Thanks for raising this issue. Indeed, the github action for uploading to PyPI was skipped. Sorry about that.

@catanzaromj
Copy link
Contributor

Actually, it's a bit more complicated than I initially thought. The issue is (as you say) the ripser module not being included with the wheels. I think I put incomplete syntax for specifying ripser in the updated pyproject.toml file. I will fix this soon. In the meantime, please use 0.6.8. Sorry again.

@jonyscathe
Copy link
Author

All good - updating to a new style of packaging is never as straight forward as it should be in Python.

@catanzaromj catanzaromj linked a pull request Jul 12, 2024 that will close this issue
@catanzaromj
Copy link
Contributor

@jonyscathe I released v0.6.10 which I hope fixes the problem. Let us know if you have any more issues. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants