airtai / faststream

FastStream is a powerful and easy-to-use Python framework for building asynchronous services interacting with event streams such as Apache Kafka, RabbitMQ, NATS and Redis.
https://faststream.airt.ai/latest/
Apache License 2.0
3.18k stars 162 forks source link

Bug: CLI can't resolve `psycopg` import #1879

Closed Lancetnik closed 3 weeks ago

Lancetnik commented 3 weeks ago

How to reproduce Include source code:

from sqlalchemy.ext.asyncio import create_async_engine

from faststream import FastStream
from faststream.nats import NatsBroker

broker = NatsBroker()
app = FastStream(broker)

engine = create_async_engine("postgresql+psycopg://user:pass@localhost:5432")

And/Or steps to reproduce the behavior:

fastsream run serve:app

Screenshots

Снимок экрана 2024-10-29 в 19 33 07

Environment Include the output of the faststream -v command to display your current project and system environment.

faststream==0.5.28
psycopg==3.2.3