Skip to content

Creating new pipelines from CLI crashes if a local plugin folder is not provided #104

@b3by

Description

@b3by

Describe the bug
The CLI command to create a new pipeline fails if no plugin folder is provided. By default, the command looks for a ./plugin folder within the current directory, and it crashes if that does not exist. I don't know if this is worth persuing (might even be the expected behaviour), but it could be useful to get rid of this for all the cases when a pipeline of only built-in nodes needs be created.

Affected Components
Pipeline CLI creation tool.

To Reproduce
Starting from an empty folder, simply run:

python -m juturna create

Expected behavior
I would expect the pipe builder to start without any plugin nodes included.

Logs

(juturna_dev) ➜  warping python -m juturna create
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/anto/.virtualenvs/juturna_dev/lib/python3.12/site-packages/juturna/__main__.py", line 38, in <module>
    _ret = commands.command(command)(args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anto/.virtualenvs/juturna_dev/lib/python3.12/site-packages/juturna/cli/commands/create.py", line 40, in _execute
    builder = PipelineBuilder(args.plugins)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anto/.virtualenvs/juturna_dev/lib/python3.12/site-packages/juturna/cli/commands/_juturna_config_creator.py", line 38, in __init__
    nodes = _create_tools.discover_nodes(folder)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anto/.virtualenvs/juturna_dev/lib/python3.12/site-packages/juturna/cli/commands/_create_tools.py", line 21, in discover_nodes
    raise FileNotFoundError(f'node folder {node_folder} does not exist')
FileNotFoundError: node folder /home/anto/devs/meetecho/pipe_envs/warping/plugins does not exist

Environment (please complete the following information):

  • Ubuntu
  • python3.12.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:lowtype:bugSomething isn't workingtype:proposalProposal that can be accepted/discarded silently

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions