Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2450

[pymongocrypt] RHEL 6.2 Python 3.4 test fails to install cffi

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • pymongocrypt-1.1
    • Affects Version/s: None
    • Component/s: pymongocrypt
    • Labels:
      None

      pymongocrypt RHEL 6.3 with Python 3.4 started failing starting around Nov 24 (last green build was Nov 19th):

       [2020/12/02 15:40:38.595] + /opt/python/3.4/bin/python3 -c 'import sys; print(sys.version)'
       [2020/12/02 15:40:39.711] running build_ext
       [2020/12/02 15:40:39.711] 3.4.10 (default, Oct  6 2020, 00:42:05)
       [2020/12/02 15:40:39.711] [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]
       [2020/12/02 15:40:42.622] + /opt/python/3.4/bin/python3 setup.py test
       [2020/12/02 15:40:42.622] WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
       [2020/12/02 15:40:44.231] DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
       [2020/12/02 15:40:45.937] DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
       [2020/12/02 15:40:47.840]   ERROR: Complete output from command /opt/python/3.4/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/data/mci/84274436dc3acac456a0d438323d747c/tmp/pip-wheel-uxdfg7e3/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /data/mci/84274436dc3acac456a0d438323d747c/tmp/pip-wheel-r3lev2w4:
       [2020/12/02 15:40:47.840]   ERROR: running bdist_wheel
       [2020/12/02 15:40:47.840]   running build
       [2020/12/02 15:40:47.840]   running build_py
       [2020/12/02 15:40:47.840]   creating build
       [2020/12/02 15:40:47.840]   creating build/lib.linux-x86_64-3.4
       [2020/12/02 15:40:47.840]   creating build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/model.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/commontypes.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/error.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/cparser.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/api.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/lock.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/__init__.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/verifier.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/recompiler.py -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/_embedding.h -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.4/cffi
       [2020/12/02 15:40:47.840]   running build_ext
       [2020/12/02 15:40:47.840]   building '_cffi_backend' extension
       [2020/12/02 15:40:47.840]   creating build/temp.linux-x86_64-3.4
       [2020/12/02 15:40:47.840]   creating build/temp.linux-x86_64-3.4/c
       [2020/12/02 15:40:47.840]   gcc -pthread -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/lib64/libffi-3.0.5/include -I/opt/python/3.4/include/python3.4m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.4/c/_cffi_backend.o
       [2020/12/02 15:40:47.840]   c/_cffi_backend.c: In function 'b_callback':
       [2020/12/02 15:40:47.840]   c/_cffi_backend.c:6344: error: #pragma GCC diagnostic not allowed inside functions
       [2020/12/02 15:40:47.840]   c/_cffi_backend.c:6345: error: #pragma GCC diagnostic not allowed inside functions
       [2020/12/02 15:40:47.840]   c/_cffi_backend.c:6352: error: #pragma GCC diagnostic not allowed inside functions
       [2020/12/02 15:40:47.840]   error: command 'gcc' failed with exit status 1
       [2020/12/02 15:40:47.840]   ----------------------------------------
       [2020/12/02 15:40:48.125]   ERROR: Failed building wheel for cffi
       [2020/12/02 15:40:48.125] ERROR: Failed to build one or more wheels
       [2020/12/02 15:40:48.170] error: Command '['/opt/python/3.4/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/data/mci/84274436dc3acac456a0d438323d747c/tmp/tmpcw6q61re', '--quiet', 'cffi<2,>=1.12.0']' returned non-zero exit status 1
      

      https://evergreen.mongodb.com/task/libmongocrypt_rhel_62_64_bit_test_python_1cbba4f3cc3b099ecb511ec319db1d8b39200df9_20_12_02_15_20_49

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: