You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Zezeng Wang (Jira)" <ji...@apache.org> on 2020/09/19 04:05:00 UTC

[jira] [Resolved] (THRIFT-5249) travis-ci : Failed to run FastbinaryTest.py

     [ https://issues.apache.org/jira/browse/THRIFT-5249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zezeng Wang resolved THRIFT-5249.
---------------------------------
    Fix Version/s: 0.14.0
         Assignee: Zezeng Wang
       Resolution: Fixed

This problem is caused by the failure of GCC 4.8 to automatically recognize the C++11 syntax.

This PR fixes the problem.

> travis-ci : Failed to run FastbinaryTest.py
> -------------------------------------------
>
>                 Key: THRIFT-5249
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5249
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: Zezeng Wang
>            Assignee: Zezeng Wang
>            Priority: Minor
>             Fix For: 0.14.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The machine name is 6839.9 Failed to run FastbinaryTest.py, the error is ‘ImportError: cannot import name fastbinary’.
>  
> such as :
> [https://travis-ci.org/github/apache/thrift/jobs/705106117#L22834]
>  
> Partial error log information:
> make[4]: Leaving directory '/thrift/src/test/py'
>  make check-TESTS
>  make[4]: Entering directory '/thrift/src/test/py'
>  ----------------
>  Executing individual test scripts with various generated code directories
>  Directories to be tested: gen-py-default, gen-py-slots, gen-py-oldstyle, gen-py-no_utf8strings, gen-py-dynamic, gen-py-dynamicslots
>  Scripts to be tested: FastbinaryTest.py, TestFrozen.py, TestRenderedDoubleConstants.py, TSimpleJSONProtocolTest.py, SerializationTest.py, TestEof.py, TestSyntax.py, TestSocket.py
>  ----------------
>  ----------------
>  Testing script: /usr/bin/python /thrift/src/test/py/FastbinaryTest.py
> ----
> Testing TBinaryAccelerated
>  Traceback (most recent call last):
>  File "/thrift/src/test/py/FastbinaryTest.py", line 252, in <module>
>  do_test(TBinaryProtocolAccelerated, TBinaryProtocol)
>  File "/thrift/src/test/py/FastbinaryTest.py", line 218, in do_test
>  Test(fast, slow).do_test()
>  File "/thrift/src/test/py/FastbinaryTest.py", line 171, in do_test
>  self._check_write(HolyMoley())
>  File "/thrift/src/test/py/FastbinaryTest.py", line 130, in _check_write
>  prot_fast = self._fast(trans_fast, fallback=False)
>  File "/thrift/src/lib/py/build/lib.linux-x86_64-2.7/thrift/protocol/TBinaryProtocol.py", line 278, in __init__
>  from thrift.protocol import fastbinary
>  ImportError: cannot import name fastbinary
> FAILED ***
>  LIBDIR: /thrift/src/lib/py/build/lib.linux-x86_64-2.7
>  PY_GEN: gen-py-default
>  SCRIPT: FastbinaryTest.py
>  Traceback (most recent call last):
>  File "./RunClientServer.py", line 323, in <module>
>  sys.exit(main())
>  File "./RunClientServer.py", line 302, in main
>  runScriptTest(options.libdir, options.gen_base, genpydir, script)
>  File "./RunClientServer.py", line 103, in runScriptTest
>  raise Exception("Script subprocess failed, retcode=%d, args: %s" % (ret, ' '.join(script_args)))
>  Exception: Script subprocess failed, retcode=1, args: /usr/bin/python /thrift/src/test/py/FastbinaryTest.py
>  FAIL: RunClientServer.py
>  ==================
>  1 of 1 test failed
>  ==================
> Makefile:538: recipe for target 'check-TESTS' failed
>  make[4]: *** [check-TESTS] Error 1
>  make[4]: Leaving directory '/thrift/src/test/py'
>  Makefile:664: recipe for target 'check-am' failed
>  make[3]: *** [check-am] Error 2
>  make[3]: Leaving directory '/thrift/src/test/py'
>  Makefile:667: recipe for target 'check' failed
>  make[2]: *** [check] Error 2
>  make[2]: Leaving directory '/thrift/src/test/py'
>  Makefile:628: recipe for target 'check-recursive' failed
>  make[1]: *** [check-recursive] Error 1
>  make[1]: Leaving directory '/thrift/src/test'
>  Makefile:679: recipe for target 'check-recursive' failed
>  make: *** [check-recursive] Error 1
>  The command "build/docker/run.sh" exited with 2.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)