-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: App import not working on doc cli when importing from other directory #1087
Comments
@reritom the last update for CLI import rules was 0.2.15. |
You're right. |
Just checked at it seems the change in I am unblocked for now by pinning to |
@reritom I am just checked it with 0.3.9 (latest) and it works fine, can you check it again, please? |
In a fresh venv with the following dependencies I am still encountering this issue.
|
Well, I found the problem and solution too |
Perfect, thank you |
Describe the bug
This behaviour was working before,
but seems to have stopped working from0.3.7
onward.This is sort of blocking me, because trying to use older versions of faststream aren't working due pinning issues (Lancetnik/FastDepends#51) with fast-depends, and I haven't managed to find a working combination of faststream+fastdepends manually.
How to reproduce
Include source code:
And/Or steps to reproduce the behavior:
app/__init__
is like a local module, andmain.py
is an entrypoint that consumes that local module.main.py
runfaststream docs gen main:faststream_app
ModuleNotFoundError: No module named 'app
. Note that runningpython main.py
has no import error, also adding init on the same level as main.py doesn't help (but probably shouldn't anyway). Adding the directory ofmain.py
to PATH doesn't seem to help either.Expected behavior
The docs should be generated
Observed behavior
Import error
Environment
Running FastStream 0.3.9 with CPython 3.9.12 on Darwin
The text was updated successfully, but these errors were encountered: