8000 inconsistent environment warning breaks --json · Issue #9737 · conda/conda · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
inconsistent environment warning breaks --json #9737
Closed
@speleo3

Description

@speleo3

Current Behavior

The "environment is inconsistent" warning goes to STDOUT and breaks --json --dry-run output.

Observed with an environment which works perfectly fine and also conda install (without --dry-run) succeeds without issues.

Steps to Reproduce

conda create -y -n test python
conda activate test

# remove a non-essential package
conda uninstall -y --force readline

conda install --json --dry-run requests | json_verify

Output:

lexical error: invalid char in json text.
                                        The environment is inconsisten
                     (right here) ------^
JSON is invalid

Expected Behavior

Valid JSON.

Environment Information

`conda info`

     active environment : test
    active env location : /home/thomas/miniconda3/envs/test
            shell level : 2
       user config file : /home/thomas/.condarc
 populated config files : /home/thomas/.condarc
          conda version : 4.7.12
    conda-build version : 3.18.11
         python version : 3.7.1.final.0
       virtual packages : __cuda=10.2
       base environment : /home/thomas/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
          package cache : /home/thomas/miniconda3/pkgs
                          /home/thomas/.conda/pkgs
       envs directories : /home/thomas/miniconda3/envs
                          /home/thomas/.conda/envs
               platform : linux-64
             user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.1 Linux/5.5.4-arch1-1 arch/rolling glibc/2.31
                UID:GID : 1000:100
             netrc file : /home/thomas/.netrc
           offline mode : False

`conda config --show-sources`

==> /home/thomas/.condarc <==
auto_update_conda: False
ssl_verify: True
default_channels:
  - https://repo.anaconda.com/pkgs/main
anaconda_upload: False

`conda list --show-channel-urls`

# packages in environment at /home/thomas/miniconda3/envs/test:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    defaults
ca-certificates           2020.1.1                      0    defaults
certifi                   2019.11.28               py38_0    defaults
ld_impl_linux-64          2.33.1               h53a641e_7    defaults
libedit                   3.1.20181209         hc058e9b_0    defaults
libffi                    3.2.1                hd88cf55_4    defaults
libgcc-ng                 9.1.0                hdf63c60_0    defaults
libstdcxx-ng              9.1.0                hdf63c60_0    defaults
ncurses                   6.2                  he6710b0_0    defaults
openssl                   1.1.1d               h7b6447c_4    defaults
pip                       20.0.2                   py38_1    defaults
python                    3.8.1                h0371630_1    defaults
setuptools                45.2.0                   py38_0    defaults
sqlite                    3.31.1               h7b6447c_0    defaults
tk                        8.6.8                hbc83047_0    defaults
wheel                     0.34.2                   py38_0    defaults
xz                        5.2.4                h14c3975_4    defaults
zlib                      1.2.11               h7b6447c_3    defaults

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivityplugins::envpertains to conda-envsource::communitycatch-all for issues filed by community memberstype::bugdescribes erroneous operation, use severity::* to classify the type

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0