这是indexloc提供的服务,不要输入任何密码
Skip to content

conda has deps on nbformat, not included in miniconda #4796

@ijstokes

Description

@ijstokes

If someone installs miniconda and then attempts to do conda env attach they are going to be disappointed because nbformat is not included in miniconda. I don't think it should be, but then perhaps conda env attach should be prepared to say "sorry, you can't execute this command with just miniconda -- "conda install nbformat" if you like and try again". The conda error page doesn't make it clear what the problem is or what the solution might be.

conda env attach -r ijstokes/tf_digits tensorflow.ipynb                       
Environment None will be attach into tensorflow.ipynb                                    
An unexpected error has occurred.                                                        
Please consider posting the following information to the                                 
conda GitHub issue tracker at:                                                           
                                                                                         
    https://github.com/conda/conda/issues                                                
                                                                                         
                                                                                         
                                                                                         
Current conda install:                                                                   
                                                                                         
               platform : linux-64                                                       
          conda version : 4.2.13                                                         
       conda is private : False                                                          
      conda-env version : 4.2.13                                                         
    conda-build version : not installed                                                  
         python version : 3.5.2.final.0                                                  
       requests version : 2.9.1                                                          
       root environment : /home/demo/miniconda3  (writable)                              
    default environment : /projects/demo/deeplearn/envs/dnn                              
       envs directories : /projects/demo/deeplearn/envs                                  
                          /home/demo/miniconda3/envs                                     
          package cache : /projects/demo/deeplearn/envs/.pkgs                            
                          /home/demo/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 : /projects/demo/deeplearn/.condarc                              
           offline mode : False                                                          
                                                                                         
                                                                                         
                                                                                         
`$ /home/demo/miniconda3/bin/conda-env attach -r ijstokes/tf_digits tensorflow.i         
                                                                                         
                                                                                         
                                                                                         
                                                                                         
    Traceback (most recent call last):                                                   
      File "/home/demo/miniconda3/lib/python3.5/site-packages/conda/exceptions.p         
        return_value = func(*args, **kwargs)                                             
      File "/home/demo/miniconda3/lib/python3.5/site-packages/conda_env/cli/main         
        nb = Notebook(args.notebook)                                                     
      File "/home/demo/miniconda3/lib/python3.5/site-packages/conda_env/utils/no         
        raise NBFormatNotInstalled                                                       
    conda_env.exceptions.NBFormatNotInstalled: Runtime error: nbformat is not in         
            conda install nbformat

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivitypending::discussioncontains some ongoing discussion that needs to be resolved prior to proceedingsource::anacondacreated by members of Anaconda, Inc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions