Skip to content

Instantly share code, notes, and snippets.

@kanishkanarch
Created May 14, 2024 10:20
Show Gist options
  • Save kanishkanarch/a9819813239831e7905038848d47b7a9 to your computer and use it in GitHub Desktop.
Save kanishkanarch/a9819813239831e7905038848d47b7a9 to your computer and use it in GitHub Desktop.
Conda env create error
Error while loading conda entry point: conda-content-trust (OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.)
Channels:
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/opt/miniconda3/lib/python3.12/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/cli/main.py", line 83, in main_subshell
exit_code = do_call(args, parser)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/cli/conda_argparse.py", line 199, in do_call
result = getattr(module, func_name)(args, parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/notices/core.py", line 131, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/cli/main_install.py", line 140, in execute
return install(args, parser, "install")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/cli/install.py", line 372, in install
unlink_link_transaction = solver.solve_for_transaction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/core/solve.py", line 161, in solve_for_transaction
context.plugin_manager.invoke_post_solves(
File "/opt/miniconda3/lib/python3.12/site-packages/conda/plugins/manager.py", line 383, in invoke_post_solves
for hook in self.get_hook_results("post_solves"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/plugins/manager.py", line 212, in get_hook_results
plugins = [item for items in hook() for item in items]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/miniconda3/lib/python3.12/site-packages/conda/plugins/post_solves/signature_verification.py", line 9, in conda_post_solves
from ...trust.signature_verification import signature_verification
File "/opt/miniconda3/lib/python3.12/site-packages/conda/trust/signature_verification.py", line 15, in <module>
from conda_content_trust.authentication import verify_delegation, verify_root
File "/opt/miniconda3/lib/python3.12/site-packages/conda_content_trust/authentication.py", line 17, in <module>
import cryptography.exceptions
File "/opt/miniconda3/lib/python3.12/site-packages/cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.
`$ /opt/miniconda3/bin/conda install cryptography`
environment variables:
CIO_TEST=<not set>
CONDA_EXE=/opt/miniconda3/bin/conda
CONDA_PYTHON_EXE=/opt/miniconda3/bin/python
CONDA_ROOT=/opt/miniconda3
CONDA_SHLVL=0
CUDA_PATH=/opt/cuda
CURL_CA_BUNDLE=<not set>
LD_PRELOAD=<not set>
PATH=/opt/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/
cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/bi
n/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session3
active environment : None
shell level : 0
user config file : /home/kanishk/.condarc
populated config files : /home/kanishk/.condarc
conda version : 24.3.0
conda-build version : not installed
python version : 3.12.2.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=24.3.0=0
__cuda=12.4=0
__glibc=2.39=0
__linux=6.8.9=0
__unix=0=0
base environment : /opt/miniconda3 (read only)
conda av data dir : /opt/miniconda3/etc/conda
conda av metadata url : None
channel URLs : 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
package cache : /opt/miniconda3/pkgs
/home/kanishk/.conda/pkgs
envs directories : /home/kanishk/.conda/envs
/opt/miniconda3/envs
platform : linux-64
user-agent : conda/24.3.0 requests/2.31.0 CPython/3.12.2 Linux/6.8.9-arch1-2 arch/rolling glibc/2.39 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/.
UID:GID : 1000:1000
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install <package>
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install <package>
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]: y
Upload successful.
Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running
$ conda config --set report_errors true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment