Open dazza-codes opened 5 years ago
I suppose you're using this: https://anaconda.org/conda-forge/pytest-benchmark? It would appear they pin an older pytest-benchmark release.
I suppose this is the source https://github.com/conda-forge/pytest-benchmark-feedstock?
Hmmm, might be another case of conda vs. pip inconsistencies. Using a pip install after creating/activating a conda env seemed to solve the problem. Close at will.
I created https://github.com/conda-forge/pytest-benchmark-feedstock/issues/6 for the conda-forge package. I think this issue can be closed.
Facing the same error here.
@TejasAvinashShetty pip install the latest or use whatever was suggested above?
Just to add to this, it still seems to be an issue since today I got the exact same error when I installed the same conda-forge pytest packages as OP.
Versions:
I have the list of packages in a plaintext file pytest_reqs.txt
:
pytest
pytest-benchmark
pytest-cov
pytest-datadir
pytest-forked
pytest-mock
pytest-runner
pytest-xdist
Got the error after installing with:
conda install -c conda-forge --file pytest_reqs.txt
Fixed it with:
conda uninstall -y pytest
pip install -r pytest_reqs.txt
Edit: using python version 3.7.3
@TejasAvinashShetty pip install the latest or use whatever was suggested above?
Yes it works
there is a PR in progress https://github.com/conda-forge/pytest-benchmark-feedstock/pull/7
VERSIONS
ERROR