DRL / blobtools

Modular command-line solution for visualisation, quality control and taxonomic partitioning of genome datasets
GNU General Public License v3.0
193 stars 44 forks source link

fix ParsedRequirement object has no attribute 'req' #112

Closed tombradford closed 1 year ago

tombradford commented 3 years ago

fallback to use ParsedRequirement.requirement if the setup.py fails with an attribute error.

tested with:

how to replicate:

git clone https://github.com/DRL/blobtools
cd blobtools
python setup.py install --user

error:

Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    reqs = [str(ir.req) for ir in install_reqs]
  File "setup.py", line 18, in <listcomp>
    reqs = [str(ir.req) for ir in install_reqs]
AttributeError: 'ParsedRequirement' object has no attribute 'req'

supporting docs: https://stackoverflow.com/questions/62114945/attributeerror-parsedrequirement-object-has-no-attribute-req

BioLaoXu commented 5 months ago

Downgrading pip to 20.0.2 worked