Project

General

Profile

Bug #45132

Can not create teuthology venv with the bootstrap script and python 3.8

Added by Thomas Bechtold over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

I think we need to update cffi to a version that works with python 3.8 (cffi >= 1.12.3 might work according to https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-12-3 , but using the latest one would be better I guess)

$ python3 --version
Python 3.8.2

$ ./bootstrap
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/tom/devel/ceph/teuthology/virtualenv/bin/python3
Also creating executable in /home/tom/devel/ceph/teuthology/virtualenv/bin/python
Installing setuptools, pip, wheel...
^[=done.
Requirement already up-to-date: pip in ./virtualenv/lib/python3.8/site-packages (20.0.2)
Requirement already up-to-date: setuptools in ./virtualenv/lib/python3.8/site-packages (46.1.3)
Processing /home/tom/.cache/pip/wheels/bf/b6/f3/86d4230115288ba8bce9518b35f673b34e86cea56215814c1e/ansible-2.8.2-py3-none-any.whl
Collecting apache-libcloud==2.8.0
Using cached apache_libcloud-2.8.0-py2.py3-none-any.whl (3.3 MB)
Collecting appdirs==1.4.3
Using cached appdirs-1.4.3-py2.py3-none-any.whl (12 kB)
Collecting argparse==1.4.0
Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting atomicwrites==1.1.5
Using cached atomicwrites-1.1.5-py2.py3-none-any.whl (7.5 kB)
Collecting attrs==18.1.0
Using cached attrs-18.1.0-py2.py3-none-any.whl (28 kB)
Collecting babel==2.4.0
Using cached Babel-2.4.0-py2.py3-none-any.whl (6.8 MB)
Processing /home/tom/.cache/pip/wheels/1c/0e/e0/c0e93389ef42fb5d3dbcf3aeb5f69b714d62476b1d33e6e15a/backports.ssl_match_hostname-3.5.0.1-py3-none-any.whl
Collecting bcrypt==3.1.6
Using cached bcrypt-3.1.6-cp34-abi3-manylinux1_x86_64.whl (55 kB)
Processing /home/tom/.cache/pip/wheels/08/00/02/3a37eb5b0b5e05c33db2f7d0df78b95f7821dabb1d07f8a508/beanstalkc3-0.4.0-cp38-none-any.whl
Collecting boto3==1.9.161
Using cached boto3-1.9.161-py2.py3-none-any.whl (128 kB)
Collecting boto==2.46.1
Using cached boto-2.46.1-py2.py3-none-any.whl (1.4 MB)
Collecting botocore==1.12.161
Using cached botocore-1.12.161-py2.py3-none-any.whl (5.5 MB)
Collecting certifi==2019.3.9
Using cached certifi-2019.3.9-py2.py3-none-any.whl (158 kB)
Collecting cffi==1.10.0
Using cached cffi-1.10.0.tar.gz (418 kB)
Collecting chardet==3.0.4
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting click==6.7
Using cached click-6.7-py2.py3-none-any.whl (71 kB)
Processing /home/tom/.cache/pip/wheels/c9/24/63/2640c3a1c52d78fed94a5e7bc0555abf9e12ca20407f892786/cliff-2.5.0-py3-none-any.whl
Processing /home/tom/.cache/pip/wheels/b5/c9/6d/83e15bee9fa092e81821a2ce98663631b9d6f7bf14b41d2f4a/cmd2-0.7.0-py3-none-any.whl
Processing /home/tom/.cache/pip/wheels/f1/e4/16/4981ca97c2d65106b49861e0b35e2660695be7219a2d351ee0/configobj-5.0.6-cp38-none-any.whl
Processing /home/tom/.cache/pip/wheels/5d/e3/bb/8b1c37164107de95ec6b43136ffe01685b8d32dfb0440760ef/configparser-3.5.0-py3-none-any.whl
Collecting contextlib2==0.5.4
Using cached contextlib2-0.5.4-py2.py3-none-any.whl (8.1 kB)
Collecting cryptography==2.8
Using cached cryptography-2.8-cp34-abi3-manylinux2010_x86_64.whl (2.3 MB)
Collecting debtcollector==1.13.0
Using cached debtcollector-1.13.0-py2.py3-none-any.whl (20 kB)
Collecting deprecation==1.0
Using cached deprecation-1.0-py3-none-any.whl (8.3 kB)
Processing /home/tom/.cache/pip/wheels/9b/04/dd/7daf4150b6d9b12949298737de9431a324d4b797ffd63f526e/docopt-0.6.2-py2.py3-none-any.whl
Collecting docutils==0.14
Using cached docutils-0.14-py3-none-any.whl (543 kB)
Processing /home/tom/.cache/pip/wheels/35/a6/a0/c8441dbd28276aaff148c417279dee46f84936ba108cf32208/gevent-1.4.0-cp38-cp38-linux_x86_64.whl
Collecting greenlet==0.4.15
Using cached greenlet-0.4.15-cp38-cp38-manylinux1_x86_64.whl (45 kB)
Processing /home/tom/.cache/pip/wheels/74/88/1d/7b9a03f7e3d61e3b07496cf380dc560dd56fc979e35e5a86c6/httplib2-0.10.3-py3-none-any.whl
Collecting humanfriendly==8.1
Using cached humanfriendly-8.1-py2.py3-none-any.whl (83 kB)
Collecting idna==2.5
Using cached idna-2.5-py2.py3-none-any.whl (55 kB)
Processing /home/tom/.cache/pip/wheels/c0/d4/6b/a2f002ae5039ff6698980ffa0fe0a0ede66765bea8add246f7/IPy-1.0-py3-none-any.whl
Collecting iso8601==0.1.11
Using cached iso8601-0.1.11-py2.py3-none-any.whl (11 kB)
Collecting jinja2==2.10.1
Using cached Jinja2-2.10.1-py2.py3-none-any.whl (124 kB)
Collecting jmespath==0.9.4
Using cached jmespath-0.9.4-py2.py3-none-any.whl (24 kB)
Collecting jsonpatch==1.15
Using cached jsonpatch-1.15-py2.py3-none-any.whl (12 kB)
Processing /home/tom/.cache/pip/wheels/18/c0/2b/2f710af421825173eaeb0e8c571dd8baf65d78a75401edaf49/jsonpointer-1.10-py3-none-any.whl
Collecting jsonschema==2.6.0
Using cached jsonschema-2.6.0-py2.py3-none-any.whl (39 kB)
Collecting keystoneauth1==2.19.0
Using cached keystoneauth1-2.19.0-py2.py3-none-any.whl (244 kB)
Collecting manhole==1.3.0
Using cached manhole-1.3.0-py2.py3-none-any.whl (21 kB)
Collecting markupsafe==1.1.1
Using cached MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl (32 kB)
Collecting monotonic==1.3
Using cached monotonic-1.3-py2.py3-none-any.whl (5.5 kB)
Collecting more-itertools==4.3.0
Using cached more_itertools-4.3.0-py3-none-any.whl (48 kB)
Processing /home/tom/.cache/pip/wheels/c1/9e/22/43019ba027651b43f620d56f640630c1a4979ca46b31334e56/msgpack_python-0.4.8-cp38-cp38-linux_x86_64.whl
Processing /home/tom/.cache/pip/wheels/58/e3/5d/a4b53302f15a216ad97cdf816870ca1062f4acee2e5d060849/mysqlclient-1.4.2-cp38-cp38-linux_x86_64.whl
Processing /home/tom/.cache/pip/wheels/fd/0d/62/7d5953e6c1a1ee05998dfa8385eaae453efcfd4814d546f792/ndg_httpsclient-0.4.2-py3-none-any.whl
Collecting netaddr==0.7.19
Using cached netaddr-0.7.19-py2.py3-none-any.whl (1.6 MB)
Processing /home/tom/.cache/pip/wheels/39/c7/7b/bdee0a17e2f3b31f142a59e5babbdd8baa330614a652fa71f6/netifaces-0.10.5-cp38-cp38-linux_x86_64.whl
Collecting nose==1.3.7
Using cached nose-1.3.7-py3-none-any.whl (154 kB)
Collecting openstacksdk==0.9.15
Using cached openstacksdk-0.9.15-py2.py3-none-any.whl (602 kB)
Collecting os-client-config==1.26.0
Using cached os_client_config-1.26.0-py2.py3-none-any.whl (60 kB)
Processing /home/tom/.cache/pip/wheels/05/02/3f/aaf7264655e7c72daf6f1548302430d49ad5430df2868864a0/osc_lib-1.3.0-py3-none-any.whl
Collecting oslo.config==3.24.0
Using cached oslo.config-3.24.0-py2.py3-none-any.whl (103 kB)
Collecting oslo.i18n==3.15.0
Using cached oslo.i18n-3.15.0-py2.py3-none-any.whl (42 kB)
Collecting oslo.serialization==2.18.0
Using cached oslo.serialization-2.18.0-py2.py3-none-any.whl (21 kB)
Collecting oslo.utils==3.25.0
Using cached oslo.utils-3.25.0-py2.py3-none-any.whl (97 kB)
Collecting paramiko==2.7.1
Using cached paramiko-2.7.1-py2.py3-none-any.whl (206 kB)
Collecting pbr==2.0.0
Using cached pbr-2.0.0-py2.py3-none-any.whl (98 kB)
Collecting pexpect==4.7.0
Using cached pexpect-4.7.0-py2.py3-none-any.whl (58 kB)
Collecting pip-tools==4.3.0
Using cached pip_tools-4.3.0-py2.py3-none-any.whl (40 kB)
Collecting pluggy==0.7.1
Using cached pluggy-0.7.1-py2.py3-none-any.whl (14 kB)
Processing /home/tom/.cache/pip/wheels/aa/63/90/2ba7bb229473d1ee98bcedd6b86132290b42df9a59faa21576/positional-1.1.1-py2.py3-none-any.whl
Processing /home/tom/.cache/pip/wheels/80/34/1c/3967380d9676d162cb59513bd9dc862d0584e045a162095606/prettytable-0.7.2-cp38-none-any.whl
Processing /home/tom/.cache/pip/wheels/42/f1/50/c817079d6ab587d06e826b44c7b2ee2c974295af0735382abe/psutil-5.2.2-cp38-cp38-linux_x86_64.whl
Collecting ptyprocess==0.5.1
Using cached ptyprocess-0.5.1-py2.py3-none-any.whl (12 kB)
Collecting py==1.5.3
Using cached py-1.5.3-py2.py3-none-any.whl (84 kB)
Collecting pyasn1==0.2.3
Using cached pyasn1-0.2.3-py2.py3-none-any.whl (53 kB)
Processing /home/tom/.cache/pip/wheels/3f/a9/a7/44a27bb67d962845df8df4ac988e1f369184e307392ce37c5b/pycparser-2.17-py2.py3-none-any.whl
Collecting pyjwt==1.7.1
Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting pynacl==1.3.0
Using cached PyNaCl-1.3.0-cp34-abi3-manylinux1_x86_64.whl (759 kB)
Collecting pyopenssl==19.0.0
Using cached pyOpenSSL-19.0.0-py2.py3-none-any.whl (53 kB)
Collecting pyparsing==2.2.0
Using cached pyparsing-2.2.0-py2.py3-none-any.whl (56 kB)
Collecting pytest==3.7.1
Using cached pytest-3.7.1-py2.py3-none-any.whl (202 kB)
Collecting python-cinderclient==2.0.1
Using cached python_cinderclient-2.0.1-py2.py3-none-any.whl (298 kB)
Collecting python-dateutil==2.6.0
Using cached python_dateutil-2.6.0-py2.py3-none-any.whl (194 kB)
Collecting python-glanceclient==2.6.0
Using cached python_glanceclient-2.6.0-py2.py3-none-any.whl (175 kB)
Collecting python-keystoneclient==3.10.0
Using cached python_keystoneclient-3.10.0-py2.py3-none-any.whl (369 kB)
Collecting python-neutronclient==6.2.0
Using cached python_neutronclient-6.2.0-py2.py3-none-any.whl (337 kB)
Collecting python-novaclient==8.0.0
Using cached python_novaclient-8.0.0-py2.py3-none-any.whl (297 kB)
Collecting python-openstackclient==3.9.0
Using cached python_openstackclient-3.9.0-py2.py3-none-any.whl (705 kB)
Collecting pytz==2017.2
Using cached pytz-2017.2-py2.py3-none-any.whl (484 kB)
Processing /home/tom/.cache/pip/wheels/55/40/9f/027c3d94280ce2b7c2c107cb563a433e6572f830a5462231ae/PyYAML-5.1.2-cp38-cp38-linux_x86_64.whl
Collecting raven==6.0.0
Using cached raven-6.0.0-py2.py3-none-any.whl (279 kB)
Collecting requests==2.22.0
Using cached requests-2.22.0-py2.py3-none-any.whl (57 kB)
Collecting requestsexceptions==1.2.0
Using cached requestsexceptions-1.2.0-py2.py3-none-any.whl (3.8 kB)
Collecting rfc3986==0.4.1
Using cached rfc3986-0.4.1-py2.py3-none-any.whl (21 kB)
Collecting s3transfer==0.2.1
Using cached s3transfer-0.2.1-py2.py3-none-any.whl (70 kB)
Processing /home/tom/.cache/pip/wheels/02/de/cd/23f9cfa4983d67ae77aa15b3582f1e29141c4727dc8d5466b1/simplejson-3.10.0-cp38-cp38-linux_x86_64.whl
Collecting six==1.14.0
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting stevedore==1.21.0
Using cached stevedore-1.21.0-py2.py3-none-any.whl (39 kB)
Collecting tox==3.0.0
Using cached tox-3.0.0-py2.py3-none-any.whl (60 kB)
Collecting urllib3==1.25.3
Using cached urllib3-1.25.3-py2.py3-none-any.whl (150 kB)
Collecting virtualenv==15.1.0
Using cached virtualenv-15.1.0-py2.py3-none-any.whl (1.8 MB)
Processing /home/tom/.cache/pip/wheels/c3/f9/de/35798f6c2d6f48a47d5056173dbd40f6807bc577aa84481f5a/warlock-1.2.0-py2.py3-none-any.whl
Processing /home/tom/.cache/pip/wheels/fa/48/72/f8ec78bfe6198a6b80dc1e5e41dbd6a558d1f124452ee56c16/wrapt-1.10.10-cp38-cp38-linux_x86_64.whl
Collecting xmltodict==0.12.0
Using cached xmltodict-0.12.0-py2.py3-none-any.whl (9.2 kB)
Requirement already satisfied, skipping upgrade: setuptools in ./virtualenv/lib/python3.8/site-packages (from pytest==3.7.1->-r requirements3.txt (line 80)) (46.1.3)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/tom/devel/ceph/teuthology/virtualenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv0 = '"'"'/tmp/pip-install-eunus1yi/cffi/setup.py'"'"'; file__='"'"'/tmp/pip-install-eunus1yi/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 /tmp/pip-wheel-1kfb23pd
cwd: /tmp/pip-install-eunus1yi/cffi/
Complete output (131 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/
_init__.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/c
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -DOPENSSL_LOAD_CONF -fwrapv -fno-semantic-interposition -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o
In file included from c/_cffi_backend.c:280:
c/minibuffer.h: In function 'mb_ass_slice':
c/minibuffer.h:66:5: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
66 | if (PyObject_AsReadBuffer(other, &buffer, &buffer_len) < 0) | ^~
In file included from /usr/include/python3.8/Python.h:147,
from c/_cffi_backend.c:2:
/usr/include/python3.8/abstract.h:337:17: note: declared here
337 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, | ^~~~~~~~~~~~~~~~~~~
In file included from c/_cffi_backend.c:283:
c/file_emulator.h: In function 'PyFile_AsFile':
c/file_emulator.h:54:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
54 | mode = PyText_AsUTF8(ob_mode); | ^
c/_cffi_backend.c: In function '_cdata_attr_errmsg':
c/_cffi_backend.c:2514:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
2514 | text = PyText_AsUTF8(attr); | ^
c/_cffi_backend.c: In function 'b_complete_struct_or_union':
c/_cffi_backend.c:4482:17: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
4482 | do_align = PyText_GetSize(fname) > 0; | ^~~~~~
In file included from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
/usr/include/python3.8/unicodeobject.h:177:43: note: declared here
177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~
c/_cffi_backend.c:4520:13: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
4520 | if (PyText_GetSize(fname) == 0 && | ^~
In file included from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
/usr/include/python3.8/unicodeobject.h:177:43: note: declared here
177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~
c/_cffi_backend.c:4592:17: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
4592 | if (PyText_GetSize(fname) > 0) { | ^~
In file included from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
/usr/include/python3.8/unicodeobject.h:177:43: note: declared here
177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~
c/_cffi_backend.c: In function 'b_callback':
c/_cffi_backend.c:5523:5: warning: 'ffi_prep_closure' is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
5523 | if (ffi_prep_closure(closure, &cif_descr->cif, | ^~
In file included from c/_cffi_backend.c:15:
/usr/include/ffi.h:342:1: note: declared here
342 | ffi_prep_closure (ffi_closure*, | ^~~~~~~~~~~~~~
In file included from /usr/include/python3.8/unicodeobject.h:1037,
from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
c/ffi_obj.c: In function '_ffi_type':
/usr/include/python3.8/cpython/unicodeobject.h:785:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | #define _PyUnicode_AsString PyUnicode_AsUTF8 | ^~~~~~~~~~~~~~
c/_cffi_backend.c:72:25: note: in expansion of macro '_PyUnicode_AsString'
72 | # define PyText_AS_UTF8 _PyUnicode_AsString | ^~~~~~~~~~~~~~~~~
c/ffi_obj.c:191:32: note: in expansion of macro 'PyText_AS_UTF8'
191 | char *input_text = PyText_AS_UTF8(arg); | ^~~~~~~~~~~~
c/lib_obj.c: In function 'lib_build_cpython_func':
/usr/include/python3.8/cpython/unicodeobject.h:785:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | #define _PyUnicode_AsString PyUnicode_AsUTF8 | ^~~~~~~~~~~~~~
c/_cffi_backend.c:72:25: note: in expansion of macro '_PyUnicode_AsString'
72 | # define PyText_AS_UTF8 _PyUnicode_AsString | ^~~~~~~~~~~~~~~~~
c/lib_obj.c:129:21: note: in expansion of macro 'PyText_AS_UTF8'
129 | char *libname = PyText_AS_UTF8(lib->l_libname); | ^~~~~~~~~~~~
c/lib_obj.c: In function 'lib_build_and_cache_attr':
/usr/include/python3.8/cpython/unicodeobject.h:785:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | #define _PyUnicode_AsString PyUnicode_AsUTF8 | ^~~~~~~~~~~~~~
c/_cffi_backend.c:71:24: note: in expansion of macro '_PyUnicode_AsString'
71 | # define PyText_AsUTF8 _PyUnicode_AsString /* PyUnicode_AsUTF8 in Py3.3 */ | ^~~~~~~~~~~~~~~~~
c/lib_obj.c:208:15: note: in expansion of macro 'PyText_AsUTF8'
208 | char *s = PyText_AsUTF8(name); | ^~~~~~~~~~~
In file included from c/cffi1_module.c:16,
from c/_cffi_backend.c:6896:
c/lib_obj.c: In function 'lib_getattr':
c/lib_obj.c:506:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
506 | p = PyText_AsUTF8(name); | ^
In file included from c/cffi1_module.c:19,
from c/_cffi_backend.c:6896:
c/call_python.c: In function '_get_interpstate_dict':
c/call_python.c:20:30: error: dereferencing pointer to incomplete type 'PyInterpreterState' {aka 'struct _is'}
20 | builtins = tstate->interp->builtins; | ^~
c/call_python.c: In function '_ffi_def_extern_decorator':
c/call_python.c:73:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
73 | s = PyText_AsUTF8(name); | ^
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: pyyaml, pycparser, cffi, six, cryptography, markupsafe, jinja2, ansible, certifi, chardet, idna, urllib3, requests, apache-libcloud, appdirs, argparse, atomicwrites, attrs, pytz, babel, backports.ssl-match-hostname, bcrypt, beanstalkc3, jmespath, docutils, python-dateutil, botocore, s3transfer, boto3, boto, click, pbr, stevedore, pyparsing, cmd2, prettytable, cliff, configobj, configparser, contextlib2, wrapt, debtcollector, deprecation, docopt, greenlet, gevent, httplib2, humanfriendly, ipy, iso8601, jsonpointer, jsonpatch, jsonschema, positional, keystoneauth1, manhole, monotonic, more-itertools, msgpack-python, mysqlclient, pyopenssl, ndg-httpsclient, netaddr, netifaces, nose, requestsexceptions, os-client-config, openstacksdk, simplejson, oslo.i18n, oslo.utils, osc-lib, rfc3986, oslo.config, oslo.serialization, pynacl, paramiko, ptyprocess, pexpect, pip-tools, pluggy, psutil, py, pyasn1, pyjwt, pytest, python-cinderclient, warlock, python-glanceclient, python-keystoneclient, python-neutronclient, python-novaclient, python-openstackclient, raven, virtualenv, tox, xmltodict
Running setup.py install for cffi ... error
ERROR: Command errored out with exit status 1:
command: /home/tom/devel/ceph/teuthology/virtualenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv0 = '"'"'/tmp/pip-install-eunus1yi/cffi/setup.py'"'"'; file__='"'"'/tmp/pip-install-eunus1yi/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(_file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-lew1kbtc/install-record.txt --single-version-externally-managed --compile --install-headers /home/tom/devel/ceph/teuthology/virtualenv/include/site/python3.8/cffi
cwd: /tmp/pip-install-eunus1yi/cffi/
Complete output (131 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/
_init__.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/c
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -DOPENSSL_LOAD_CONF -fwrapv -fno-semantic-interposition -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o
In file included from c/_cffi_backend.c:280:
c/minibuffer.h: In function 'mb_ass_slice':
c/minibuffer.h:66:5: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
66 | if (PyObject_AsReadBuffer(other, &buffer, &buffer_len) < 0) | ^~
In file included from /usr/include/python3.8/Python.h:147,
from c/_cffi_backend.c:2:
/usr/include/python3.8/abstract.h:337:17: note: declared here
337 | PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, | ^~~~~~~~~~~~~~~~~~~
In file included from c/_cffi_backend.c:283:
c/file_emulator.h: In function 'PyFile_AsFile':
c/file_emulator.h:54:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
54 | mode = PyText_AsUTF8(ob_mode); | ^
c/_cffi_backend.c: In function '_cdata_attr_errmsg':
c/_cffi_backend.c:2514:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
2514 | text = PyText_AsUTF8(attr); | ^
c/_cffi_backend.c: In function 'b_complete_struct_or_union':
c/_cffi_backend.c:4482:17: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
4482 | do_align = PyText_GetSize(fname) > 0; | ^~~~~~
In file included from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
/usr/include/python3.8/unicodeobject.h:177:43: note: declared here
177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~
c/_cffi_backend.c:4520:13: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
4520 | if (PyText_GetSize(fname) == 0 && | ^~
In file included from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
/usr/include/python3.8/unicodeobject.h:177:43: note: declared here
177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~
c/_cffi_backend.c:4592:17: warning: 'PyUnicode_GetSize' is deprecated [-Wdeprecated-declarations]
4592 | if (PyText_GetSize(fname) > 0) { | ^~
In file included from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
/usr/include/python3.8/unicodeobject.h:177:43: note: declared here
177 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( | ^~~~~~~~~~~~~~~
c/_cffi_backend.c: In function 'b_callback':
c/_cffi_backend.c:5523:5: warning: 'ffi_prep_closure' is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
5523 | if (ffi_prep_closure(closure, &cif_descr->cif, | ^~
In file included from c/_cffi_backend.c:15:
/usr/include/ffi.h:342:1: note: declared here
342 | ffi_prep_closure (ffi_closure*, | ^~~~~~~~~~~~~~
In file included from /usr/include/python3.8/unicodeobject.h:1037,
from /usr/include/python3.8/Python.h:97,
from c/_cffi_backend.c:2:
c/ffi_obj.c: In function '_ffi_type':
/usr/include/python3.8/cpython/unicodeobject.h:785:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | #define _PyUnicode_AsString PyUnicode_AsUTF8 | ^~~~~~~~~~~~~~
c/_cffi_backend.c:72:25: note: in expansion of macro '_PyUnicode_AsString'
72 | # define PyText_AS_UTF8 _PyUnicode_AsString | ^~~~~~~~~~~~~~~~~
c/ffi_obj.c:191:32: note: in expansion of macro 'PyText_AS_UTF8'
191 | char *input_text = PyText_AS_UTF8(arg); | ^~~~~~~~~~~~
c/lib_obj.c: In function 'lib_build_cpython_func':
/usr/include/python3.8/cpython/unicodeobject.h:785:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | #define _PyUnicode_AsString PyUnicode_AsUTF8 | ^~~~~~~~~~~~~~
c/_cffi_backend.c:72:25: note: in expansion of macro '_PyUnicode_AsString'
72 | # define PyText_AS_UTF8 _PyUnicode_AsString | ^~~~~~~~~~~~~~~~~
c/lib_obj.c:129:21: note: in expansion of macro 'PyText_AS_UTF8'
129 | char *libname = PyText_AS_UTF8(lib->l_libname); | ^~~~~~~~~~~~
c/lib_obj.c: In function 'lib_build_and_cache_attr':
/usr/include/python3.8/cpython/unicodeobject.h:785:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | #define _PyUnicode_AsString PyUnicode_AsUTF8 | ^~~~~~~~~~~~~~
c/_cffi_backend.c:71:24: note: in expansion of macro '_PyUnicode_AsString'
71 | # define PyText_AsUTF8 _PyUnicode_AsString /* PyUnicode_AsUTF8 in Py3.3 */ | ^~~~~~~~~~~~~~~~~
c/lib_obj.c:208:15: note: in expansion of macro 'PyText_AsUTF8'
208 | char *s = PyText_AsUTF8(name); | ^~~~~~~~~~~
In file included from c/cffi1_module.c:16,
from c/_cffi_backend.c:6896:
c/lib_obj.c: In function 'lib_getattr':
c/lib_obj.c:506:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
506 | p = PyText_AsUTF8(name); | ^
In file included from c/cffi1_module.c:19,
from c/_cffi_backend.c:6896:
c/call_python.c: In function '_get_interpstate_dict':
c/call_python.c:20:30: error: dereferencing pointer to incomplete type 'PyInterpreterState' {aka 'struct _is'}
20 | builtins = tstate->interp->builtins; | ^~
c/call_python.c: In function '_ffi_def_extern_decorator':
c/call_python.c:73:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
73 | s = PyText_AsUTF8(name); | ^
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/tom/devel/ceph/teuthology/virtualenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv0 = '"'"'/tmp/pip-install-eunus1yi/cffi/setup.py'"'"'; file__='"'"'/tmp/pip-install-eunus1yi/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-lew1kbtc/install-record.txt --single-version-externally-managed --compile --install-headers /home/tom/devel/ceph/teuthology/virtualenv/include/site/python3.8/cffi Check the logs for full command output.

History

#1 Updated by Thomas Bechtold over 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Thomas Bechtold

#2 Updated by Thomas Bechtold over 1 year ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF