Skip to content
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

CLI commands fail when a flow consists of several python modules #3832

Open
vladfeigin opened this issue Oct 24, 2024 · 1 comment
Open

CLI commands fail when a flow consists of several python modules #3832

vladfeigin opened this issue Oct 24, 2024 · 1 comment
Labels
bug Something isn't working no-recent-activity There has been no recent activity on this issue/pull request

Comments

@vladfeigin
Copy link

My flow consists several Python modules:
E.g. those are folders in my app:
my-app (root)
flow/flow.flex.yaml
rag/rag.py
search/search.py
...

The flow entry class uses code from other modules, e.g. from rag module.
When I run one of CLI commands like
pf flow build --source ./flow --output ./deployment --format docker
I get the error:
["Failed to load python module from file '../../flow/flow.py': (ModuleNotFoundError) No module named 'rag.rag'; 'rag' is not a package"]

I set PYTHONPATH env variable but still the problem persists.

System Info:
{
"promptflow": "1.16.1",
"promptflow-azure": "1.16.1",
"promptflow-core": "1.16.1",
"promptflow-devkit": "1.16.1",
"promptflow-tracing": "1.16.1"
}

Python (Darwin) 3.11.10 (main, Sep 7 2024, 01:03:31) [Clang 15.0.0 (clang-1500.3.9.4)]
OS Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000
Python Version: 3.11.10 (main, Sep 7 2024, 01:03:31) [Clang 15.0.0 (clang-1500.3.9.4)]

@vladfeigin vladfeigin added the bug Something isn't working label Oct 24, 2024
Copy link

Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue/pull request label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-recent-activity There has been no recent activity on this issue/pull request
Projects
None yet
Development

No branches or pull requests

1 participant