qiime2 / q2-diversity

BSD 3-Clause "New" or "Revised" License
4 stars 45 forks source link

Pip 22.0.4 pip install -e . fails #326

Closed Oddant1 closed 1 year ago

Oddant1 commented 2 years ago

Bug Description When attempting to run pip install -e . on q2-diversity with pip 22.0.4, I get an error.

Steps to reproduce the behavior

  1. Use pip 22.0.4 (it's in our latest dev environment)
  2. Run pip install -e . in q2-diversity
  3. See error

Expected behavior Should actually install

Screenshots image

Computation Environment

Comments

  1. This is known to pip, and it looks like they have fixed whatever the problem is for their next release
  2. If you need a workaround right now, downgrading to 21.3.1 via the command python -m pip install pip==21.3.1 worked
  3. Might affect other repos as well. I was able to pip install -e . the framework just fine, didn't try any other repos
  4. This should be closed once pip release their fix

References

  1. https://github.com/pypa/pip/issues/11025
  2. https://stackoverflow.com/questions/71410741/pip-uninstall-gdal-gives-attributeerror-pathmetadata-object-has-no-attribute
thermokarst commented 2 years ago

Thanks! I ran into this the other day while developing q2cli - hopefully the pip patch makes it out soon.