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

Generic component execution fails due to AttributeError: module 'packaging.version' has no attribute 'LegacyVersion' #3049

Closed
ptitzler opened this issue Dec 8, 2022 · 0 comments · Fixed by #3050
Labels
component:pipeline-runtime issues related to pipeline runtimes e.g. kubeflow pipelines impact:blocker kind:bug Something isn't working
Milestone

Comments

@ptitzler
Copy link
Member

ptitzler commented Dec 8, 2022

Generic component execution log:

Collecting packaging
15
Downloading packaging-22.0-py3-none-any.whl (42 kB)
16
Installing collected packages: packaging
17
Successfully installed packaging-22.0
18
WARNING: You are using pip version 20.2.4; however, version 22.3.1 is available.
19
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
20
[D 16:08:52.757] Parsing Arguments.....
21
[I 16:08:52.759] 'generic':'train' - starting operation
22
[I 16:08:52.759] 'generic':'train' - Installing packages
23
[I 16:08:52.760] Package not found. Installing ipykernel package with version 6.13.0...
24
[I 16:08:52.760] Package not found. Installing ipython package with version 8.3.0...
25
[I 16:08:52.760] Package not found. Installing ipython-genutils package with version 0.2.0...
26
[I 16:08:52.760] Package not found. Installing jinja2 package with version 3.0.3...
27
[I 16:08:52.760] Package not found. Installing jupyter-client package with version 7.3.1...
28
[I 16:08:52.760] Package not found. Installing jupyter-core package with version 4.11.2...
29
[I 16:08:52.760] Package not found. Installing MarkupSafe package with version 2.1.1...
30
[I 16:08:52.760] Package not found. Installing minio package with version 7.1.8...
31
[I 16:08:52.760] Package not found. Installing nbclient package with version 0.6.3...
32
[I 16:08:52.760] Package not found. Installing nbconvert package with version 6.5.1...
33
[I 16:08:52.760] Package not found. Installing nbformat package with version 5.4.0...
34
[I 16:08:52.761] Package not found. Installing papermill package with version 2.3.4...
35
[I 16:08:52.761] Package not found. Installing pyzmq package with version 24.0.1...
36
[I 16:08:52.761] Package not found. Installing prompt-toolkit package with version 3.0.29...
37
Traceback (most recent call last):
38
File "bootstrapper.py", line 749, in <module>
39
main()
40
File "bootstrapper.py", line 732, in main
41
OpUtil.package_install(user_volume_path=input_params.get("user-volume-path"))
42
File "bootstrapper.py", line 563, in package_install
43
elif isinstance(version.parse(current_packages[package]), version.LegacyVersion):
44
AttributeError: module 'packaging.version' has no attribute 'LegacyVersion'

To Reproduce
Steps to reproduce the behavior:

  1. Create a dummy notebook
  2. Create a KFP/Airflow pipeline
  3. Add notebook to pipeline, selecting Tensorflow 2.8.0 as runtime image
  4. Submit pipeline.

(The problem does not appear to surface for some other system-provided images, such as pandas.)

Deployment information
Describe what you've deployed and how:

  • Elyra version: 3.14/main
  • Installation source:s ource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:pipeline-runtime issues related to pipeline runtimes e.g. kubeflow pipelines impact:blocker kind:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant