conda-incubator / condacolab

Install Conda and friends on Google Colab, easily
MIT License
341 stars 49 forks source link

Suddenly unable to install rdkit due to pinning issue #43

Closed ashermullokandov closed 1 year ago

ashermullokandov commented 1 year ago

Earlier today I was able to install rdkit in google colab using condacolab, !mamba install -c conda-forge rdkit

Now I get the following:

Your pinning does not match what's currently installed. Please remove the pin and fix your installation Pin: python=3.8 Currently installed: conda-forge/linux-64::python==3.7.12=hb7a2778_100_cpython

Any idea what the issue could be??

Thanks

AldyXC commented 1 year ago

I think this is happening because google updated colab's python version to 3.8 Idk when the author will update for it

allanleal commented 1 year ago

I can also confirm this. Colab now uses Python 3.8.15

image

and condacolab seems to expect Python 3.7, so when installing some packages from conda-forge, pin errors occur like reported above.

allanleal commented 1 year ago

I managed to get it working by using miniconda for Python 3.8:

!pip install -q condacolab
import condacolab
condacolab.install_from_url("https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh")

Then, installing a conda-forge package by doing:

!conda config --add channels conda-forge
!conda install reaktoro -y
jaimergp commented 1 year ago

I am rebuilding the default installers now and will ship a new release this week or the next one. For now, @allanleal's workaround should work!

jaimergp commented 1 year ago

Hello, I am preparing a 0.1.5 release now, but I'd like some additional testing.

Can you try with the following version from the 0.1.x branch? It should fix the Python 3.8 problem:

!pip install -q https://github.com/conda-incubator/condacolab/archive/0.1.x.tar.gz
csteele2 commented 1 year ago

The 0.1.x release seems to work for me using to manage the trickier packages in colab such as eccodes, cartopy, contextily, pygrib, numpy, xesmf, and all dependencies (~122).

cmspeed commented 1 year ago

I ran into a related issue due to the updated Python 3.8 installation on Colab. The condacolab 0.1.x release seems to fix the issue in my case as well. Thanks!

jaimergp commented 1 year ago

Nice, I'll cut the release now.

jaimergp commented 1 year ago

Done! https://pypi.org/project/condacolab/0.1.5/