Skip to content

Invalid version checks #436

@MathieuCoupe

Description

@MathieuCoupe

Description

In the 10.3.2.0 version

When using the option use_complement_as_test = False, train_predictor() raise an exception linked to a version check

self = 10, msg = 'Version must have the format MAJOR.MINOR.PATCH[-PRE_RELEASE]'
version_str = '10'

    def _raise_init_error(self, msg, version_str):
>       raise ValueError(f"{msg}. Version string: '{version_str}'.")
E       ValueError: Version must have the format MAJOR.MINOR.PATCH[-PRE_RELEASE]. Version string: '10'.

The version check uses an invalid version string:

if get_khiops_version() < KhiopsVersion("10"):

should be at least KhiopsVersion("10.0.0")

see also:

latest_intro_version = KhiopsVersion("1.0")

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions