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

Can't make runs in elyra2.1.0 #3111

Closed
kimkihoon0515 opened this issue Feb 14, 2023 · 11 comments
Closed

Can't make runs in elyra2.1.0 #3111

kimkihoon0515 opened this issue Feb 14, 2023 · 11 comments
Labels
inactive:wontfix This will not be worked on platform: pipeline-Kubeflow Related to usage of Kubeflow Pipelines as pipeline runtime

Comments

@kimkihoon0515
Copy link

elyra version : 2.1.0
kfp : 1.3.0
kubeflow pipelines : 2.0.0-alpha3

Here's two ways that I've tried
image
and i got
image

the second way is
image
and also i got
image

I' cant put Username & Password because I don't use dex for authentication.
I'm using keycloak for oidc auth service and it doesn't work for username&passwords.
I used kubernetes service account to authenticate in elyra>=3.0.0 but can't make runs in elyra<3 because service account token seems doesn't work in elyra version 2.

Also I need to make runs in elyra version 1.5.3 so if you guys can add kubernetes service account method or something like that, it would be very helpful to me

@ptitzler
Copy link
Member

Hi @kimkihoon0515!

but can't make runs in elyra<3 because service account token seems doesn't work in elyra version 2.

Also I need to make runs in elyra version 1.5.3 so if you guys can add kubernetes service account method or something > like that, it would be very helpful to me

Due to resource constraints we don't add new features or backport features to releases that are older than the "current major release", which is 3.x as of today.

@ptitzler ptitzler added inactive:wontfix This will not be worked on platform: pipeline-Kubeflow Related to usage of Kubeflow Pipelines as pipeline runtime labels Feb 14, 2023
@kimkihoon0515
Copy link
Author

@ptitzler Then is there no way to make runs if I don't use dex for auth??

@ptitzler
Copy link
Member

Unfortunately not in releases older than v3

@kimkihoon0515
Copy link
Author

@ptitzler Thx for the help. One more question. Is there a function to attach volume in runtime images in elyra 1.5.3??
If not, then which version of elyra has it??

@ptitzler
Copy link
Member

No. Volume mount support was added in version 3.10

@kimkihoon0515
Copy link
Author

@ptitzler I am trying to install the elyra v1.5.3 package locally without using pip.
I tried

python setup.py install

and got some warnings

/usr/local/lib/python3.8/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'elyra.metadata.schemas' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'elyra.metadata.schemas' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'elyra.metadata.schemas' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'elyra.metadata.schemas' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
/usr/local/lib/python3.8/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'elyra.pipeline.tests.resources.archive' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'elyra.pipeline.tests.resources.archive' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'elyra.pipeline.tests.resources.archive' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'elyra.pipeline.tests.resources.archive' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
/usr/local/lib/python3.8/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'elyra.pipeline.tests.resources.node_util' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'elyra.pipeline.tests.resources.node_util' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'elyra.pipeline.tests.resources.node_util' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'elyra.pipeline.tests.resources.node_util' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
/usr/local/lib/python3.8/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'elyra.pipeline.tests.resources.sample_pipelines' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'elyra.pipeline.tests.resources.sample_pipelines' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'elyra.pipeline.tests.resources.sample_pipelines' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'elyra.pipeline.tests.resources.sample_pipelines' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
/usr/local/lib/python3.8/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'elyra.templates' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'elyra.templates' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'elyra.templates' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'elyra.templates' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
/usr/local/lib/python3.8/dist-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'elyra.util.tests' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'elyra.util.tests' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'elyra.util.tests' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'elyra.util.tests' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

Do these warnings need to be fixed or does it matter?

@ptitzler
Copy link
Member

ptitzler commented Feb 17, 2023

I would expect things to work because the referenced packages are still installed. The only packages that matter at runtime are elyra.metadata.schemas and elyra.templates. If they are ignored by ,setuptools in the future setup.py would require changes.

I should note that we've updated the documentation to indicate that Elyra 1.x and 2.x are no longer maintained: https://github.com/elyra-ai/elyra/blob/main/SECURITY.md

Edit: I forgot to mention that the official way to install Elyra from source code is to run make install

@kimkihoon0515
Copy link
Author

kimkihoon0515 commented Feb 17, 2023

@ptitzler so you mean what I have to do is clone the repo and run make install?
Actually I changed some codes in processor_kfp.py to use service account token to get access to mlpipeline dns server.
Will these changes apply?

@ptitzler
Copy link
Member

Yes. The relevant build and installation documentation for the version you are using is here and here. Note that the build/installation process is significantly different from the one used in more current releases. The last time we've built this version of Elyra was in January 2021.

@kimkihoon0515
Copy link
Author

@ptitzler Got an error when running make install

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
flake8 elyra
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flake8/plugins/finder.py", line 291, in _load_plugin
    obj = plugin.entry_point.load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 844, in exec_module
  File "<frozen importlib._bootstrap_external>", line 981, in get_code
  File "<frozen importlib._bootstrap_external>", line 911, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/dist-packages/hacking/core.py", line 185
    except ImportError, exc:
                      ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/flake8", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/options/parse_args.py", line 42, in parse_args
    plugins = finder.load_plugins(raw_plugins, plugin_opts)
  File "/usr/local/lib/python3.8/dist-packages/flake8/plugins/finder.py", line 365, in load_plugins
    return _classify_plugins(_import_plugins(plugins, opts), opts)
  File "/usr/local/lib/python3.8/dist-packages/flake8/plugins/finder.py", line 307, in _import_plugins
    return [_load_plugin(p) for p in plugins]
  File "/usr/local/lib/python3.8/dist-packages/flake8/plugins/finder.py", line 307, in <listcomp>
    return [_load_plugin(p) for p in plugins]
  File "/usr/local/lib/python3.8/dist-packages/flake8/plugins/finder.py", line 293, in _load_plugin
    raise FailedToLoadPlugin(plugin.package, e)
flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "hacking" due to invalid syntax (core.py, line 185).
make: *** [Makefile:72: lint-server] Error 1

any solution for this??
I have flake8 version 6.0.0 and hacking version 0.5.4

@ptitzler
Copy link
Member

I can confirm that this legacy branch doesn't build anymore in a clean environment. As I've mentioned earlier, this release is no longer supported and we therefore won't take any actions trying to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive:wontfix This will not be worked on platform: pipeline-Kubeflow Related to usage of Kubeflow Pipelines as pipeline runtime
Projects
None yet
Development

No branches or pull requests

2 participants