tgbot icon indicating copy to clipboard operation
tgbot copied to clipboard

Change sqlalchemy version

Open FayasNoushad opened this issue 3 years ago • 5 comments

For avoiding sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres

FayasNoushad avatar Nov 07 '21 13:11 FayasNoushad

To avoid that you should use postgresql:// instead of postgres://

jk6521 avatar Dec 15 '21 14:12 jk6521

Ok

FayasNoushad avatar Dec 15 '21 15:12 FayasNoushad

Ok

FayasNoushad avatar Dec 15 '21 15:12 FayasNoushad

The purpose of this PR is very unclear.

Why does pinning the version fix this? What changed in newer sqlalchemy versions? What is the actual issue?

PaulSonOfLars avatar Dec 15 '21 16:12 PaulSonOfLars

The purpose of this PR is very unclear.

Why does pinning the version fix this? What changed in newer sqlalchemy versions? What is the actual issue?

In older version of sqlalchemy it accepted both postgres:// and postgresql:// but in the newer version they stopped support for postgres:// in database URI. The error he mentioned is happening mostly on heroku since the DATABASE_URL from heroku-postgres can't be edited and they haven't added support for this.

jk6521 avatar Apr 05 '22 18:04 jk6521