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

rapids-conda-colab-template.ipynb fails to install properly #75

Closed
timehaven opened this issue Mar 18, 2023 · 2 comments · Fixed by #76
Closed

rapids-conda-colab-template.ipynb fails to install properly #75

timehaven opened this issue Mar 18, 2023 · 2 comments · Fixed by #76

Comments

@timehaven
Copy link

timehaven commented Mar 18, 2023

The Google Colab pip notebook works fine.

The conda version failed.

I made a copy of the Google Colab conda notebook:

https://colab.research.google.com/drive/1TAAi_szMfWqRfHVfjGSqnGVLr_ztzUM9

All cells up to and including this one ran successfully:

# you can now run the rest of the cells as normal
import condacolab
condacolab.check()

This last cell showed output:

✨🍰✨ Everything looks OK!

The next cell failed, though:

# Installing RAPIDS is now 'python rapidsai-csp-utils/colab/install_rapids.py <release> <packages>'
# The <release> options are 'stable' and 'nightly'.  Leaving it blank or adding any other words will default to stable.
!python rapidsai-csp-utils/colab/install_rapids.py stable
import os
os.environ['NUMBAPRO_NVVM'] = '/usr/local/cuda/nvvm/lib64/libnvvm.so'
os.environ['NUMBAPRO_LIBDEVICE'] = '/usr/local/cuda/nvvm/libdevice/'
os.environ['CONDA_PREFIX'] = '/usr/local'
!pip uninstall cupy -y

The output is:

Found existing installation: cffi 1.15.0
Uninstalling cffi-1.15.0:
  Successfully uninstalled cffi-1.15.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Skipping cryptography as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting cffi==1.15.0
  Using cached cffi-1.15.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (444 kB)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi==1.15.0) (2.21)
Installing collected packages: cffi
Successfully installed cffi-1.15.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing RAPIDS Stable 22.12
Starting the RAPIDS install on Colab.  This will take about 15 minutes.
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... WARNING conda.core.solve:_add_specs(640): pinned spec python=3.9 conflicts with explicit specs.  Overriding pinned spec.
WARNING conda.core.solve:_add_specs(640): pinned spec cudatoolkit=11.8 conflicts with explicit specs.  Overriding pinned spec.
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... WARNING conda.core.solve:_add_specs(640): pinned spec python=3.9 conflicts with explicit specs.  Overriding pinned spec.
WARNING conda.core.solve:_add_specs(640): pinned spec cudatoolkit=11.8 conflicts with explicit specs.  Overriding pinned spec.
failed

SpecsConfigurationConflictError: Requested specs conflict with configured specs.
  requested specs:
    - cudatoolkit=11.2
    - dask-sql
    - gcsfs
    - llvmlite
    - openssl
    - python=3.8
    - rapids=22.12
  pinned specs:
    - python_abi=3.9[build=*cp39*]
Use 'conda config --show-sources' to look for 'pinned_specs' and 'track_features'
configuration parameters.  Pinned specs may also be defined in the file
/usr/local/conda-meta/pinned.


RAPIDS conda installation complete.  Updating Colab's libraries...
WARNING: Skipping cupy as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Just to test, the following cell also failed with ModuleNotFoundError:

import cudf, cuml, cugraph, cuspatial
@1933211129
Copy link

Now I have the same problem. Have you solved it? But the problem didn't appear when I used it in early March.

@jimoreira
Copy link

hi, hitting the same problem.
Don't understand how the issue was closed.
the error is exactly the same.
Colab now with python 3.10'
thanks for your help!

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

Successfully merging a pull request may close this issue.

3 participants