Skip to content

CondaPackError: Files managed by conda were found to have been deleted/overwritten in the #200

@Nitinsiwach

Description

@Nitinsiwach

Python : 3.10.1
conda : 4.11.0
conda-pack : 0.6.0
OS : ubuntu 21.10
steps to reproduce:

conda activate base
conda install conda-pack
conda create --name pyspark_monsoon
conda activate pyspark_monsoon
conda install -c conda-forge pyspark
conda install -c conda-forge typer
conda activate base
conda-pack --name pyspark_monsoon -o pyspark_monsoon.tar.gz

As you can see, I have not even touched pip
output:

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

- pyspark 3.2.0:
    lib/python3.1/site-packages/pyspark-3.2.0.dist-info/INSTALLER
    lib/python3.1/site-packages/pyspark-3.2.0.dist-info/METADATA
    lib/python3.1/site-packages/pyspark-3.2.0.dist-info/RECORD
    + 719 others
- pytz 2021.3:
    lib/python3.1/site-packages/pytz-2021.3.dist-info/INSTALLER
    lib/python3.1/site-packages/pytz-2021.3.dist-info/LICENSE.txt
    lib/python3.1/site-packages/pytz-2021.3.dist-info/METADATA
    + 612 others
- colorama 0.4.4:
    lib/python3.1/site-packages/colorama-0.4.4.dist-info/INSTALLER
    lib/python3.1/site-packages/colorama-0.4.4.dist-info/LICENSE.txt
    lib/python3.1/site-packages/colorama-0.4.4.dist-info/METADATA
    + 11 others
- six 1.16.0:
    lib/python3.1/site-packages/six-1.16.0.dist-info/INSTALLER
    lib/python3.1/site-packages/six-1.16.0.dist-info/LICENSE
    lib/python3.1/site-packages/six-1.16.0.dist-info/METADATA
    + 6 others
- typer 0.4.0:
    lib/python3.1/site-packages/typer-0.4.0.dist-info/INSTALLER
    lib/python3.1/site-packages/typer-0.4.0.dist-info/LICENSE
    lib/python3.1/site-packages/typer-0.4.0.dist-info/METADATA
    + 17 others
- python-dateutil 2.8.2:
    lib/python3.1/site-packages/dateutil/__init__.py
    lib/python3.1/site-packages/dateutil/_common.py
    lib/python3.1/site-packages/dateutil/_version.py
    + 25 others
- wheel 0.37.1:
    lib/python3.1/site-packages/wheel-0.37.1-py3.8.egg-info/PKG-INFO
    lib/python3.1/site-packages/wheel-0.37.1-py3.8.egg-info/SOURCES.txt
    lib/python3.1/site-packages/wheel-0.37.1-py3.8.egg-info/dependency_links.txt
    + 20 others
- pip 21.3.1:
    lib/python3.1/site-packages/pip-21.3.1-py3.9.egg-info/PKG-INFO
    lib/python3.1/site-packages/pip-21.3.1-py3.9.egg-info/SOURCES.txt
    lib/python3.1/site-packages/pip-21.3.1-py3.9.egg-info/dependency_links.txt
    + 412 others
- py4j 0.10.9.2:
    lib/python3.1/site-packages/py4j-0.10.9.2.dist-info/INSTALLER
    lib/python3.1/site-packages/py4j-0.10.9.2.dist-info/LICENSE.txt
    lib/python3.1/site-packages/py4j-0.10.9.2.dist-info/METADATA
    + 38 others
- shellingham 1.4.0:
    lib/python3.1/site-packages/shellingham-1.4.0.dist-info/INSTALLER
    lib/python3.1/site-packages/shellingham-1.4.0.dist-info/LICENSE
    lib/python3.1/site-packages/shellingham-1.4.0.dist-info/METADATA
    + 13 others

This is usually due to `pip` uninstalling or clobbering conda managed files,
resulting in an inconsistent environment. Please check your environment for
conda/pip conflicts using `conda list`, and fix the environment by ensuring
only one version of each package is installed (conda preferred).

I can see other similar posts but, they are either suggesting to not include pip packages (which I have not) or, that the OS is causing this (I am on ubuntu 21.10) or, to keep --ignore-missing-files which, I do not think should even be called a solution (How does this pass for a solution? This is the equivalent of try: code; except: print('success'))

Any help is appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions