Comments (4)
I am using flask-sqlalchemy==2.4.3
and the code to set database needs fixing... Seemingly this is a bug from flask_sqlalchemy
self._sa.apply_driver_hacks(self._app, sa_url, options)
File "/root/miniconda3/lib/python3.8/site-packages/flask_sqlalchemy/__init__.py", line 914, in apply_driver_hacks
sa_url.database = os.path.join(app.root_path, sa_url.database)
AttributeError: can't set attribute
So the best thing to do is to upgrade to a version without bug... I am currently using a patched requirements.txt like
flask==1.1.2
flask-sqlalchemy==2.5.1
psycopg2-binary==2.8.5
pymysql==0.9.3
tomlkit==0.5.11
itsdangerous==2.0.1
from cesi.
I think you need to upgrade flask-sqlalchemy lib. I fixed it.
from cesi.
I think you need to upgrade flask-sqlalchemy lib. I fixed it.
so...how to do???
"pip install -U Flask-SQLAlchemy"
from cesi.
just remove specific version from requirement.txt
flask==1.1.2 flask-sqlalchemy psycopg2-binary==2.8.5 pymysql==0.9.3 tomlkit==0.5.11
from cesi.
Related Issues (20)
- Increase RBAC
- node not connected Connection refused
- [featureRequest] Throw error message if supervisord is incorrectly configured and throws UNKNOWN_METHOD
- Does it support webroot subfolder? HOT 1
- Unable to login. Where is the default userinfo.sql file? How do I initialize a database? HOT 2
- Node: 'my-test', Error: 'nonnumeric port: 'Ebupt'' HOT 7
- How can manager the same group program in different supervisor nodes? HOT 1
- some suggestions
- start cesi fail HOT 1
- Unable to resolve “No address associated with hostname” on azure web service
- Interface customization
- Invalid username or password
- Bypass Authentication HOT 2
- Can't login with default info after building HOT 6
- Using unix socket
- uptime display is error
- Log API return 500
- How to install offline
- Support for oracle
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cesi.