Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with conda 23.5.0 ? #2547

Open
2 tasks done
noamgat opened this issue May 28, 2023 · 8 comments
Open
2 tasks done

Incompatibility with conda 23.5.0 ? #2547

noamgat opened this issue May 28, 2023 · 8 comments

Comments

@noamgat
Copy link

noamgat commented May 28, 2023

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

How did you install Mamba?

conda install mamba

Search tried in issue tracker

conda 23.5 + python 3.11 incompatibility?

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

We use mamba in our CI/CD pipelines.
We start from the continuum anaconda docker image (for other reasons). The installation happens using the line

conda install mamba

Afterwards we run

mamba env create -f environment.yml

And have started getting the following error in runs in the last 2-3 days despite not changing anything (see the logs).
Forcing the conda version to 23.3.1 (previous version released) fixes the issue.
Conda 23.5.0 was released a few days ago as well, raising my suspicion.

mamba info / micromamba info

No response

Logs

Traceback (most recent call last):
  File "/opt/conda/bin/mamba", line 7, in <module>
    from mamba.mamba import main
  File "/opt/conda/lib/python3.10/site-packages/mamba/mamba.py", line 49, in <module>
    import libmambapy as api
  File "/opt/conda/lib/python3.10/site-packages/libmambapy/__init__.py", line 7, in <module>
    raise e
  File "/opt/conda/lib/python3.10/site-packages/libmambapy/__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: libarchive.so.13: cannot open shared object file: No such file or directory
Cleaning up project directory and file based variables

environment.yml

No response

~/.condarc

No response

@jonashaag
Copy link
Collaborator

Starting from Anaconda is not recommended, it sometimes causes problems, see

#1826
#1728
#1724

@itamarst
Copy link

I was able to work around this by installing mamba like so:

conda install --override-channels -c conda-forge mamba

This ensures the libarchive comes from conda-forge.

@itamarst
Copy link

I also had issues with PyPy being installed, so ended up with this:

conda install --override-channels -c conda-forge mamba 'python_abi=*=*cp*'

Perhaps this should be the recommended installation command in the docs.

@jonashaag
Copy link
Collaborator

jonashaag commented Jun 22, 2023

Agreed, that's much better than mixing channels! How likely does it break anything that's shipped with the Anaconda distribution and uses "their" libarchive though?

@itamarst
Copy link

I'm doing this in a Docker image. As long as my packaging tests pass I'm assuming it's fine, but it's not exercising every edge case a user might have... Possibly I should consider switching to micromamba at some point.

For what it's worth my general feeling is that:

  1. Mamba should be installable in default Conda environment; telling people to switch to miniforge means far fewer users.
  2. Therefore, Mamba may wish to switch to vendoring all the things in this situation. This is obviously very much against the Conda packaging model, but it seems reasonable in this situation (much like pip vendors its dependencies).

@jonashaag
Copy link
Collaborator

I think we should adopt your workaround temporarily.

Long term we will probably stop development on Mamba and focus on Micromamba.

@SilentGene
Copy link

I also encountered this and have solved it by installing the libarchive13 lib on my Ubuntu:
$ sudo apt install libarchive13

@jonashaag
Copy link
Collaborator

That might work if you're lucky but it's not recommended since the libarchive versions might be incompatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants