abandonned dependency: flask-restplus
noraj opened this issue · 0 comments
Traceback (most recent call last):
File "/usr/bin/autopwn", line 11, in <module>
load_entry_point('autopwn==2.0.0', 'console_scripts', 'autopwn')()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
return ep.load()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
return self.resolve()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3.8/site-packages/autopwn2/app.py", line 7, in <module>
from autopwn2.api import api
File "/usr/lib/python3.8/site-packages/autopwn2/api/__init__.py", line 4, in <module>
from flask_restplus import Api
File "/usr/lib/python3.8/site-packages/flask_restplus/__init__.py", line 4, in <module>
from . import fields, reqparse, apidoc, inputs, cors
File "/usr/lib/python3.8/site-packages/flask_restplus/fields.py", line 17, in <module>
from werkzeug import cached_property
ImportError: cannot import name 'cached_property' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)
Because of noirbizarre/flask-restplus#777, but if you look at noirbizarre/flask-restplus#778 (comment) and noirbizarre/flask-restplus#777 (comment) it says:
flask-restplus work has been discontinued due to maintainers not having pypi keys. See the drop in replacement, flask-restx. It's an official fork by the maintainer team. We have already fixed the issue there
No. Flask-restplus is no longer maintained. The former maintainers do not have privileges to push to pypi, and after many months of trying, we forked the project. Check out flask-restx. It's a drop in replacement and we are roadmapping, designing, and making fixes...for instance, we already patched for Werkzeug
So I think a move from flask-restplus to flask-restx is required