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

ModuleNotFoundError: No module named 'kfp.deprecated' #7478

Closed
drozzy opened this issue Mar 29, 2022 · 6 comments
Closed

ModuleNotFoundError: No module named 'kfp.deprecated' #7478

drozzy opened this issue Mar 29, 2022 · 6 comments

Comments

@drozzy
Copy link

drozzy commented Mar 29, 2022

Pipelines Version: [1.8.1]

$ pip list | grep kfp 
kfp                      1.8.11
kfp-pipeline-spec        0.1.14
kfp-server-api           1.8.1

Following this tutorial:
https://www.kubeflow.org/docs/components/pipelines/tutorials/build-pipeline/#choose-and-compile-a-pipeline

After running this:
dsl-compile --py ${DIR}/sequential.py --output ${DIR}/sequential.tar.gz

I get this error:

Traceback (most recent call last):
  File "/Users/andriy/miniconda3/envs/mlpipeline/bin/dsl-compile", line 8, in <module>
    sys.exit(main())
  File "/Users/andriy/miniconda3/envs/mlpipeline/lib/python3.7/site-packages/kfp/compiler/main.py", line 138, in main
    mode,
  File "/Users/andriy/miniconda3/envs/mlpipeline/lib/python3.7/site-packages/kfp/compiler/main.py", line 108, in compile_pyfile
    __import__(os.path.splitext(filename)[0])
  File "pipelines/samples/core/sequential/sequential.py", line 17, in <module>
    from kfp.deprecated import dsl, compiler
ModuleNotFoundError: No module named 'kfp.deprecated'

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@zhuyaguang
Copy link

+1

@zhuyaguang
Copy link

i fix it by replace "kfp.deprecated" to "kfp".

i think it caused by this PR
#7291

@ji-yaqi
Copy link
Contributor

ji-yaqi commented Mar 31, 2022

This is intended since our samples are now based off KFP v2 (main branch). sdk/release-1.8 contains the v1 specific samples and naming. Please reopen if you have more issues with this. Plan is here: #7238

@ji-yaqi ji-yaqi closed this as completed Mar 31, 2022
@drozzy
Copy link
Author

drozzy commented Apr 3, 2022

I don't understand what you mean.
Shouldn't following the guide not generate errors? Because I did everything that was in the guide as far as I recall.

@drozzy
Copy link
Author

drozzy commented Apr 3, 2022

It installed Pipelines Version: [1.8.1] following the guide. I.e. I didn't choose some specific version to install.

@ilaria-speranza
Copy link

I solved this issue by launching git checkout 1.8.13 in the repo I cloned from Github

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

No branches or pull requests

4 participants