Upgrade fails with Conda and Mamba version errors

I am trying to apply an upgrade to a TLJH installation from a year ago, running on Ubuntu 22.04.5.

Here’s the console log from running the bootstrap script:

/opt/tljh/user/lib/python3.10/site-packages/conda_package_streaming/package_streaming.py:19: UserWarning: zstandard could not be imported. Running without .conda support.
warnings.warn(“zstandard could not be imported. Running without .conda support.”)
/opt/tljh/user/lib/python3.10/site-packages/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
_warnings.warn(“Install zstandard Python bindings for .conda support”)
Reinstalling conda==23.1.0, mamba==1.5.0 to ensure a consistent environment
Ran /opt/tljh/user/bin/mamba install --yes --force-reinstall -c conda-forge --prefix /opt/tljh/user conda==23.1.0 mamba==1.5.0 with exit code 1
/opt/tljh/user/lib/python3.10/site-packages/conda_package_streaming/package_streaming.py:19: UserWarning: zstandard could not be imported. Running without .conda support.
warnings.warn(“zstandard could not be imported. Running without .conda support.”)
/opt/tljh/user/lib/python3.10/site-packages/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
_warnings.warn(“Install zstandard Python bindings for .conda support”)
/opt/tljh/user/lib/python3.10/site-packages/conda_package_streaming/package_streaming.py:19: UserWarning: zstandard could not be imported. Running without .conda support.
warnings.warn(“zstandard could not be imported. Running without .conda support.”)
/opt/tljh/user/lib/python3.10/site-packages/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
_warnings.warn(“Install zstandard Python bindings for .conda support”)
conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
conda 23.1.0: overriding channel, version and build from installed packages due to --force-reinstall.
mamba 1.5.0: overriding channel, version and build from installed packages due to --force-reinstall.

Looking for: [‘conda==23.1.0’, ‘mamba==1.5.0’]

Pinned packages:

python 3.10.*

Could not solve for environment specs
The following packages are incompatible
├─ conda 23.1.0 py310hff52083_0 does not exist (perhaps a typo or a missing channel);
└─ mamba 1.5.0 py310h51d5547_0 does not exist (perhaps a typo or a missing channel).

Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/opt/tljh/hub/lib/python3.10/site-packages/tljh/installer.py”, line 560, in 
main()
File “/opt/tljh/hub/lib/python3.10/site-packages/tljh/installer.py”, line 534, in main
ensure_user_environment(args.user_requirements_txt_url)
File “/opt/tljh/hub/lib/python3.10/site-packages/tljh/installer.py”, line 259, in ensure_user_environment
conda.ensure_conda_packages(
File “/opt/tljh/hub/lib/python3.10/site-packages/tljh/conda.py”, line 128, in ensure_conda_packages
utils.run_subprocess(
File “/opt/tljh/hub/lib/python3.10/site-packages/tljh/utils.py”, line 42, in run_subprocess
raise subprocess.CalledProcessError(cmd=cmd, returncode=proc.returncode)
subprocess.CalledProcessError: Command ‘[’/opt/tljh/user/bin/mamba’, ‘install’, ‘–yes’, ‘–force-reinstall’, ‘-c’, ‘conda-forge’, ‘–prefix’, ‘/opt/tljh/user’, ‘conda==23.1.0’, ‘mamba==1.5.0’]’ returned non-zero exit status 1.

https://anaconda.org/ is currently down, perhaps because of the AWS outage? Try again in a few hours.

1 Like

Ah, thanks - hadn’t seen that.