Skip to content

fix StringNormalizer test failures for onnxruntime backend #19

Merged
prasanthpul merged 1 commit intoonnx:masterfrom
jywu-msft:jywu_ort_strnormalizer
Apr 13, 2020
Merged

fix StringNormalizer test failures for onnxruntime backend #19
prasanthpul merged 1 commit intoonnx:masterfrom
jywu-msft:jywu_ort_strnormalizer

Conversation

@jywu-msft
Copy link
Contributor

There are 12 test failures for onnxruntime backend related to StringNormalizer.
The errors show
E onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: /onnxruntime_src/onnxruntime/core/pro
viders/cpu/nn/string_normalizer.cc:87 onnxruntime::string_normalizer::Locale::Locale(const string&) Failed to construct locale with name:en_US.UTF-8:locale::facet::_S_create_c_locale na
me not valid:Please, install necessary language-pack-XX and configure locales

The root cause is the docker image doesn't install and configure locales per onnxruntime README.md

This PR adds the necessary locales installation and configuration. The previously failing tests pass after applying this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants