Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5249

travis-ci : Failed to run FastbinaryTest.py

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • Build Process
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              zeshuai007 Zezeng Wang
              zeshuai007 Zezeng Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h