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

Having trouble installing Orion with conda #1111

Open
lebrice opened this issue Aug 7, 2023 · 0 comments
Open

Having trouble installing Orion with conda #1111

lebrice opened this issue Aug 7, 2023 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@lebrice
Copy link
Collaborator

lebrice commented Aug 7, 2023

Describe the bug
Getting some weird conflict issues when trying to install Orion using conda.

Here's the script I'm using:

#!/bin/bash
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=1
#SBATCH --mem=16G
#SBATCH --time=00:30:00
#SBATCH --partition=main

# NOTE: Run this either with `sbatch make_env.sh` or within an interactive job with `salloc`:
# salloc --gres=gpu:1 --cpus-per-task=1 --mem=16G --time=00:30:00

# Exit on error
set -e

module --quiet purge
module load anaconda/3
module load cuda/11.7

ENV_PATH="$SCRATCH/conda/pytorch_orion"

# Create the environment:
conda create --yes --prefix $ENV_PATH python=3.9 pytorch torchvision torchaudio pytorch-cuda=11.7 --channel pytorch --channel nvidia
# Install as many packages as possible with Conda:
conda install --yes --prefix $ENV_PATH tqdm rich --channel conda-forge
conda install --yes --prefix $ENV_PATH orion --channel epistimio
# Activate the environment:
conda activate $ENV_PATH
# Install the rest of the dependencies with pip:
# pip install rich
conda env export --no-builds --from-history --file environment.yaml

Here is the output I'm getting:

