DHARPA-Project / kiara

Data orchestration and management.
Mozilla Public License 2.0
11 stars 2 forks source link

Plugin info fails for the 'kiara_plugin.core_types' plugin. #69

Closed makkus closed 9 months ago

makkus commented 9 months ago

When using the plugin info command against the 'core_types' plugin, this happens:

❯ DEV=true kiara info plugin explain kiara_plugin.core_types
Traceback (most recent call last):
  File "/tmp/env/.pixi/env/lib/python3.11/site-packages/kiara/utils/cli/exceptions.py", line 18, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/env/.pixi/env/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/env/.pixi/env/lib/python3.11/site-packages/kiara/interfaces/cli/info/commands.py", line 80, in explain_plugin_info
    plugin_info = kiara_api.retrieve_plugin_info(plugin_name)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/env/.pixi/env/lib/python3.11/site-packages/kiara/interfaces/python_api/__init__.py", line 206, in retrieve_plugin_info
    info = KiaraPluginInfo.create_from_instance(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/env/.pixi/env/lib/python3.11/site-packages/kiara/interfaces/python_api/models/info.py", line 1769, in create_from_instance
    raise KiaraException(
kiara.exceptions.KiaraException: Can't provide information for plugin 'kiara_plugin.core_types'.

Error: Can't provide information for plugin 'kiara_plugin.core_types'.

This works for the 'tabular' plugin, which makes me suspect that it doesn't handle python package names with an '-' or '_' in the second part of the name properly.