miguelgrinberg / flasky

Companion code to my O'Reilly book "Flask Web Development", second edition.
MIT License
8.54k stars 4.21k forks source link

error #505

Closed iisgaurav closed 3 years ago

iisgaurav commented 3 years ago

2021-03-21T05:06:02.316153+00:00 app[worker.1]: return fn(*args, **kwargs) 2021-03-21T05:06:02.316194+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 522, in create_engine 2021-03-21T05:06:02.316679+00:00 app[worker.1]: entrypoint = u._get_entrypoint() 2021-03-21T05:06:02.316733+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/sqlalchemy/engine/url.py", line 653, in _get_entrypoint 2021-03-21T05:06:02.317314+00:00 app[worker.1]: cls = registry.load(name) 2021-03-21T05:06:02.317341+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 341, in load 2021-03-21T05:06:02.317775+00:00 app[worker.1]: raise exc.NoSuchModuleError( 2021-03-21T05:06:02.317964+00:00 app[worker.1]: sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres 2021-03-21T05:06:02.668304+00:00 heroku[worker.1]: Process exited with status 1 2021-03-21T05:06:02.801905+00:00 heroku[worker.1]: State changed from up to crashed

miguelgrinberg commented 3 years ago

Your database URL is bad.

iisgaurav commented 3 years ago

Your database URL is bad.

what i need to do

miguelgrinberg commented 3 years ago

Use a correct URL for your database. It seems you have a URL that starts with postgres://..., that is not valid. Try postgresql://....