tiangolo / full-stack

Full stack, modern web application generator. Using Flask, PostgreSQL DB, Docker, Swagger, automatic HTTPS and more.
MIT License
523 stars 81 forks source link

backend app won't start #26

Closed RobinClowers closed 1 year ago

RobinClowers commented 3 years ago

Following the instructions in the generated readme, when I docker-compose up -d, the backend fails to start with this error:

backend_1        | Traceback (most recent call last):
backend_1        |   File "./app/main.py", line 8, in <module>
backend_1        |     from .core import app_setup  # noqa
backend_1        |   File "./app/core/app_setup.py", line 18, in <module>
backend_1        |     from ..api.api_v1 import api as api_v1  # noqa
backend_1        |   File "./app/api/api_v1/api.py", line 8, in <module>
backend_1        |     from .api_docs import docs
backend_1        |   File "./app/api/api_v1/api_docs.py", line 3, in <module>
backend_1        |     from flask_apispec import FlaskApiSpec
backend_1        |   File "/usr/local/lib/python3.6/site-packages/flask_apispec/__init__.py", line 2, in <module>
backend_1        |     from flask_apispec.views import ResourceMeta, MethodResource
backend_1        |   File "/usr/local/lib/python3.6/site-packages/flask_apispec/views.py", line 6, in <module>
backend_1        |     from flask_apispec.annotations import activate
backend_1        |   File "/usr/local/lib/python3.6/site-packages/flask_apispec/annotations.py", line 6, in <module>
backend_1        |     from flask_apispec.wrapper import Wrapper
backend_1        |   File "/usr/local/lib/python3.6/site-packages/flask_apispec/wrapper.py", line 8, in <module>
backend_1        |     from webargs import flaskparser
backend_1        |   File "/usr/local/lib/python3.6/site-packages/webargs/__init__.py", line 7, in <module>
backend_1        |     from webargs.core import ValidationError
backend_1        |   File "/usr/local/lib/python3.6/site-packages/webargs/core.py", line 11, in <module>
backend_1        |     from webargs.fields import DelimitedList
backend_1        |   File "/usr/local/lib/python3.6/site-packages/webargs/fields.py", line 97, in <module>
backend_1        |     class DelimitedTuple(DelimitedFieldMixin, ma.fields.Tuple):
backend_1        | AttributeError: module 'marshmallow.fields' has no attribute 'Tuple'
backend_1        | unable to load app 0 (mountpoint='') (callable not found or import error)
backend_1        | *** no app loaded. GAME OVER ***
backend_1        | 2020-12-27 22:28:17,753 INFO exited: uwsgi (exit status 22; not expected)

Maybe it's the wrong version of a related package?

tiangolo commented 1 year ago

Hey there! I'm sorry, I'm no longer using this project template as I moved to FastAPI: https://github.com/tiangolo/full-stack#%EF%B8%8F-deprecation-warning-%EF%B8%8F

So I won't be able to help you 😔 Given that, I'll chose this issue. But thanks for the interest! ☕

Sorry for the long delay! 🙈 I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.