Open tomasbbb opened 4 years ago
I was able to circumvent the error by using flask-restx instead of flask-restplus.
File "/code/demo/eidas_bridge_api.py", line 7 from flask_restx import Resource, Api, fields, abort
File "/code/requirements.demo.txt", add flask-restx
Traceback (most recent call last): File "/code/demo/eidas_start_demo.py", line 10, in
from demo.eidas_bridge_api import init_api_server
File "/code/demo/eidas_bridge_api.py", line 7, in
from flask_restplus import Resource, Api, fields, abort
File "/usr/local/lib/python3.7/dist-packages/flask_restplus/init.py", line 4, in
from . import fields, reqparse, apidoc, inputs, cors
File "/usr/local/lib/python3.7/dist-packages/flask_restplus/fields.py", line 17, in
from werkzeug import cached_property
ImportError: cannot import name 'cached_property' from 'werkzeug' (/usr/local/lib/python3.7/dist-packages/werkzeug/init.py)
Tested under under linux ubuntu 16.04