$ conda install -c epistimio orion
Collecting package metadata (current_repodata.json): done
Solving environment: | 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/linux-64::libstdcxx-ng==11.2.0=h1234567_1
  - defaults/linux-64::libgcc-ng==11.2.0=h1234567_1
  - defaults/linux-64::bzip2==1.0.8=h7b6447c_0
  - defaults/linux-64::giflib==5.2.1=h5eee18b_3
  - defaults/linux-64::gmp==6.2.1=h295c915_3
  - defaults/linux-64::jpeg==9e=h5eee18b_1
  - defaults/linux-64::lame==3.100=h7b6447c_0
  - defaults/linux-64::lerc==3.0=h295c915_0
  - defaults/linux-64::libdeflate==1.17=h5eee18b_0
  - defaults/linux-64::libffi==3.4.4=h6a678d5_0
  - defaults/linux-64::libiconv==1.16=h7f8727e_2
  - defaults/linux-64::libtasn1==4.19.0=h5eee18b_0
  - defaults/linux-64::libunistring==0.9.10=h27cfd23_0
  - defaults/linux-64::libwebp-base==1.2.4=h5eee18b_1
  - defaults/linux-64::lz4-c==1.9.4=h6a678d5_0
  - defaults/linux-64::ncurses==6.4=h6a678d5_0
  - defaults/linux-64::openh264==2.1.1=h4ff587b_0
  - defaults/linux-64::openssl==3.0.10=h7f8727e_0
  - defaults/linux-64::tbb==2021.8.0=hdb19cb5_0
  - defaults/linux-64::xz==5.4.2=h5eee18b_0
  - defaults/linux-64::zlib==1.2.13=h5eee18b_0
  - defaults/linux-64::intel-openmp==2023.1.0=hdb19cb5_46305
  - defaults/linux-64::libidn2==2.3.4=h5eee18b_0
  - defaults/linux-64::libpng==1.6.39=h5eee18b_0
  - defaults/linux-64::mpfr==4.0.2=hb69a4c5_1
  - defaults/linux-64::nettle==3.7.3=hbbd107a_1
  - defaults/linux-64::readline==8.2=h5eee18b_0
  - defaults/linux-64::tk==8.6.12=h1ccaba5_0
  - defaults/linux-64::zstd==1.5.5=hc292b87_0
  - defaults/linux-64::freetype==2.12.1=h4a9f257_0
  - defaults/linux-64::gnutls==3.6.15=he1e5248_0
  - defaults/linux-64::libtiff==4.5.0=h6a678d5_2
  - defaults/linux-64::mkl==2023.1.0=h6d00ec8_46342
  - defaults/linux-64::mpc==1.1.0=h10f8cd9_1
  - defaults/linux-64::sqlite==3.41.2=h5eee18b_0
  - pytorch/linux-64::ffmpeg==4.3=hf484d3e_0
  - defaults/linux-64::lcms2==2.12=h3be6417_0
  - defaults/linux-64::libwebp==1.2.4=h11a3e52_1
  - defaults/linux-64::python==3.9.17=h955ad1f_0
  - defaults/linux-64::certifi==2023.7.22=py39h06a4308_0
  - defaults/noarch::charset-normalizer==2.0.4=pyhd3eb1b0_0
  - defaults/linux-64::filelock==3.9.0=py39h06a4308_0
  - defaults/linux-64::gmpy2==2.1.2=py39heeb90bb_0
  - defaults/linux-64::idna==3.4=py39h06a4308_0
  - defaults/linux-64::markupsafe==2.1.1=py39h7f8727e_0
  - defaults/linux-64::mkl-service==2.4.0=py39h5eee18b_1
  - defaults/linux-64::mpmath==1.3.0=py39h06a4308_0
  - defaults/linux-64::networkx==3.1=py39h06a4308_0
  - defaults/linux-64::pillow==9.4.0=py39h6a678d5_0
  - defaults/noarch::pycparser==2.21=pyhd3eb1b0_0
  - defaults/linux-64::pysocks==1.7.1=py39h06a4308_0
  - defaults/linux-64::setuptools==68.0.0=py39h06a4308_0
  - defaults/linux-64::typing_extensions==4.7.1=py39h06a4308_0
  - defaults/linux-64::wheel==0.38.4=py39h06a4308_0
  - defaults/linux-64::cffi==1.15.1=py39h5eee18b_3
  - defaults/linux-64::jinja2==3.1.2=py39h06a4308_0
  - defaults/linux-64::numpy-base==1.25.2=py39hb5e798b_0
  - defaults/linux-64::pip==23.2.1=py39h06a4308_0
  - defaults/linux-64::sympy==1.11.1=py39h06a4308_0
  - defaults/linux-64::brotlipy==0.7.0=py39h27cfd23_1003
  - defaults/linux-64::cryptography==41.0.2=py39h22a60cf_0
  - defaults/linux-64::pyopenssl==23.2.0=py39h06a4308_0
  - defaults/linux-64::urllib3==1.26.16=py39h06a4308_0
  - defaults/linux-64::requests==2.31.0=py39h06a4308_0
  - defaults/linux-64::mkl_fft==1.3.6=py39h417a72b_1
  - defaults/linux-64::mkl_random==1.2.2=py39h417a72b_1
  - defaults/linux-64::numpy==1.25.2=py39h5f9d8c6_0
  - pytorch/linux-64::pytorch==2.0.1=py3.9_cuda11.7_cudnn8.5.0_0
  - pytorch/linux-64::torchaudio==2.0.2=py39_cu117
  - pytorch/linux-64::torchtriton==2.0.0=py39
  - pytorch/linux-64::torchvision==0.15.2=py39_cu117
  - conda-forge/noarch::colorama==0.4.6=pyhd8ed1ab_0
  - conda-forge/noarch::mdurl==0.1.0=pyhd8ed1ab_0
  - conda-forge/noarch::pygments==2.16.1=pyhd8ed1ab_0
  - conda-forge/noarch::markdown-it-py==3.0.0=pyhd8ed1ab_0
  - conda-forge/noarch::tqdm==4.65.0=pyhd8ed1ab_1
  - conda-forge/noarch::rich==13.5.1=pyhd8ed1ab_0
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \ 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                     

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package __glibc conflicts for:
@/linux-64::__glibc==2.27=0
@|@/linux-64::__glibc==2.27=0

Environment (please complete the following information):

  • OS: Ubuntu (Mila cluster)
  • Python version: 3.9
  • Oríon version: ??
  • Database: None
@lebrice lebrice added the bug Indicates an unexpected problem or unintended behavior label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant