Skip to content

Commit 0917dc1

Browse files
author
Thierry RAMORASOAVINA
committed
Debug
1 parent 1d550e8 commit 0917dc1

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

khiops/core/internals/runner.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -405,20 +405,23 @@ def _detect_library_installation_incompatibilities(
405405
# (within the virtual env or the conda-based env)
406406
# must match the library installation
407407
if (
408-
(
409-
platform.system() == "Windows"
410-
and
411-
# Under Windows, python is not in a bin/ folder
412-
# for conda-based installations
413-
Path(sys.executable).parents[0] != base_dir
414-
)
408+
platform.system() == "Windows"
409+
and
410+
# Under Windows, python is not in a bin/ folder
411+
# for conda-based installations
412+
Path(sys.executable).parents[0] != base_dir
415413
# Under Linux or MacOS a bin/ folder exists
416414
or Path(sys.executable).parents[1] != base_dir
417415
):
418416
error = (
419417
f"Khiops Python library installation path '{library_root_dir}' "
420418
"does not match the current python environment "
421419
f"('{sys.executable}'). "
420+
f"base_dir={base_dir}, "
421+
f"Path(sys.executable).parents[0]="
422+
f"{Path(sys.executable).parents[0]}, "
423+
f"Path(sys.executable).parents[1]="
424+
f"{Path(sys.executable).parents[1]}, "
422425
"Go to https://khiops.org for instructions to re-install it "
423426
"(in a virtual environment).\n"
424427
)

0 commit comments

Comments
 (0)