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

Invalid argument when running pre/post link script #368

Closed
lordi opened this issue Sep 4, 2023 · 3 comments
Closed

Invalid argument when running pre/post link script #368

lordi opened this issue Sep 4, 2023 · 3 comments

Comments

@lordi
Copy link

lordi commented Sep 4, 2023

Hi,

micromamba-docker runs into this error, while micromamba without docker is able to install the package. I've seen the "Invalid argument" also occur with pip installs in micromamba-docker. I wasn't able to find more infomation with --log-level debug or strace -f.

Any hints?

Error:

libmamba response code: -1 error message: Invalid argument
critical libmamba failed to execute pre/post link script for pyopengl

Dockerfile:

FROM mambaorg/micromamba:1.5.0-focal
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yml /tmp/env.yaml
RUN micromamba install -y -n base --file /tmp/env.yaml && \
    micromamba clean --all --yes

env.yml:

channels:
  - conda-forge
  - defaults
dependencies:
  - pyopengl=3.1.6=pyhd8ed1ab_1
@lordi
Copy link
Author

lordi commented Sep 4, 2023

Even simpler way to reproduce:

FROM mambaorg/micromamba:1.5.0
RUN micromamba install -y -n base -c conda-forge pyopengl=3.1.6=pyhd8ed1ab_1

@lordi
Copy link
Author

lordi commented Sep 5, 2023

I was able to work around this with:

docker build --ulimit nofile=262144:262144 ...

Feel free to close this when you think this is not related to micromamba-docker

@wholtz
Copy link
Member

wholtz commented Sep 5, 2023

There may be some hope for improving how libmamba (micromamba) reports errors when running out of file handles. But if the file handle is being requested in a pre/post link script, then there probably isn't much that can be done outside of the pre/post scripts.

I am going to close this as it is a dup: mamba-org/mamba#2501

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

2 participants