-
Notifications
You must be signed in to change notification settings - Fork 1.6k
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 fails creation of environment from yaml file #10251
Comments
The upstream developers of cDNA_Cupcake gave their package the same name as an existing PyPI package. Because of how Python packaging works, conda is unable to distinguish between a package you
When you ran This is the expected behavior from conda (and pretty much any other Python package management tool). To fix this, you will need to contact the authors of cDNA_Cupcake to:
|
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
Summary
I created an environment, and then exported it to a YAML file. If I then try to create a new environment from this YAML file, Pip fails. The originally created environment works and can be used.
note: file extension of attached file was changed to .txt as I couldnt upload a .yml file.
step by step
creation of environment as described here: https://github.com/Magdoll/cDNA_Cupcake/wiki/Cupcake:-supporting-scripts-for-Iso-Seq-after-clustering-step#collapse
export PATH="/home/anacondaPy37/bin:$PATH"
conda -V
conda update conda
conda create -n anaCogent python=3.7 anaconda
export PATH="/home/anacondaPy37/bin:$PATH"
conda activate anaCogent
$ source activate anaCogent
(anaCogent)$ git clone https://github.com/Magdoll/cDNA_Cupcake.git
(anaCogent)$ cd cDNA_Cupcake
(anaCogent)$ python setup.py build
(anaCogent$ python setup.py install
exporting environment to YAML file
conda env export --name anaCogent > anaCogentOri.yml
creating a new environment from this YAML file
conda env create --file anaCogentOri.yml
this then results in the following Error
Pip subprocess error:
ERROR: Could not find a version that satisfies the requirement cupcake==12.4.0 (from -r /mnt/SRV018/users/ahhammv1/7test/workflow/condaenv.7bfgnkj5.requireme nts.txt (line 3)) (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4)
ERROR: No matching distribution found for cupcake==12.4.0 (from -r /mnt/SRV018/users/ahhammv1/7test/workflow/condaenv.7bfgnkj5.requirements.txt (line 3))
fa iled
CondaEnvException: Pip failed
Potential causes
Pip tries installing a different package than the one wanted, namely cupcake instead of cDNA_cupcake.
anaCogentOri.yml.txt
The text was updated successfully, but these errors were encountered: