Closed lbdreyer closed 6 years ago
CondaVerificationError: The package for py located at .../miniconda3/pkgs/py-1.5.3-py36_0
appears to be corrupted. The path 'lib/python3.6/site-packages/py/_code/__pycache__/_assertionold.cpython-36.pyc'
specified in the package manifest cannot be found.
Means you have a corrupt package in your package cache. Use conda clean --packages
, and if that doesn't work, just remove it manually.
ClobberError: This transaction has incompatible packages due to a shared path.
packages: defaults::pytest-openfiles-0.2.0-py36_0, defaults::pytest-remotedata-0.2.0-py36_0
path: 'lib/python3.6/site-packages/tests/__init__.py'
Means that conda is alerting you to packages that have overlapping paths, that will very likely become problematic at some later point. The behavior of conda here is configured via the path_conflict
configuration parameter. The parameter can have values of clobber
, warn
, or prevent
. Currently, because we know we have several problems in defaults
channels, the default value is clobber
. So I assume conda config --show-sources
for this user will show that the configuration parameter has been changed to warn
or prevent
.
@kalefranz - Thank you very much for the explanation.
@lbdreyer - Could you please check the suggestions above and whether that solves your issue? We haven't run into it though extensively run tests in conda environments for several packages that depend on astropy.
@lbdreyer, @kalefranz thanks for the report. This is indeed a packaging problem with those repositories. I'll fix it and will try to get a release going in the near future.
This should be fixed for conda
users once https://github.com/conda-forge/pytest-astropy-feedstock/pull/1 is merged.
(note: should be fixed for conda-forge, but I don't think it's propagated to the default channels before we have the new astropy bugfix release out next week)
I tried installing
astropy
with miniconda and noticed there was an issue with installingpytest-remotedata
andpytest-openfiles
.The anaconda recipe for
astropy 3.0.1
setspytest-astropy
as a runtime dependency, andpytest-astropy
setspytest-remotedata
andpytest-openfiles
as runtime dependencies. This means that when I try to installastropy
into a conda environment,pytest-remotedata
andpytest-openfiles
(andpytest-astropy
) also get installed, but there is an issue with installing both into a single environment due to their directory structures.Both
pytest-remotedata
andpytest-openfiles
have a top leveltests
directory which get installed into thelib/python3.6/site-packages/tests
directory of the environment. So whichever package get installed second is trying overwrite whichever gets installed first. and this is causing problems.Is
pytest-astropy
a runtime dependency ofastropy
? Or should the anaconda recipe forastropy
be updated?Below is the output I get when I try to install
astropy
with conda. See theClobberError
at the end for the error relating topytest-remotedata
andpytest-openfiles