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

[TRACKING] Conda-lock / poetry version inconsistency causes solve failures in some cases #851

Open
kcpevey opened this issue Jul 15, 2024 · 2 comments
Labels
area: dependencies 📦 Issues related to conda-store dependencies

Comments

@kcpevey
Copy link
Contributor

kcpevey commented Jul 15, 2024

Describe the bug

This environment solves locally, but fails on Nebari:

channels:
  - conda-forge
dependencies:
  - python=3.9
  - pip
  - pip:
      - ragna[all] @ git+https://github.com/Quansight/ragna@one-server
      - panel @
        git+https://github.com/holoviz/panel@7377c9e99bef0d32cbc65e94e908e365211f4421
      - bokeh-fastapi @ git+https://github.com/bokeh/bokeh-fastapi@main
  - ipykernel

The root issue here is conda-lock needs to update its poetry dependency.

This issue is to track that progress and update conda-lock whenever the upstream issue is resolved.

Expected behavior

We expect environments that build locally to also build on nebari.

How to Reproduce the problem?

See environment above.

Output

Traceback:

INFO:root:Collecting panel@ git+https://github.com/holoviz/panel@7377c9e99bef0d32cbc65e94e908e365211f4421 (from -r /tmp/tmpuaxz2b9x (line 121))
INFO:root:  Cloning https://github.com/holoviz/panel (to revision 7377c9e99bef0d32cbc65e94e908e365211f4421) to /tmp/pip-install-b3hh2nws/panel_6478e9058dd04a69a17627733b1ae9ea
INFO:root:  Resolved https://github.com/holoviz/panel to commit 7377c9e99bef0d32cbc65e94e908e365211f4421
INFO:root:  Installing build dependencies: started
INFO:root:  Installing build dependencies: finished with status 'done'
INFO:root:  Getting requirements to build wheel: started
INFO:root:  Getting requirements to build wheel: finished with status 'done'
INFO:root:  Preparing metadata (pyproject.toml): started
INFO:root:  Preparing metadata (pyproject.toml): finished with status 'error'
INFO:root:
Traceback (most recent call last):
  File "/opt/conda/envs/conda-store-server/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/envs/conda-store-server/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/conda_lock/__main__.py", line 4, in <module>
    main()
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1497, in click_install
    install(
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 1551, in install
    install_func(file=lockfile)
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/conda_lock/conda_lock.py", line 240, in do_conda_install
    _conda(["run"], ["pip", "install", "--no-deps", "-r", str(requirements_path)])
  File "/opt/conda/envs/conda-store-server/lib/python3.10/site-packages/conda_lock/invoke_conda.py", line 143, in _invoke_conda
    raise subprocess.CalledProcessError(
conda_lock._vendor.poetry.utils._compat.CalledProcessError: Command '['/opt/conda/condabin/mamba', 'run', '--prefix', '/home/conda/[email protected]/9f2935ac-1718179838-776-ragna-dev', 'pip', 'install', '--no-deps', '-r', '/tmp/tmpuaxz2b9x']' returned non-zero exit status 1.

Versions and dependencies used.

No response

Anything else?

No response

@kcpevey kcpevey added the type: bug 🐛 Something isn't working label Jul 15, 2024
@kcpevey
Copy link
Contributor Author

kcpevey commented Jul 15, 2024

This issue may be resolved depending on the decisions made in #845

@kcpevey kcpevey changed the title [BUG] - Conda-lock / poetry version inconsistency causes solve failures in some cases [BUG] - [TRACKING] Conda-lock / poetry version inconsistency causes solve failures in some cases Jul 23, 2024
@kcpevey
Copy link
Contributor Author

kcpevey commented Sep 9, 2024

conda-lock's version of poetry has been bumped (not yet released, I assume it will be in the release AFTER 2.5.7) - conda/conda-lock#637

@trallard trallard changed the title [BUG] - [TRACKING] Conda-lock / poetry version inconsistency causes solve failures in some cases [TRACKING] Conda-lock / poetry version inconsistency causes solve failures in some cases Sep 10, 2024
@trallard trallard added area: dependencies 📦 Issues related to conda-store dependencies and removed type: bug 🐛 Something isn't working labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dependencies 📦 Issues related to conda-store dependencies
Projects
Status: New 🚦
Development

No branches or pull requests

2 participants