Skip to content

Anaconda image has incompatible cryptography and openssl modules, breaking conda package manager #486

@broander

Description

@broander

Hi,

Currently conda is broken in the latest image available (mcr.microsoft.com/devcontainers/anaconda:0-3). This issue has been going on for a couple of months, but reporting it now that it's blocking installing new dependencies for a project.

If after creating a fresh container one attempts to install anything with conda, including just updating conda with 'conda update conda', the following error occurs: "AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'"

There is discussion of the issue here: pyca/cryptography#7959 The root cause is due to incompatible versions of cryptography and openssl via pyopenssl coexisting at once in the same environment.

While one can work around the issue by upgrading pyopenssl using pip, this breaks the conda package manager's ability to successfully complete transactions going forward to upgrade or install new packages, transactions either taking very, very long to complete or failing to verify and ending without executing.

Would you please fix this incompatibility in the latest image and going forward so we can use conda to install packages?
A potential solution would be reving the version of anaconda being installed on the source image to one where this incompatibility isn't present from inception. Thanks!

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions