Traceback (most recent call last):


 "<string>", line 1, in <module>


 "/opt/services/flaskapp/src/database.py", line 11, in <module>

engine = create_engine('postgres://%s:%s@%s:%s/%s' % (user, pwd, host, port, db)) 


 "<string>", line 2, in create_engine


 "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/deprecations.py", line 298, in warned

return fn(*args, **kwargs)


 "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/create.py", line 522, in create_engine

entrypoint = u._get_entrypoint()


 "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/url.py", line 653, in _get_entrypoint

cls = registry.load(name)


 "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 341, in load

raise exc.NoSuchModuleError(
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres

Traceback (most recent call last):


 "/path/to/script.py", line 14, in <module>

asyncio.run(connect(url))


 "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/runners.py", line 43, in run

return loop.run_until_complete(main)


 "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 573, in run_until_complete

return future.result()


 "/path/to/script.py", line 5, in connect

async with await aio_pika.connect(url) as conn:


 "/path/to/site-packages/aio_pika/connection.py", line 437, in connect

await connection.connect()


 "/path/to/site-packages/aio_pika/connection.py", line 232, in connect

result = await f
ConnectionRefusedError: Connection to [IPv4 address]:5673 failed: timeout
