-
Notifications
You must be signed in to change notification settings - Fork 66
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
install from google colab #2253
Comments
@khouakhi Is it possible for you to use Miniconda 4.7.12?
|
I managed to install cdms2 and cdutil but I could not import the modules !wget https://repo.anaconda.com/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh !conda install -q -y --prefix /usr/local cdms2 cdutil -c conda-forge `The following packages will be downloaded:
The following NEW packages will be INSTALLED: attrs conda-forge/noarch::attrs-19.3.0-py_0 The following packages will be UPDATED: ca-certificates pkgs/main::ca-certificates-2019.10.16~ --> conda-forge::ca-certificates-2020.4.5.2-hecda079_0 Preparing transaction: ...working... done import cdms2 |
I cannot tell why you cannot import cdms2. |
Installed CDAT and 'import cv2' works but import cdms2 ImportError Traceback (most recent call last) 1 frames ImportError: cannot import name 'Cdunif' |
@khouakhi The mixing of these two environments, colab and conda, is not something we support. It can create undesirable behavior. In your colab environment, cdms2 works well when running using the python it was installed with, using it any other way than this is not supported. The following demonstrates
At this time the only recommendation we can make to continue using colab is the following example.
|
@jasonb5 I added numpy as suggested and used cat << EOF > test.py get miniconda!wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh conda install cdms2 with numpy 1.17!conda install -c conda-forge "numpy=1.17" cdms2 import cdms2cat << EOF > test.py |
@khouakhi Looks like you might be missing the ending line with cat << EOF > test.py
import cdms2
EOF |
@khouakhi Please reopen if you still need assistance. |
I tried to install cdms2 in conda from Colab and I get
Executing transaction: ...working... failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::bzip2-1.0.8-h516909a_2'.
NotADirectoryError(20, 'Not a directory')
Attempting to roll back.
Rolling back transaction: ...working... done
details below:
`!wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
!conda install -c conda-forge cdms2`
Solving environment: ...working... done
Package Plan
environment location: /usr/bin
added / updated specs:
- cdms2
- python=3.6
The following NEW packages will be INSTALLED:
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::bzip2-1.0.8-h516909a_2'.
NotADirectoryError(20, 'Not a directory')
Attempting to roll back.
Rolling back transaction: ...working... done
NotADirectoryError(20, 'Not a directory')
The text was updated successfully, but these errors were encountered: