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

lamindb fails when IPython is not installed #29

Open
rcannood opened this issue Dec 3, 2024 · 2 comments
Open

lamindb fails when IPython is not installed #29

rcannood opened this issue Dec 3, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@rcannood
Copy link

rcannood commented Dec 3, 2024

Report

It turns out IPython might not always be installed, but lamindb expects that it is.

Example:

docker run --rm -it --entrypoint=bash rocker/r2u:24.04

Inside the docker:

apt-get update && apt-get install python3-pip python3-dev
pip install 'lamindb[aws,bionty,wetlab]>=0.77.2' --break-system-packages
lamin connect laminlabs/lamindata
python3 -c 'import lamindb'

Which results in:

→ connected lamindb: laminlabs/lamindata
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.12/dist-packages/lamindb/__init__.py", line 98, in <module>
    from ._view import view
  File "/usr/local/lib/python3.12/dist-packages/lamindb/_view.py", line 8, in <module>
    from IPython.display import HTML, display
ModuleNotFoundError: No module named 'IPython'
@rcannood rcannood added the bug Something isn't working label Dec 3, 2024
@Koncopd
Copy link
Member

Koncopd commented Dec 3, 2024

Thank you, we will fix.

@Koncopd Koncopd self-assigned this Dec 3, 2024
@Koncopd
Copy link
Member

Koncopd commented Dec 3, 2024

Fix is here laminlabs/lamindb#2250

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