gmalivenko / onnx2keras

Convert ONNX model graph to Keras model format.
MIT License
195 stars 116 forks source link

AttributeError: 'ParsedRequirement' object has no attribute 'req' #63

Closed pranv12 closed 4 years ago

pranv12 commented 4 years ago

I'm trying to install onnx2keras module but while installing I got error. I tried installing using both pip and source directory. Error is always same. Is there any dependency I've to install?

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

gmalivenko commented 4 years ago

Hello @pranv12. The problem is probably caused by new pip version. I will update setup.py soon.

YuanTingHsieh commented 4 years ago

A quick fix before the update of setup.py You can do pip install pip==20.0.2 and then pip install onnx2keras will work

pranv12 commented 4 years ago

Downgrading pip to 20.0.2 worked. Thanks.