Giter Site home page Giter Site logo

cant't login about cesi HOT 4 OPEN

garywu520 avatar garywu520 commented on May 24, 2024
cant't login

from cesi.

Comments (4)

shouldsee avatar shouldsee commented on May 24, 2024 1

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.

HuaTrung avatar HuaTrung commented on May 24, 2024

I think you need to upgrade flask-sqlalchemy lib. I fixed it.

from cesi.

beyond510 avatar beyond510 commented on May 24, 2024

I think you need to upgrade flask-sqlalchemy lib. I fixed it.

so...how to do???
"pip install -U Flask-SQLAlchemy"

from cesi.

HuaTrung avatar HuaTrung commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.