canonical / kubeflow-rocks

Rocks for Kubeflow components
Apache License 2.0
0 stars 11 forks source link

`import kfp` causes imports test to fail in Jupyter server ROCKs #53

Open i-chvets opened 1 year ago

i-chvets commented 1 year ago

Description

In Jupyter server ROCKs import test ensures that all packages are installed correctly. However, outdated kfp installation (pinned to 1.6.3) causes dependency issue (if import kfp is present in test):

tox -e unit
. . .
    from urllib3.contrib import appengine as gaecontrib
ImportError: cannot import name 'appengine' from 'urllib3.contrib' (/opt/conda/lib/python3.8/site-packages/urllib3/contrib/__init__.py)

This issue was discovered when updating Tensorflow ROCK: https://github.com/canonical/kubeflow-rocks/pull/49

ROCK import tests should be reviewed and a solution should be found to ensure that kfp can be imported correctly without causing.