You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.
edit: just realized that my comment didn't post. Yikes. Sorry about that.
Background
I have been trying to get faraday running on a docker container to intermingle with a system that I'm building, but have been wrestling with it for a while. High level overview of what steps I've taken so far:
Pull the official faraday docker, noticed that a lot of the services were not installed, and attempted to build based on their install notes.
Attempted to build my own dockerfile from scratch based on the above.
Attempted to deploy using nscuro's faraday-docker (thanks for providing this by the way!!)
The Issue
When working with faraday-docker (which is what I am focusing this comment is focused on), the app container has been unable to start. The docker logs show the following:
SyntaxError: invalid syntax Traceback (most recent call last): File "/root/faraday/faraday-server.py", line 20, in <module> from server.web import app File "/root/faraday/server/web.py", line 38, in <module> app = create_app() # creates a Flask(__name__) app File "/root/faraday/server/app.py", line 260, in create_app register_blueprints(app) File "/root/faraday/server/app.py", line 64, in register_blueprints from server.api.modules.commandsrun import commandsrun_api File "/root/faraday/server/api/modules/commandsrun.py", line 12, in <module> from server.api.base import AutoSchema, ReadWriteWorkspacedView, PaginatedMixin File "/root/faraday/server/api/base.py", line 20, in <module> from marshmallow_sqlalchemy import ModelConverter File "/usr/local/lib/python2.7/dist-packages/marshmallow_sqlalchemy/__init__.py", line 1, in <module> from .schema import TableSchemaOpts, ModelSchemaOpts, TableSchema, ModelSchema File "/usr/local/lib/python2.7/dist-packages/marshmallow_sqlalchemy/schema.py", line 101 class TableSchema(ma.Schema, metaclass=TableSchemaMeta):
Note that the syntax error was pointing to the "metaclass=Table" on the last line. It didn't get copied.
Attempted fix
This page (https://stackoverflow.com/questions/57837460/airflow-initdb-failed-in-amazon-linux) suggested that they had a marshmallow version mismatch issue, so I figured I would give it a try. I forked the faraday-docker git and the the official faraday git. Edited the server-requirements.txt on faraday, and referenced my own forked repo on the forked faraday-docker.
Alas, it did not fix anything, same issues.
Going forward
I've been trying to do several workarounds but have had issues building from scracth based on Faraday's instructions. I would really like to figure this out for my proof of concept thing that I am working on, so if you have suggestions, please let me know! I'm not too familiar with working with these python modules.
Thanks! And cheers to nscuro for providing this.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
edit: just realized that my comment didn't post. Yikes. Sorry about that.
Background
I have been trying to get faraday running on a docker container to intermingle with a system that I'm building, but have been wrestling with it for a while. High level overview of what steps I've taken so far:
The Issue
When working with faraday-docker (which is what I am focusing this comment is focused on), the app container has been unable to start. The docker logs show the following:
SyntaxError: invalid syntax Traceback (most recent call last): File "/root/faraday/faraday-server.py", line 20, in <module> from server.web import app File "/root/faraday/server/web.py", line 38, in <module> app = create_app() # creates a Flask(__name__) app File "/root/faraday/server/app.py", line 260, in create_app register_blueprints(app) File "/root/faraday/server/app.py", line 64, in register_blueprints from server.api.modules.commandsrun import commandsrun_api File "/root/faraday/server/api/modules/commandsrun.py", line 12, in <module> from server.api.base import AutoSchema, ReadWriteWorkspacedView, PaginatedMixin File "/root/faraday/server/api/base.py", line 20, in <module> from marshmallow_sqlalchemy import ModelConverter File "/usr/local/lib/python2.7/dist-packages/marshmallow_sqlalchemy/__init__.py", line 1, in <module> from .schema import TableSchemaOpts, ModelSchemaOpts, TableSchema, ModelSchema File "/usr/local/lib/python2.7/dist-packages/marshmallow_sqlalchemy/schema.py", line 101 class TableSchema(ma.Schema, metaclass=TableSchemaMeta):
Note that the syntax error was pointing to the "metaclass=Table" on the last line. It didn't get copied.
Attempted fix
This page (https://stackoverflow.com/questions/57837460/airflow-initdb-failed-in-amazon-linux) suggested that they had a marshmallow version mismatch issue, so I figured I would give it a try. I forked the faraday-docker git and the the official faraday git. Edited the server-requirements.txt on faraday, and referenced my own forked repo on the forked faraday-docker.
Alas, it did not fix anything, same issues.
Going forward
I've been trying to do several workarounds but have had issues building from scracth based on Faraday's instructions. I would really like to figure this out for my proof of concept thing that I am working on, so if you have suggestions, please let me know! I'm not too familiar with working with these python modules.
Thanks! And cheers to nscuro for providing this.
The text was updated successfully, but these errors were encountered: