Skip to content

Spurious Warning Occurs in Binary + Pip installations on Windows #548

@popescu-v

Description

@popescu-v

Description

When khiops is installed in Python virtual environments generated by the official VSCode Python plugin on Windows, we get the following spurious warning, even though Khiops is installed correctly:

"Khiops Python library installation path '...' does not match the current python environment ''."
"Go to https://khiops.org for instructions to re-install it (preferably in a virtual environment).\n"

This is due to the fact that the capitalization of the base directory base_dir sometimes differs from the capitalization of sys.executable, in terms of the drive letter X:\ vs x:\.

Questions/Ideas

  • The solution consists in lower-casing base_dir and sys.executable when comparing them on Windows, because on Windows paths are not case-sensitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions