jyotisham / jyotisha

Python tools for the astronomical / astrological vedAnga of Hindus
MIT License
88 stars 52 forks source link

flask-restplus error #63

Closed karthikraman closed 1 year ago

karthikraman commented 3 years ago
Error: While importing "wsgi.wsgi_app", an ImportError was raised:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/cli.py", line 240, in locate_app
    __import__(module_name)
  File "/mnt/d/GitHub/jyotisha/wsgi/wsgi_app.py", line 18, in <module>
    from jyotisha.rest_api import run
  File "/mnt/d/GitHub/jyotisha/jyotisha/rest_api/run.py", line 9, in <module>
    from jyotisha.rest_api import api_v1
  File "/mnt/d/GitHub/jyotisha/jyotisha/rest_api/api_v1.py", line 3, in <module>
    import flask_restplus
  File "/usr/local/lib/python3.6/dist-packages/flask_restplus/__init__.py", line 4, in <module>
    from . import fields, reqparse, apidoc, inputs, cors
  File "/usr/local/lib/python3.6/dist-packages/flask_restplus/fields.py", line 17, in <module>
    from werkzeug import cached_property
ImportError: cannot import name 'cached_property'
karthikraman commented 3 years ago

Is there any easy fix for this @vvasuki ?

vvasuki commented 3 years ago

Is there any easy fix for this @vvasuki ?

Google search suggests https://github.com/noirbizarre/flask-restplus/issues/777#issuecomment-583374368