Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failed when building wheel #1203

Closed
luvclear opened this issue Jun 11, 2019 · 13 comments
Closed

Test failed when building wheel #1203

luvclear opened this issue Jun 11, 2019 · 13 comments

Comments

@luvclear
Copy link

I met a problem when running ./build.sh --config RelWithDebInfo --build_wheel
result:
3: Models: 35
3: Total test cases: 35
3: Succeeded: 24
3: Not implemented: 0
3: Failed: 11
3: Other reason:11
3: Stats by Operator type:
3: Not implemented(0):
3: Failed:
3: Failed Test Cases:
3/3 Test #3: onnx_test_pytorch_operator ....... Passed 0.33 sec

67% tests passed, 1 tests failed out of 3

Total Test time (real) = 17.44 sec

The following tests FAILED:
1 - onnxruntime_test_all (Failed)
Errors while running CTest
Traceback (most recent call last):
File "/home/onnxruntime/tools/ci_build/build.py", line 863, in
sys.exit(main())
File "/home/onnxruntime/tools/ci_build/build.py", line 820, in main
args.use_tvm, args.use_tensorrt, args.use_ngraph)
File "/home/onnxruntime/tools/ci_build/build.py", line 519, in run_onnxruntime_tests
cwd=cwd, dll_path=dll_path)
File "/home/onnxruntime/tools/ci_build/build.py", line 179, in run_subprocess
return subprocess.run(args, cwd=cwd, check=True, stdout=stdout, stderr=stderr, env=my_env, shell=shell)
File "/usr/lib/python3.5/subprocess.py", line 708, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/local/bin/ctest', '--build-config', 'RelWithDebInfo', '--verbose']' returned non-zero exit status 8

so how can i deal with it?

@faxu faxu added the bug label Jun 11, 2019
@jywu-msft
Copy link
Member

is the test failing consistently or it's an intermittent failure?
to disable running tests when building the wheel, use the following build command

./build.sh --config RelWithDebInfo --build_wheel --update --build

@luvclear
Copy link
Author

is the test failing consistently or it's an intermittent failure?
to disable running tests when building the wheel, use the following build command

./build.sh --config RelWithDebInfo --build_wheel --update --build

the test failed intermittently
i tried to disable the test using that command and build complete
but whether it would work well if i disable the test?

@skottmckay
Copy link
Contributor

It should work.

Which test in onnxruntime_test_all fails and why? You'd have to scroll back up in the test output to find the information.

@luvclear
Copy link
Author

It should work.

Which test in onnxruntime_test_all fails and why? You'd have to scroll back up in the test output to find the information.
[ FAILED ] 1 test, listed below:
1: [ FAILED ] ContribOpTest.StringNormalizerTest
1:
1: 1 FAILED TEST
1/4 Test #1: onnxruntime_test_all .............***Failed 15.28 sec
...
Models: 80
2: Total test cases: 80
2: Succeeded: 57
2: Not implemented: 0
2: Failed: 23
2: Other reason:23
2: Stats by Operator type:
2: Not implemented(0):
2: Failed:
2: Failed Test Cases:
2/4 Test #2: onnx_test_pytorch_converted ...... Passed 0.82 sec

it did not show the reason for the failure

@jywu-msft
Copy link
Member

I believe that test fails due to missing locale on your system.

From the System Requirements section in https://github.com/microsoft/onnxruntime/blob/master/README.md

Certain operators makes use of system locales. At the very least you will need to install English language package and configure en_US.UTF-8 locale.
For Ubuntu install language-pack-en package
Run the following commands:
locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8
Follow similar procedure to configure other locales on other platforms.

@jywu-msft jywu-msft removed the bug label Jun 12, 2019
@luvclear
Copy link
Author

I believe that test fails due to missing locale on your system.

From the System Requirements section in https://github.com/microsoft/onnxruntime/blob/master/README.md

Certain operators makes use of system locales. At the very least you will need to install English language package and configure en_US.UTF-8 locale.
For Ubuntu install language-pack-en package
Run the following commands:
locale-gen en_US.UTF-8
update-locale LANG=en_US.UTF-8
Follow similar procedure to configure other locales on other platforms.

ok i'll try ,thanks

@faxu faxu added the bug label Jun 12, 2019
@faxu
Copy link
Contributor

faxu commented Jun 13, 2019

@luvclear were you able to resolve this?

@pranavsharma
Copy link
Contributor

@luvclear did you try setting the locale as commented before?

@faxu
Copy link
Contributor

faxu commented Jun 20, 2019

Closing the issue. Please reactivate if issue still persists.

@faxu faxu closed this as completed Jun 20, 2019
@MaximumProgrammer
Copy link

Ok i was able to build onnxruntime with the comment like

./build.sh --use_cuda --cudnn_home /usr --cuda_home /usr/local/cuda --use_tensorrt --tensorrt_home /usr/lib/x86_64-linux-gnu/ --update --build

it works with --update --build but without it am getting this kind of error

@code-wangshuyi
Copy link

it works with apt-get install language-pack-en on ubuntu 18.04

@hoangmt
Copy link

hoangmt commented Apr 15, 2021

it works with apt-get install language-pack-en on ubuntu 18.04

It works like a charm. I install it inside a docker container.

@vinnfeng
Copy link

它适用于 apt-get install language-pack-en 在 ubuntu 18.04

亲测有效,大家可以试试

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

No branches or pull requests

9 participants