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

conda-lock emits spurious errors from libmamba warnings #770

Closed
2 tasks done
ctcjab opened this issue Feb 11, 2025 · 1 comment · Fixed by #772
Closed
2 tasks done

conda-lock emits spurious errors from libmamba warnings #770

ctcjab opened this issue Feb 11, 2025 · 1 comment · Fixed by #772

Comments

@ctcjab
Copy link

ctcjab commented Feb 11, 2025

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

We have been observing conda-lock install emitting ERROR logs like the following:

ERROR:root:warning  libmamba [foo-1.2.3-py310h99e81ca_0] The following files were already present in the environment:
ERROR:root:    - lib/python3.10/site-packages/ctc/__init__.py
ERROR:root:    - lib/python3.10/site-packages/ctc/__pycache__/__init__.cpython-310.pyc
ERROR:root:    - lib/python3.10/site-packages/ctc/foo/__init__.py
ERROR:root:    - lib/python3.10/site-packages/ctc/foo/__pycache__/__init__.cpython-310.pyc

The conda-lock install invocation succeeds and appears to be working as expected, so these error logs seem spurious. conda-lock misinterpreting libmamba warnings as errors?

We have alerting hooked up when our automated conda-lock install invocations either fail or emit error logs, so spurious error logs cause whoever is on call to get paged for false alarms until we come up with an automated way to ignore just the implicated output.

Additional Context

❯ cat /etc/issue.net
Ubuntu 24.04.1 LTS

❯ python3 --version
Python 3.12.8

❯ conda --version
conda 25.1.1

❯ mamba --version
2.0.5

❯ conda-lock --version
/uv/conda-lock/lib/python3.12/site-packages/clikit/utils/string.py:81: SyntaxWarning: invalid escape sequence '\s'
  words = re.split("\s+", string)
/uv/conda-lock/lib/python3.12/site-packages/clikit/api/args/format/command_option.py:47: SyntaxWarning: invalid escape sequence '\-'
  if not re.match("^[a-zA-Z0-9\-]+$", alias):
conda-lock, version 2.5.7
@maresb
Copy link
Contributor

maresb commented Feb 12, 2025

Proposed fix in #772

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

Successfully merging a pull request may close this issue.

2 participants