question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conda-pack: CondaPackError: files managed by conda were

See original GitHub issue

So, I have a python project where all my tests run but then I do:

conda install -y conda-pack

which succeeds and when I run:

conda-pack

I get a lengthy complaint:

`Collecting packages… CondaPackError: Files managed by conda were found to have been deleted/overwritten in the following packages:

  • conda-pack 0.6.0: lib/python3.1/site-packages/conda_pack-0.6.0.dist-info/INSTALLER lib/python3.1/site-packages/conda_pack-0.6.0.dist-info/LICENSE.txt lib/python3.1/site-packages/conda_pack-0.6.0.dist-info/METADATA
    • 19 others
  • types-requests 2.26.0: lib/python3.1/site-packages/requests-stubs/METADATA.toml lib/python3.1/site-packages/requests-stubs/init.pyi lib/python3.1/site-packages/requests-stubs/adapters.pyi
    • 41 others
  • jsonschema 4.2.1: lib/python3.1/site-packages/jsonschema-4.2.1.dist-info/COPYING lib/python3.1/site-packages/jsonschema-4.2.1.dist-info/INSTALLER lib/python3.1/site-packages/jsonschema-4.2.1.dist-info/METADATA
    • 39 others
  • types-setuptools 57.4.2: lib/python3.1/site-packages/pkg_resources-stubs/METADATA.toml lib/python3.1/site-packages/pkg_resources-stubs/init.pyi lib/python3.1/site-packages/pkg_resources-stubs/py31compat.pyi
    • 56 others <snip>`

I see no issues in conda list and I can still run my tests. I see no issues with my environment.

Any Ideas?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
waveskimmercommented, Nov 17, 2021

Wow! I think I finally nailed it. The lib/python3.1 was actually symlinked to a lib/python3.10, so the whole python3.1 was a red herring. If I added python=3.9 to my environment, it works as designed. Almost too much for a conda newbie, but I did learn a lot on the journey.

I still think there is something wrong above.

0reactions
orsk-moscowcommented, Feb 15, 2022

Hello!

I still have the same bug. Simple check with @dbast’s cmd: conda create --name testenv -c conda-forge conda-pack fastapi -y && conda activate testenv && conda-pack got me the error:

CondaPackError: Files managed by conda were found to have been deleted/overwritten in the following packages: …

conda-pack --version conda-pack 0.7.0

UPD simple modification cmd to conda create -y -n testenv -c conda-forge conda-pack fastapi python=3.9 && conda activate testenv && conda-pack helped, but looks like fix doesn’t handle the bug

Read more comments on GitHub >

github_iconTop Results From Across the Web

Files managed by conda were found to have been deleted ...
Hi, I have seen some of conda-pack updates regarding this issues and I have upgraded my conda-pack to the latest version but the...
Read more >
Conda-pack: CondaPackError: files managed by conda were
CondaPackError: Files managed by conda were found to have been deleted/overwritten in the following packages: - conda-pack 0.6.0: ...
Read more >
conda-pack 0.7.0 documentation - GitHub Pages
conda-pack is a command line tool for creating archives of conda environments that can be installed on other systems and locations.
Read more >
How to fix conda-pack error - Nine
How to fix conda-pack error ... CondaPackError : Files managed by conda were found to have been deleted/overwritten
Read more >
conda-pack - PyPI
conda-pack is a command line tool for creating relocatable conda environments. This is useful for deploying code in a consistent environment, potentially in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found