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

Conflict between crosstest requirements and environment checks during build (Python 3.3 or later is required for proper operation)

    XMLWordPrintableJSON

Details

    Description

      The crosstest keeps complaining

      /usr/bin/python test/test.py --retry-count 5 --features .* --skip-known-failures --server cpp,c_glib,cl,d,java,csharp,py,,rb,hs,perl,php,go,nodejs,dart,erl,lua,rs,netstd,nodets
      Traceback (most recent call last):
        File "test/test.py", line 45, in <module>
          assert (cur_version >= req_version), "Python 3.3 or later is required for proper operation."
      AssertionError: Python 3.3 or later is required for proper operation.
      Makefile:1129: recipe for target 'crossfeature' failed
      make: *** [crossfeature] Error 1
      

      but configure says Python can be used:

      checking for a Python interpreter with version >= 2.6... python
      checking for python... /usr/bin/python
      checking for python version... 2.7
      checking for python platform... linux2
      checking for python script directory... ${prefix}/lib/python2.7/dist-packages
      checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
      ...
      Building Python Library ...... : yes
      Building Py3 Library ......... : no
      ...
      Python Library:
         Using Python .............. : /usr/bin/python
         Using Python version ...... : Python 2.7.17
         Using trial ............... : /usr/bin/trial
      

      So obviously one piece of code is incorrect and needs to be fixed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jensg Jens Geyer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: