autopwn icon indicating copy to clipboard operation
autopwn copied to clipboard

abandonned dependency: flask-restplus

Open noraj opened this issue 5 years ago • 1 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 https://github.com/noirbizarre/flask-restplus/issues/777, but if you look at https://github.com/noirbizarre/flask-restplus/pull/778#issuecomment-587077423 and https://github.com/noirbizarre/flask-restplus/issues/777#issuecomment-588007276 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

noraj avatar May 06 '20 21:05 noraj

Shivpal yadav

sy7829682-cmyk avatar Aug 08 '25 08:08 sy7829682-cmyk