This message was deleted.
# ask-anything
s
This message was deleted.
n
Traceback:
Copy code
Traceback (most recent call last):
  File "path-to-package-repo/venv/lib/python3.9/site-packages/ploomber/cli/io.py", line 103, in wrapper
    fn(**kwargs)
  File "path-to-package-repo/venv/lib/python3.9/site-packages/ploomber_core/telemetry/telemetry.py", line 545, in wrapper
    raise e
  File "path-to-package-repo/venv/lib/python3.9/site-packages/ploomber_core/telemetry/telemetry.py", line 533, in wrapper
    result = func(*args, **kwargs)
  File "path-to-package-repo/venv/lib/python3.9/site-packages/ploomber/cli/nb.py", line 472, in main
    params_to_inject, warning_message, exceptions = _get_params_to_inject(
  File "path-to-package-repo/venv/lib/python3.9/site-packages/ploomber/cli/nb.py", line 132, in _get_params_to_inject
    unprioritized_tasks_to_inject, warning_message = _get_tasks_to_inject(
  File "path-to-package-repo/venv/lib/python3.9/site-packages/ploomber/cli/nb.py", line 84, in _get_tasks_to_inject
    full_template_name = Path(task.source._path).name
AttributeError: 'PythonCallableSource' object has no attribute '_path'
e
this seems like a bug, looks like your pipeline has some Python function tasks and ploomber is treating them as scripts/notebooks. can you open an issue on github? as a workaround, you can remove the Python function tasks in your pipeline.yaml, run the command and then add them back again
n
Thanks Eduardo. I posted an issue. Appreciate the suggestion for a workaround.
🙌 1