You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kedro CLI fails on any command due to path inconsistencies in the main entry point.
Context
Was working on local machine, cloned the kedro project to an enterprise-managed computer and into a network attached storage folder.
The kedro command failed with a ValueError due to the source path not being relative to the project root. Editing the kedro/framework/cli.py file to call Path.cwd().resolve() fixed the error.
This might be due to the janky setup of our enterprise NAS system or some environment stuff I don't recognise. If that's the case, feel free to close.
Actual Result
Kedro CLI fails to init:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Miniconda3\envs\revisions_toolkit\lib\site-packages\kedro\framework\startup.py:136 in │
│ _validate_source_path │
│ │
│ C:\Miniconda3\envs\revisions_toolkit\lib\pathlib.py:818 in relative_to │
ValueError: '\\XXXX-XX\XXX\XXX\XXX\XXX\XXX\revisions-toolkit\src' is not in the subpath of 'X:\XXXX\XXX\XXX\XXX\revisions-toolkit' OR one path is relative and the other is absolute.
Your Environment
Code is on a network drive which is mapped to N:, but has a different fully resolved path.
Kedro version used (pip show kedro or kedro -V): 0.19.3
Python version used (python -V): 3.10.13
Operating system and version: Windows 10.0
The text was updated successfully, but these errors were encountered:
Hi @lukas-al , thanks for reporting this issue. Just to clarify, this happens when you run any kedro command, such as kedro run? And from where are you running the command when you see this error?
Description
Kedro CLI fails on any command due to path inconsistencies in the main entry point.
Context
Was working on local machine, cloned the kedro project to an enterprise-managed computer and into a network attached storage folder.
The kedro command failed with a ValueError due to the source path not being relative to the project root. Editing the
kedro/framework/cli.py
file to callPath.cwd().resolve()
fixed the error.This might be due to the janky setup of our enterprise NAS system or some environment stuff I don't recognise. If that's the case, feel free to close.
Actual Result
Kedro CLI fails to init:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ C:\Miniconda3\envs\revisions_toolkit\lib\site-packages\kedro\framework\startup.py:136 in │
│ _validate_source_path │
│ │
│ C:\Miniconda3\envs\revisions_toolkit\lib\pathlib.py:818 in relative_to │
ValueError: '\\XXXX-XX\XXX\XXX\XXX\XXX\XXX\revisions-toolkit\src' is not in the subpath of 'X:\XXXX\XXX\XXX\XXX\revisions-toolkit' OR one path is relative and the other is absolute.
Your Environment
Code is on a network drive which is mapped to N:, but has a different fully resolved path.
pip show kedro
orkedro -V
): 0.19.3python -V
): 3.10.13The text was updated successfully, but these errors were encountered: