[zope] Zope 5.5.2 and python 3.10.4 installation "caos"

Giampiero Benvenuti giampiero.benvenuti at chiaroscuro.com
Tue Aug 30 09:00:26 GMT 2022


Hi Jens,

thanks so much for your tips.

I did $ sudo apt-get install libffi-dev and I was able to install and 
create a zope5.5.5 instance.
Now I can see the "ffi.h" file here: /usr/include/x86_64-linux-gnu/ffi.h
Still I got lots of warnings as you can see in the attached file.

Do I need to worry about them?

Thanks a lot, I really appreciate your help.

Giampiero

On 24/08/22 17:39, Jens Vagelpohl via Zope wrote:
> You‘re missing some of the required system libraries, „libffi“ and the development header file „ffi.h“ are not on your system.
>
> jens
>
>
-------------- next part --------------

giampiero at mini-mint:~/zope552p310$ bin/buildout 
Creating directory '/home/giampiero/zope552p310/eggs'.
Creating directory '/home/giampiero/zope552p310/parts'.
Creating directory '/home/giampiero/zope552p310/develop-eggs'.
Getting distribution for 'zc.recipe.egg>=2.0.6'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
Got zc.recipe.egg 2.0.7.
Installing zopescripts.
Getting distribution for 'Zope==5.5.2'.
Got Zope 5.5.2.
Getting distribution for 'Paste==3.5.0'.
Got Paste 3.5.0.
Getting distribution for 'six==1.16.0'.
Got six 1.16.0.
Getting distribution for 'zope.viewlet==4.3'.
Got zope.viewlet 4.3.
Getting distribution for 'zope.traversing==4.4.1'.
Got zope.traversing 4.4.1.
Getting distribution for 'zope.testing==4.10'.
Got zope.testing 4.10.
Getting distribution for 'zope.testbrowser==5.6.1'.
Got zope.testbrowser 5.6.1.
Getting distribution for 'zope.tales==5.1'.
Got zope.tales 5.1.
Getting distribution for 'zope.tal==4.5'.
Got zope.tal 4.5.
Getting distribution for 'zope.size==4.3'.
Got zope.size 4.3.
Getting distribution for 'zope.site==4.5.0'.
Got zope.site 4.5.0.
Getting distribution for 'zope.sequencesort==4.2'.
Got zope.sequencesort 4.2.
Getting distribution for 'zope.security==5.2'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching '*.txt' under directory 'docs'
Got zope.security 5.2.
Getting distribution for 'zope.schema==6.2.0'.
Got zope.schema 6.2.0.
Getting distribution for 'zope.publisher==6.1.0'.
Got zope.publisher 6.1.0.
Getting distribution for 'zope.ptresource==4.3.0'.
Got zope.ptresource 4.3.0.
Getting distribution for 'zope.proxy==4.5.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching '*.txt' under directory 'docs'
src/zope/proxy/_zope_proxy_proxy.c: In function ‘wrap_call’:
src/zope/proxy/_zope_proxy_proxy.c:381:9: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
  381 |         return PyEval_CallObjectWithKeywords(Proxy_GET_OBJECT(self),
      |         ^~~~~~
In file included from /usr/include/python3.10/Python.h:130,
                 from src/zope/proxy/_zope_proxy_proxy.c:27:
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Got zope.proxy 4.5.0.
Getting distribution for 'zope.processlifetime==2.3.0'.
Got zope.processlifetime 2.3.0.
Getting distribution for 'zope.pagetemplate==4.6.0'.
Got zope.pagetemplate 4.6.0.
Getting distribution for 'zope.location==4.2'.
Got zope.location 4.2.
Getting distribution for 'zope.lifecycleevent==4.3.0'.
Got zope.lifecycleevent 4.3.
Getting distribution for 'zope.interface==5.4.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching 'coverage.xml' found anywhere in distribution
warning: no previously-included files matching 'appveyor.yml' found anywhere in distribution
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'benchmarks'
Got zope.interface 5.4.0.
Getting distribution for 'zope.i18nmessageid==5.0.1'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching '*.zcml' under directory 'src'
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Got zope.i18nmessageid 5.0.1.
Getting distribution for 'zope.i18n[zcml]==4.9.0'.
Got zope.i18n 4.9.0.
Getting distribution for 'zope.globalrequest==1.5'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching '*.txt'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got zope.globalrequest 1.5.
Getting distribution for 'zope.exceptions==4.5'.
Got zope.exceptions 4.5.
Getting distribution for 'zope.event==4.5.0'.
Got zope.event 4.5.0.
Getting distribution for 'zope.deferredimport==4.4'.
Got zope.deferredimport 4.4.
Getting distribution for 'zope.datetime==4.3.0'.
Got zope.datetime 4.3.0.
Getting distribution for 'zope.contenttype==4.5.0'.
Got zope.contenttype 4.5.0.
Getting distribution for 'zope.contentprovider==4.2.1'.
Got zope.contentprovider 4.2.1.
Getting distribution for 'zope.container==4.5.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching 'buildout.cfg'
warning: no files found matching '*.txt' under directory 'docs'
In file included from src/zope/container/_zope_container_contained.c:78:
/tmp/easy_install-bh03fhuz/zope.container-4.5.0/.eggs/zope.proxy-4.5.0-py3.10-linux-x86_64.egg/zope/proxy/_zope_proxy_proxy.c: In function ‘wrap_call’:
/tmp/easy_install-bh03fhuz/zope.container-4.5.0/.eggs/zope.proxy-4.5.0-py3.10-linux-x86_64.egg/zope/proxy/_zope_proxy_proxy.c:381:9: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
  381 |         return PyEval_CallObjectWithKeywords(Proxy_GET_OBJECT(self),
      |         ^~~~~~
In file included from /usr/include/python3.10/Python.h:130,
                 from src/zope/container/_zope_container_contained.c:34:
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Got zope.container 4.5.0.
Getting distribution for 'zope.configuration==4.4.1'.
Got zope.configuration 4.4.1.
Getting distribution for 'zope.component==5.0.1'.
Got zope.component 5.0.1.
Getting distribution for 'zope.browserresource==4.4'.
Got zope.browserresource 4.4.
Getting distribution for 'zope.browserpage==4.4.0'.
Got zope.browserpage 4.4.0.
Getting distribution for 'zope.browsermenu==4.4'.
Got zope.browsermenu 4.4.
Getting distribution for 'zope.browser==2.4'.
Got zope.browser 2.4.
Getting distribution for 'zExceptions==4.2'.
Got zExceptions 4.2.
Getting distribution for 'z3c.pt==3.3.1'.
Got z3c.pt 3.3.1.
Getting distribution for 'waitress==2.1.2'.
Got waitress 2.1.2.
Getting distribution for 'transaction==3.0.1'.
Got transaction 3.0.1.
Getting distribution for 'ZODB==5.7.0'.
Got ZODB 5.7.0.
Getting distribution for 'ZConfig==3.6.0'.
Got ZConfig 3.6.0.
Getting distribution for 'RestrictedPython==5.2'.
Got RestrictedPython 5.2.
Getting distribution for 'Persistence==3.3'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
Got Persistence 3.3.
Getting distribution for 'PasteDeploy==2.1.1'.
Got PasteDeploy 2.1.1.
Getting distribution for 'MultiMapping==4.1'.
Got MultiMapping 4.1.
Getting distribution for 'ExtensionClass==4.6'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
src/ExtensionClass/_ExtensionClass.c: In function ‘PyExtensionClass_Export_’:
src/ExtensionClass/_ExtensionClass.c:803:33: warning: comparison of integer expressions of different signedness: ‘Py_ssize_t’ {aka ‘long int’} and ‘long unsigned int’ [-Wsign-compare]
  803 |           if (typ->tp_basicsize <= sizeof(_emptyobject))
      |                                 ^~
Got ExtensionClass 4.6.
Getting distribution for 'DocumentTemplate==4.0'.
Got DocumentTemplate 4.0.
Getting distribution for 'DateTime==4.4'.
Got DateTime 4.4.
Getting distribution for 'Chameleon==3.9.1'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
Got Chameleon 3.9.1.
Getting distribution for 'BTrees==4.10.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
In file included from src/BTrees/_LQBTree.c:44:
src/BTrees/BTreeModuleTemplate.c:104:1: warning: ‘ulonglong_check’ defined but not used [-Wunused-function]
  104 | ulonglong_check(PyObject *ob)
      | ^~~~~~~~~~~~~~~
In file included from src/BTrees/_QOBTree.c:42:
src/BTrees/BTreeModuleTemplate.c:210:1: warning: ‘longlong_convert’ defined but not used [-Wunused-function]
  210 | longlong_convert(PyObject *ob, PY_LONG_LONG *value)
      | ^~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:202:1: warning: ‘longlong_as_object’ defined but not used [-Wunused-function]
  202 | longlong_as_object(PY_LONG_LONG val)
      | ^~~~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:133:1: warning: ‘longlong_check’ defined but not used [-Wunused-function]
  133 | longlong_check(PyObject *ob)
      | ^~~~~~~~~~~~~~
In file included from src/BTrees/_QQBTree.c:45:
src/BTrees/BTreeModuleTemplate.c:210:1: warning: ‘longlong_convert’ defined but not used [-Wunused-function]
  210 | longlong_convert(PyObject *ob, PY_LONG_LONG *value)
      | ^~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:202:1: warning: ‘longlong_as_object’ defined but not used [-Wunused-function]
  202 | longlong_as_object(PY_LONG_LONG val)
      | ^~~~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:133:1: warning: ‘longlong_check’ defined but not used [-Wunused-function]
  133 | longlong_check(PyObject *ob)
      | ^~~~~~~~~~~~~~
In file included from src/BTrees/_QFBTree.c:44:
src/BTrees/BTreeModuleTemplate.c:210:1: warning: ‘longlong_convert’ defined but not used [-Wunused-function]
  210 | longlong_convert(PyObject *ob, PY_LONG_LONG *value)
      | ^~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:202:1: warning: ‘longlong_as_object’ defined but not used [-Wunused-function]
  202 | longlong_as_object(PY_LONG_LONG val)
      | ^~~~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:133:1: warning: ‘longlong_check’ defined but not used [-Wunused-function]
  133 | longlong_check(PyObject *ob)
      | ^~~~~~~~~~~~~~
In file included from src/BTrees/_QLBTree.c:44:
src/BTrees/BTreeModuleTemplate.c:133:1: warning: ‘longlong_check’ defined but not used [-Wunused-function]
  133 | longlong_check(PyObject *ob)
      | ^~~~~~~~~~~~~~
In file included from src/BTrees/_OQBTree.c:42:
src/BTrees/BTreeModuleTemplate.c:210:1: warning: ‘longlong_convert’ defined but not used [-Wunused-function]
  210 | longlong_convert(PyObject *ob, PY_LONG_LONG *value)
      | ^~~~~~~~~~~~~~~~
src/BTrees/BTreeModuleTemplate.c:202:1: warning: ‘longlong_as_object’ defined but not used [-Wunused-function]
  202 | longlong_as_object(PY_LONG_LONG val)
      | ^~~~~~~~~~~~~~~~~~
Got BTrees 4.10.0.
Getting distribution for 'Acquisition==4.10'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
src/Acquisition/_Acquisition.c: In function ‘CallMethod’:
src/Acquisition/_Acquisition.c:133:5: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
  133 |     result = PyEval_CallObjectWithKeywords(callable, args, kwargs);
      |     ^~~~~~
In file included from /usr/include/python3.10/Python.h:130,
                 from include/ExtensionClass/ExtensionClass.h:83,
                 from src/Acquisition/_Acquisition.c:15:
/usr/include/python3.10/ceval.h:17:43: note: declared here
   17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Got Acquisition 4.10.
Getting distribution for 'AccessControl==5.3.1'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
src/AccessControl/cAccessControl.c:428:9: warning: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  428 |         NULL,                                   /* tp_print     */
      |         ^~~~
src/AccessControl/cAccessControl.c:428:9: note: (near initialization for ‘ZopeSecurityPolicyType.tp_vectorcall_offset’)
src/AccessControl/cAccessControl.c:487:9: warning: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  487 |         NULL,                                   /* tp_print     */
      |         ^~~~
src/AccessControl/cAccessControl.c:487:9: note: (near initialization for ‘SecurityManagerType.tp_vectorcall_offset’)
src/AccessControl/cAccessControl.c:546:9: warning: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  546 |         NULL,                                   /* tp_print     */
      |         ^~~~
src/AccessControl/cAccessControl.c:546:9: note: (near initialization for ‘PermissionRoleType.tp_vectorcall_offset’)
src/AccessControl/cAccessControl.c:616:9: warning: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  616 |         NULL,                                   /* tp_print     */
      |         ^~~~
src/AccessControl/cAccessControl.c:616:9: note: (near initialization for ‘imPermissionRoleType.tp_vectorcall_offset’)
src/AccessControl/cAccessControl.c: In function ‘c_rolesForPermissionOn’:
src/AccessControl/cAccessControl.c:1913:15: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
 1913 |               if (NATIVE_GET_SIZE(roles))
      |               ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from include/ExtensionClass/ExtensionClass.h:83,
                 from src/AccessControl/cAccessControl.c:49:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/AccessControl/cAccessControl.c:1913:15: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
 1913 |               if (NATIVE_GET_SIZE(roles))
      |               ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from include/ExtensionClass/ExtensionClass.h:83,
                 from src/AccessControl/cAccessControl.c:49:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
      |                                             ^~~~~~~~~~~~~~~~~~~
src/AccessControl/cAccessControl.c:1913:15: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
 1913 |               if (NATIVE_GET_SIZE(roles))
      |               ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
                 from /usr/include/python3.10/Python.h:83,
                 from include/ExtensionClass/ExtensionClass.h:83,
                 from src/AccessControl/cAccessControl.c:49:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
Got AccessControl 5.3.1.
Getting distribution for 'zope.cachedescriptors==4.3.1'.
Got zope.cachedescriptors 4.3.1.
Getting distribution for 'pytz==2022.1'.
Got pytz 2022.1.
Getting distribution for 'WebTest==3.0.0'.
Got WebTest 3.0.0.
Getting distribution for 'WSGIProxy2==0.5.1'.
Got WSGIProxy2 0.5.1.
Getting distribution for 'SoupSieve>=1.9.0'.
Got soupsieve 2.3.2.post1.
Getting distribution for 'BeautifulSoup4'.
Got beautifulsoup4 4.11.1.
Getting distribution for 'zope.deprecation==4.4.0'.
Got zope.deprecation 4.4.0.
Getting distribution for 'zope.annotation==4.7.0'.
Got zope.annotation 4.7.0.
Getting distribution for 'multipart==0.2.4'.
Got multipart 0.2.4.
Getting distribution for 'python-gettext'.
Got python-gettext 4.1.
Getting distribution for 'zope.filerepresentation==5.0.0'.
Got zope.filerepresentation 5.0.0.
Getting distribution for 'zope.dottedname==4.3'.
Got zope.dottedname 4.3.
Getting distribution for 'persistent==4.9.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching '*.txt' under directory 'docs'
Got persistent 4.9.0.
Getting distribution for 'zope.hookable==5.1.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
warning: no files found matching '*.txt' under directory 'docs'
Got zope.hookable 5.1.0.
Getting distribution for 'zodbpickle==2.2.0'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
  File "build/bdist.linux-x86_64/egg/zodbpickle/pickletools_2.py", line 1803
    print "skipping %r: it doesn't look like an opcode name" % name
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

  File "build/bdist.linux-x86_64/egg/zodbpickle/pickle_2.py", line 1462
    x += 1L << nbits
         ^
SyntaxError: invalid decimal literal

  File "build/bdist.linux-x86_64/egg/zodbpickle/tests/pickletester_2.py", line 433
    x = [0, 1L, 2.0, 3.0+0j]
            ^
SyntaxError: invalid decimal literal

  File "/home/giampiero/zope552p310/eggs/tmpbaumdwk0/zodbpickle-2.2.0-py3.10-linux-x86_64.egg/zodbpickle/pickle_2.py", line 1462
    x += 1L << nbits
         ^
SyntaxError: invalid decimal literal

  File "/home/giampiero/zope552p310/eggs/tmpbaumdwk0/zodbpickle-2.2.0-py3.10-linux-x86_64.egg/zodbpickle/pickletools_2.py", line 1803
    print "skipping %r: it doesn't look like an opcode name" % name
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

  File "/home/giampiero/zope552p310/eggs/tmpbaumdwk0/zodbpickle-2.2.0-py3.10-linux-x86_64.egg/zodbpickle/tests/pickletester_2.py", line 433
    x = [0, 1L, 2.0, 3.0+0j]
            ^
SyntaxError: invalid decimal literal

Got zodbpickle 2.2.0.
Getting distribution for 'zc.lockfile==2.0'.
Got zc.lockfile 2.0.
Getting distribution for 'zope.structuredtext==4.4'.
Got zope.structuredtext 4.4.
Getting distribution for 'roman==3.3'.
Got roman 3.3.
Getting distribution for 'AuthEncoding==4.3'.
Got AuthEncoding 4.3.
Getting distribution for 'WebOb==1.8.7'.
Got WebOb 1.8.7.
Getting distribution for 'cffi'.
WARNING: The easy_install command is deprecated and will be removed in a future version.
/tmp/easy_install-_gwbnll5/cffi-1.15.1/setup.py:69: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  from distutils.sysconfig import get_config_vars
Got cffi 1.15.1.
Getting distribution for 'pycparser'.
Got pycparser 2.21.
Generated script '/home/giampiero/zope552p310/bin/addzopeuser'.
Generated script '/home/giampiero/zope552p310/bin/mkwsgiinstance'.
Generated script '/home/giampiero/zope552p310/bin/runwsgi'.
Generated script '/home/giampiero/zope552p310/bin/zconsole'.
Generated interpreter '/home/giampiero/zope552p310/bin/zopepy'.


More information about the Zope mailing list