Hi, I've just started having problems with more re...
# ask-metaflow
r
Hi, I've just started having problems with more recent conda versions - looks like CONDA_JSON=True isn't working any more
$ CONDA_JSON=True conda info -a
active environment : None
shell level : 0
user config file : /root/.condarc
populated config files : /root/conda/.condarc
/root/.condarc
conda version : 23.7.2
conda-build version : not installed
python version : 3.9.16.final.0
virtual packages : __archspec=1=x86_64
__glibc=2.31=0
__linux=4.4.0=0
__unix=0=0
base environment : /root/conda  (writable)
conda av data dir : /root/conda/etc/conda
conda av metadata url : None
channel URLs : <https://conda.anaconda.org/conda-forge/linux-64>
<https://conda.anaconda.org/conda-forge/noarch>
package cache : /root/conda/pkgs
/root/.conda/pkgs
envs directories : /root/conda/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/23.7.2 requests/2.28.2 CPython/3.9.16 Linux/4.4.0-1052-aws debian/11 glibc/2.31
UID:GID : 0:0
netrc file : None
offline mode : False
vs (partial) CONDA_JSON=True conda info
{
"GID": 1000,
"UID": 1000,
"active_prefix": null,
"active_prefix_name": null,
"av_data_dir": "/home/i35085/mambaforge/etc/conda",
"av_metadata_url_base": null,
"channels": [
"<https://conda.anaconda.org/conda-forge/linux-64>",
"<https://conda.anaconda.org/conda-forge/noarch>",
"<https://repo.anaconda.com/pkgs/main/linux-64>",
"<https://repo.anaconda.com/pkgs/main/noarch>",
"<https://repo.anaconda.com/pkgs/r/linux-64>",
"<https://repo.anaconda.com/pkgs/r/noarch>"
],
"conda_build_version": "not installed",
"conda_env_version": "23.3.1",
"conda_location": "/home/i35085/mambaforge/lib/python3.10/site-packages/conda",
"conda_prefix": "/home/i35085/mambaforge",
"conda_shlvl": 0,
"conda_version": "23.3.1",
"config_files": [
"/home/i35085/mambaforge/.condarc",
"/home/i35085/.condarc"
],
"default_prefix": "/home/i35085/mambaforge",
"env_vars": {
"CIO_TEST": "<not set>",
"CONDA_EXE": "/home/i35085/mambaforge/bin/conda",
"CONDA_JSON": "True",
"CONDA_PYTHON_EXE": "/home/i35085/mambaforge/bin/python",
"CONDA_ROOT": "/home/i35085/mambaforge",
"CONDA_SHLVL": "0",
"CURL_CA_BUNDLE": "<not set>",
"LD_PRELOAD": "<not set>",
"REQUESTS_CA_BUNDLE": "<not set>",
"SSL_CERT_FILE": "<not set>",
"WINDOWPATH": "2"
},
"virtual_pkgs": [
[
"__archspec",
"1",
"x86_64"
],
[
"__glibc",
"2.31",
"0"
],
[
"__linux",
"5.15.0",
"0"
],
[
"__unix",
"0",
"0"
]
]
}
1
d
curiously it still works for mamba
r
On reflection https://github.com/conda/conda/issues/12987 is a better place to log a bug as it's conda rather than miniforge There's obviously something a little amiss as
conda build
no longer works either (
conda-build
is OK though) I'm making life difficult for myself by having custom conda packages installed from s3 which, on low effort attempt, didn't work with mamba Anyway posting here in case it helps anyone out
File "venv/lib/python3.9/site-packages/metaflow/plugins/conda/conda.py", line 43, in __init__
if LooseVersion(self._info()["conda_version"]) < LooseVersion("4.6.0"):
File "venv/lib/python3.9/site-packages/metaflow/plugins/conda/conda.py", line 111, in _info
return json.loads(self._call_conda(["info"]))
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
👀 1
fyi - it's going to be fixed soon - conda arg parser has been broken Apparently
--json
still works instead of the env var