Skip to content

2025.4 Dockerfile.redhat fails when RUN_TESTS=1 #3844

@RH-steve-grubb

Description

@RH-steve-grubb

When the RUN_TESTS is set to 1, the build fails because the default python is 3.9 and the tokenizer's tests require python >= 3.10. (Tokenizer Commit e469d9b).

Preparing metadata (pyproject.toml): finished with status 'done'
ERROR: Package 'openvino-tokenizers' requires a different Python: 3.9.23 not in '>=3.10'
Error: building at STEP "RUN if [ "$RUN_TESTS" == "1" ] ; then mkdir -p demos/common/export_models/ && mv export_model.py demos/common/export_models/ && ./prepare_llm_models.sh /ovms/src/test/llm_testing docker && ./run_unit_tests.sh ; fi": while running runtime: exit status 1

UBI 9 has both python 3.11 and python 3.12 in addition to the default 3.9. I'd suggest standardizing on python 3.12 for UBI 9. However, that likely means creating a virtual environment to isolate it from the OS python 3.9. Or maybe the tokenizer deprecation of 3.9 was too soon? If tokenizer is OK with going back to 3.9, we can revisit this when we upgrade to UBI 10.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions