@fredvd I ran into this issue on my iMac Pro 2017 (no M1!) as well when running the plone.restapi tests:
make test
bin/test
Traceback (most recent call last):
File "bin/test", line 273, in <module>
sys.exit(zope.testrunner.run((['-s', 'plone.restapi', '--auto-color', '--auto-progress']) + [
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/__init__.py", line 31, in run
failed = run_internal(defaults, args, script_parts=script_parts, cwd=cwd,
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/__init__.py", line 55, in run_internal
runner.run()
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/runner.py", line 181, in run
feature.global_setup()
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 525, in global_setup
tests = find_tests(self.runner.options, self.runner.found_suites)
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 174, in find_tests
for suite in found_suites:
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 195, in find_suites
for fpath, package in find_test_files(options):
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 263, in find_test_files
for f, package in find_test_files_(options):
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 291, in find_test_files_
for (p, package) in test_dirs(options, {}):
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 346, in test_dirs
p = import_name(p)
File "/Users/timo/.buildout/eggs/zope.testrunner-5.3.0-py3.8.egg/zope/testrunner/find.py", line 423, in import_name
__import__(name)
File "/Users/timo/workspace/plone/plone.restapi/src/plone/restapi/__init__.py", line 1, in <module>
from AccessControl import allow_module
File "/Users/timo/.buildout/eggs/AccessControl-4.3-py3.8-macosx-11-x86_64.egg/AccessControl/__init__.py", line 18, in <module>
from AccessControl.Implementation import setImplementation
File "/Users/timo/.buildout/eggs/AccessControl-4.3-py3.8-macosx-11-x86_64.egg/AccessControl/Implementation.py", line 99, in <module>
setImplementation(_default_implementation)
File "/Users/timo/.buildout/eggs/AccessControl-4.3-py3.8-macosx-11-x86_64.egg/AccessControl/Implementation.py", line 53, in setImplementation
from AccessControl import ImplC as impl # NOQA
File "/Users/timo/.buildout/eggs/AccessControl-4.3-py3.8-macosx-11-x86_64.egg/AccessControl/ImplC.py", line 16, in <module>
from AccessControl.cAccessControl import PermissionRole
File "/Users/timo/.buildout/eggs/AccessControl-4.3-py3.8-macosx-11-x86_64.egg/AccessControl/SimpleObjectPolicies.py", line 48, in <module>
from BTrees.IIBTree import IIBTree
File "/Users/timo/.buildout/eggs/BTrees-4.9.2-py3.8-macosx-11-x86_64.egg/BTrees/__init__.py", line 59, in <module>
mod = create_module(family)
File "/Users/timo/.buildout/eggs/BTrees-4.9.2-py3.8-macosx-11-x86_64.egg/BTrees/_module_builder.py", line 219, in create_module
populate_module(vars(mod), key_type, val_type, iface, mod)
File "/Users/timo/.buildout/eggs/BTrees-4.9.2-py3.8-macosx-11-x86_64.egg/BTrees/_module_builder.py", line 134, in populate_module
from ._base import _fix_pickle
File "/Users/timo/.buildout/eggs/BTrees-4.9.2-py3.8-macosx-11-x86_64.egg/BTrees/_base.py", line 19, in <module>
from persistent import Persistent
File "/Users/timo/.buildout/eggs/persistent-4.7.0-py3.8-macosx-11-x86_64.egg/persistent/__init__.py", line 36, in <module>
from persistent import picklecache as _picklecache
File "/Users/timo/.buildout/eggs/persistent-4.7.0-py3.8-macosx-11-x86_64.egg/persistent/picklecache.py", line 30, in <module>
from persistent.ring import Ring
File "/Users/timo/.buildout/eggs/persistent-4.7.0-py3.8-macosx-11-x86_64.egg/persistent/ring.py", line 22, in <module>
from persistent import _ring
ModuleNotFoundError: No module named '_cffi_backend'
make: *** [test] Error 1
➜ plone.restapi git:(master) bin/python3 --version
Python 3.8.10
➜ plone.restapi git:(master) bin/pip cache list cffi*
Cache contents:
- cffi-1.14.4-cp37-cp37m-macosx_11_0_x86_64.whl (176 kB)
- cffi-1.14.4-cp39-cp39-macosx_11_0_x86_64.whl (176 kB)
I fixed the error by just upgrading cffi from 1.14.4 to:
cffi = 1.14.6
Will give it a shot later today on my M1 mac...