| 1down Votefavorite |
Http://stackoverflow.com/questions/36416679/error-generating-swagger-server-python-flask-from-swagger-editor I ' ve used the Swagger Editor to manually generate my Swagger spec file and generated the files for a Python Flask server. Following the README I installed connexion, but if I run python app.py I get the error:ValueError:need more than 1 value to u Npack. Any ideas? Full stack trace below: NoHandlers could be foundForLogger"Connexion.api"Traceback (Most recent): File "App.py",Line5, Inch <Module>App.Add_api(' Swagger.yaml ') File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/app.py",Line144, InchAdd_api Debug=Self.Debug) File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/api.py",Line127, Inch__init__ Self.Add_paths() File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/api.py",Line198, InchAdd_paths Six.Reraise(*Sys.Exc_info()) File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/api.py",Line187, InchAdd_paths Self.Add_operation(Method,Path,Endpoint,Path_parameters) File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/api.py",Line160, InchAdd_operation Resolver=Self.Resolver) File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/operation.py",Line168, Inch__INIT__ resolution=Resolver.Resolve(Self) File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/resolver.py",Line50, InchResolveReturn Resolution(Self.resolve_function_from_operation_id(operation_id),operation_id) File "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/resolver.py",Line71, Inchresolve_function_from_operation_idReturnSelf.Function_resolver(operation_id file /library/ frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/connexion/utils.py ",< Span class= "PLN" > line 106, in Get_function_from_name module_name, attr_path1 = Module_name., 1) Valueerror: need more than 1 value to unpack< /span> python flask swagger
| share|improve This question |
asked APR 5 at 3:36 tw1742 117211 |
|