Closed DavidBord closed 3 years ago
Hi @DavidBord
I should put a notice in the Readme on the GitHub landing page about this.
It is related to this issue: https://github.com/ashleysommer/sanicpluginsframework/issues/15 Unfortunately the latest released version of Sanic-Plugins-Framework doesn't work on Sanic 19.12.0.
You can get around the problem by manually updating to the latest beta SPF.
Hi, Thanks for the quick reply. For the latest beta SPF I get the following exception:
rest_assoc.api(api)
../../../venvs/untitled3/lib/python3.7/site-packages/sanic_restplus/restplus.py:10: in api
return plug.api(reg, *args, api_class=api_class, **kwargs)
../../../venvs/untitled3/lib/python3.7/site-packages/sanic_restplus/restplus.py:76: in api
api.init_api(reg, **kwargs)
../../../venvs/untitled3/lib/python3.7/site-packages/sanic_restplus/api.py:212: in init_api
self._init_app(app, context)
../../../venvs/untitled3/lib/python3.7/site-packages/sanic_restplus/api.py:222: in _init_app
self._register_specs()
../../../venvs/untitled3/lib/python3.7/site-packages/sanic_restplus/api.py:273: in _register_specs
resource_class_args=(self, )
../../../venvs/untitled3/lib/python3.7/site-packages/sanic_restplus/api.py:354: in _register_view
spf._plugin_register_route(resource_func, restplus, context, rule,
E AttributeError: 'SanicPluginsFramework' object has no attribute '_plugin_register_route'
Hi @DavidBord Thanks for the report. I forgot that Sanic-Restplus will need some modification to work with the new SPF version. I'm working on a new Beta release today that should fix it.
@DavidBord I've just pushed two new versions.
Run the quick start example on Sanic 19.12.2 and got this error message: