monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
63 stars 25 forks source link

remove deprecated werkzeug.cached_property #349

Open kshefchek opened 4 years ago

kshefchek commented 4 years ago

When booting biolink it exits at start-up with the exception:

  File "/opt/biolink-api/biolink/app.py", line 13, in <module>
    from biolink.api.restplus import api
  File "/opt/biolink-api/biolink/api/restplus.py", line 4, in <module>
    from flask_restplus import Api
  File "/opt/biolink-api/venv/lib/python3.6/site-packages/flask_restplus/__init__.py", line 4, in <module>
    from . import fields, reqparse, apidoc, inputs, cors
  File "/opt/biolink-api/venv/lib/python3.6/site-packages/flask_restplus/fields.py", line 17, in <module>
    from werkzeug import cached_property
ImportError: cannot import name 'cached_property'

See https://github.com/jarus/flask-testing/issues/143

temporarily fixed by anchoring Werkzeug to 0.16.1

kshefchek commented 4 years ago

theres a large reduction in logs after changing werkzeug 0.16.1 (or perhaps from another dep being upgraded)