KhiopsML / khiops-python

The Python library of the Khiops AutoML suite
https://khiops.org
BSD 3-Clause Clear License
8 stars 1 forks source link

Install conda in the `khiopspydev` docker image of all supported python versions #162

Closed tramora closed 2 months ago

tramora commented 3 months ago
tramora commented 3 months ago

For some obscure reason on a container created by github action, the command

Run python setup.py egg_info

finds the bogus string "python" as a version.

/usr/lib/python3/dist-packages/setuptools/dist.py:507: UserWarning: The version specified ('python') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.

Under miniconda3 it is not just a warning but an exception that makes the command exit.

This strange behaviour does not show when testing exactly the same docker image locally !

tramora commented 3 months ago

Thank you for your first feedback @popescu-v

popescu-v commented 3 months ago

For some obscure reason on a container created by github action, the command

Run python setup.py egg_info

finds the bogus string "python" as a version.

/usr/lib/python3/dist-packages/setuptools/dist.py:507: UserWarning: The version specified ('python') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.

Under miniconda3 it is not just a warning but an exception that makes the command exit.

This strange behaviour does not show when testing exactly the same docker image locally !

This has now been fixed, by setting the GitHub repo as safe (as it is not situated in a directory that the current user owns).