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

Importing generate_query from pipelines #63

Open
pb-rategain-adara opened this issue Aug 10, 2023 · 4 comments
Open

Importing generate_query from pipelines #63

pb-rategain-adara opened this issue Aug 10, 2023 · 4 comments

Comments

@pb-rategain-adara
Copy link

What module or folder is the 'pipelines' in from pipelines import generate_query (line 21 of pipelines/src/pipelines/tensorflow/prediction/pipeline.py) referring to? I cannot find this.

I saw a related issue opened and closed, without answer, in https://github.com/GoogleCloudPlatform/vertex-pipelines-end-to-end-samples/issues/33

@ghost
Copy link

ghost commented Aug 11, 2023

Hi @pb-rategain-adara! You can find this function in pipelines/src/pipelines/__init__.py

@pb-rategain-adara
Copy link
Author

Thank you @browningjp-datatonic, I now see that! I'm still confused why from pipelines import generate_query fails to grab it though. Is there something I need to do in terms of setup before running pipelines/src/pipelines/tensorflow/training/pipeline.py ?

@ghost
Copy link

ghost commented Aug 17, 2023

@pb-rategain-adara this should work OK if you are using the make commands. Have you set up your environment following the instructions in the README?

If you just run the Python file directly, it is unlikely to work

@felix-datatonic
Copy link
Contributor

Hi @pb-rategain-adara ,

Thanks for this issue. Please check out the most recent PR and release.

Either use make training (or make prediction) or check out the Makefile for the command. Most likely you'll need to run poetry run python -m pipelines.training instead of python pipelines/training.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants