question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File Dependencies relative path under pipeline file properties

See original GitHub issue

Describe the issue My project contains folder structure as follows:

/servicelib/controllers/
/servicelib/models/
/pipelines/main/
/pipelines/experiment/

I have notebooks and related pipelines under /pipelines/main/ and some python libraries used by the notebooks under /servicelib/. This is why I added a relative path to the parent folder as ../../servicelib/ under File Dependency as part of the notebook properties in the pipeline. This runs successfully when running the pipeline in-place locally, but when running it using the kubflow runtime the following error occurs:

Traceback (most recent call last):
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/tornado/web.py", line 1704, in _execute
    result = await result
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/elyra/pipeline/handlers.py", line 89, in post
    response = await PipelineProcessorManager.instance().process(pipeline)
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/elyra/pipeline/processor.py", line 70, in process
    res = await asyncio.get_event_loop().run_in_executor(None, processor.process, pipeline)
  File "/src/conda/envs/notebook/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/src/conda/envs/notebook/lib/python3.7/site-packages/elyra/pipeline/processor_kfp.py", line 69, in process
    format(pipeline_name, pipeline_path), str(ex)) from ex
RuntimeError: ('Error compiling pipeline reftest-0527064628 at /tmp/tmpavdhj1ol/reftest-0527064628.tar.gz', "Node 'reftest' referenced dependencies that were not found: {'../../servicelib/controllers/*.py', '../../servicelib/services/*.py', '../../servicelib/models/*.py'}")

Screenshot of the properties window image

Expected behavior Expected to be able to run the pipeline successfully with File Dependencies copied from relative parent path

Pipeline runtime environment If the issue is related to pipeline execution, identify the environment where the pipeline is executed

  • Kubeflow Pipelines

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pacospacecommented, Jul 13, 2021

To summarize:

Please let me know if I missed anything.

Thanks @ptitzler, what is ETA for 2.3 release stable?

1reaction
ptitzlercommented, May 28, 2021

To summarize:

  • the next 2.3 release includes support for symlinks
  • development best practices will be documented (#1703)
  • validation service will check for file references that are outside the pipeline [project’s] scope (#1664) to prevent the reported issue

Please let me know if I missed anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependency resolution - Parcel
A dependency specifier is a string that describes the location of a dependency relative to the file that imports it. For example, in...
Read more >
In Visual Studio how to give relative path of a .lib file in project ...
The project has a dependency on a lib file generated by another project. This project is there is the parent directory of the...
Read more >
Pipeline caching - Azure - Microsoft Learn
Improve pipeline performance by caching files, like dependencies, ... Relative file paths or file patterns are resolved against $(System.
Read more >
How to manage build dependencies - IBM
file - This is the source file's path relative to the sourceDir of the file to scan. It is used as the key...
Read more >
Project settings | Substance 3D Designer - 3D & AR
This allows you to set the path of the Configuration File for ... For more information about using Project Files in a production...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found