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

Problem installing packeages after Colab major python update #68

Closed
emilioangelina opened this issue Jan 16, 2025 · 8 comments
Closed

Comments

@emilioangelina
Copy link

As of January 16, 2025, a "No module named" error occurred when attempting to import packages such as RDKit, ParmEd, and others via Conda in a Colab notebook. This issue appears to be linked to a recent update of the Python version used by Google Colab.

@jaimergp
Copy link
Member

Hey, I can take a look. Is there any changelog where they describe the update? Why is it "major"?

@emilioangelina
Copy link
Author

For instance, when I try to install rdkit with:
!mamba install -c conda-forge rdkit

I get:
Your pinning does not match what's currently installed. Please remove the pin and fix your installation
Pin: python=3.11
Currently installed: conda-forge/linux-64::python==3.10.13=hd12c33a_0_cpython

@jaimergp
Copy link
Member

Ah ok, I was scared heh. I think you can work around this by installing a Python 3.11 miniconda. For example:

import condacolab
condacolab.install_from_url("https://repo.anaconda.com/miniconda/Miniconda3-py311_24.11.1-0-Linux-x86_64.sh")

@emilioangelina
Copy link
Author

Thank you! I thought it would be harder to resolve.

@jaimergp
Copy link
Member

I need to cut a new release with updated defaults so you don't have to use the custom URL but for now that will work. Sadly Miniforge passed from building with Python 3.10 to using 3.12 so we will need a custom Py311 build...

@jaimergp
Copy link
Member

Can you give the new RC a try @emilioangelina?

!pip install https://github.com/conda-incubator/condacolab/archive/py311.tar.gz
import condacolab
condacolab.install()

If that works, I'll cut a new release. Thanks!

@emilioangelina
Copy link
Author

It worked! RDKit and other libraries are installed and imported correctly now. Thank you, @jaimergp!

@jaimergp
Copy link
Member

0.1.10 is released!

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

2 participants