Closed ksuess closed 1 year ago
@ksuess This might be related to https://github.com/buildout/buildout/issues/609
I don't understand the issue fully but here are some tips:
bin/pip install zope.container==4.10
) and then re-running buildout, which now uses the already installed package.Upgrade to 5.2.13 is fine on Python 3.10 with pyScss = 1.4.0 plone.app.drafts = 2.0.0 which fix the import from collections.abc
But be aware that officially supported Python versions are 3.7, 3.8 according to https://plone.org/download/release-schedule.
Too bad about the sunny saturday…
But be aware that officially supported Python versions are 3.7, 3.8
You're right, I forgot this. I meant that it helped when I saw a similar problem with Plone 6.
At the end of last year I had problems with zope.container
versions ranging from roughly 4.5 to 4.9. Version 4.10 fixed it for me then, because that had more wheels for Mac available, and it matched what I needed. See the available files.
If no wheel for your system is available, then buildout/pip will try to compile from source, and that may or may not work, depending on OS, Python version, gcc flags, etcetera. And probably on the phase of the moon.
I'm sticking with my upgrade on Python 3.10 It's fine, even with several add-ons and custom add-ons. Let's invest time in Plone 6 and 7…
If you have installed your Python with pyenv
, and you have since then upgraded MacOSX, you may need to reinstall all Pythons to fix this.
See https://github.com/buildout/buildout/issues/606#issuecomment-1455496247 which I confirmed today after having upgraded last night to MacOS 13.5.
Well, with a fresh Python 3.8 and Plone 5.2.11 on a client project, I now get an error building zope.container after all, complaining that it failed to build a wheel:
root: Reading https://pypi.org/simple/zope.container/
Getting distribution for 'zope.container==4.10'.
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [111 lines of output]
...
src/zope/container/_zope_container_contained.c:115:11: error: implicit declaration of function 'PyString_AS_STRING' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
...
4 warnings and 4 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for zope.container
ERROR: Could not build wheels for zope.container, which is required to install pyproject.toml-based projects
Workarounds:
pip install zope.container==4.10
, like David says above.
Buildout with pinning zope.container to 4.5 works fine.