Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: can't set attribute when connecting to sqlite database with flask-sqlalchemy #778

Closed
KarolosLykos opened this issue Jul 7, 2021 · 4 comments

Comments

@KarolosLykos
Copy link

Hi, I have a problem starting the docker container.

I followed the documentation and built the image.

But when I run the container I get the following error.

AttributeError: can't set attribute when connecting to sqlite database with flask-sqlalchemy

@kofoednielsen
Copy link

I fixed this by setting the environment variable NIGHTLY=true in my container. This uses a Flask-SQLAlchemy=2.5.1

@KarolosLykos
Copy link
Author

Thank you very much that fixed the problem. I tried setting up the Flask-SQLAlchemy to 2.5 inside the setup.cfg but nothing. I'm not used to python, so I don't know if that was a smart move, messing around with the configuration files :D

@kofoednielsen
Copy link

kofoednielsen commented Jul 14, 2021

Yeah the docker file is very funny. Doesn't do much at build time, and at run time it downloads the code, installs dependencies and runs 🤷‍♂️

@zorun
Copy link
Collaborator

zorun commented Jul 14, 2021

This should be better now thanks to #793

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants