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

"conda env update" fails #1420

Closed
alanhdu opened this issue Jul 8, 2015 · 4 comments
Closed

"conda env update" fails #1420

alanhdu opened this issue Jul 8, 2015 · 4 comments
Labels
locked [bot] locked due to inactivity

Comments

@alanhdu
Copy link
Contributor

alanhdu commented Jul 8, 2015

I can't seem to update an environment with conda env update (conda env create works fine, but I don't want to repeatedly delete and recreate an environment if I don't have too).

$ conda env update --file=environment.yml
Fetching package metadata: ......
Solving package specifications: # TODO handle more gracefully

$ conda info
Current conda install:

             platform : linux-64
        conda version : 3.14.1
  conda-build version : not installed
       python version : 3.4.3.final.0
     requests version : 2.7.0
     root environment : /home/alan/anaconda  (writable)
  default environment : /home/alan/anaconda
     envs directories : /home/alan/anaconda/envs
        package cache : /home/alan/anaconda/pkgs
         channel URLs : https://conda.anaconda.org/blaze/linux-64/
                        https://conda.anaconda.org/blaze/noarch/
                        https://repo.continuum.io/pkgs/free/linux-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/linux-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : /home/alan/.condarc
    is foreign system : False

The environment.yml file:

name: grader
dependencies:
- openssl=1.0.1k=1
- pip=7.1.0=py27_0
- py=1.4.30=py27_0
- pytest=2.7.2=py27_0
- python=2.7.10=0
- readline=6.2=2
- setuptools=18.0.1=py27_0
- sqlite=3.8.4.1=1
- system=5.8=2
- tk=8.5.18=0
- zlib=1.2.8=0
@alanhdu
Copy link
Contributor Author

alanhdu commented Jul 8, 2015

Hm... after reinstalling anaconda, I can't seem to replicate this anymore. Not sure what happened here...

Sorry for the noise.

@alanhdu alanhdu closed this as completed Jul 8, 2015
@alanhdu alanhdu changed the title conda env update fails "conda env update" fails Jul 29, 2015
@alanhdu
Copy link
Contributor Author

alanhdu commented Jul 29, 2015

I figured out how to reproduce this behavior. It only happens if you run conda env update for an environment that already matches the environment.yml file:

$ conda create -n test python=2
Fetching package metadata: ....
Solving package specifications: .................
Package plan for installation in environment /home/alan/miniconda3/envs/test:

The following NEW packages will be INSTALLED:

    openssl:    1.0.1k-1     
    pip:        7.1.0-py27_0 
    python:     2.7.10-0     
    readline:   6.2-2        
    setuptools: 18.0.1-py27_0
    sqlite:     3.8.4.1-1    
    system:     5.8-2        
    tk:         8.5.18-0     
    zlib:       1.2.8-0      

Proceed ([y]/n)? y

Linking packages ...
[      COMPLETE      ]|#########################################################################################################################| 100%
#
# To activate this environment, use:
# $ source activate test
#
# To deactivate this environment, use:
# $ source deactivate
#
$ conda env export -n test > environment.yml
$ conda env update -n test -f environment.yml 
Fetching package metadata: ....
Solving package specifications: # TODO handle more gracefully$ 

If I edit environment.yml, then the command works as expected.

My conda info:

Current conda install:

             platform : linux-64
        conda version : 3.15.1
  conda-build version : not installed
       python version : 3.4.3.final.0
     requests version : 2.7.0
     root environment : /home/alan/miniconda3  (writable)
  default environment : /home/alan/miniconda3
     envs directories : /home/alan/miniconda3/envs
        package cache : /home/alan/miniconda3/pkgs
         channel URLs : https://repo.continuum.io/pkgs/free/linux-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/linux-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : /home/alan/.condarc
    is foreign system : False

@alanhdu alanhdu reopened this Jul 29, 2015
@alanhdu
Copy link
Contributor Author

alanhdu commented Jul 29, 2015

Look like this is actually already reported in https://github.com/conda/conda-env/issues/81

@alanhdu alanhdu closed this as completed Jul 29, 2015
@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Nov 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

1 participant