Hi,
I'm new to Plone, I'd really use some help. I'm having problems with it's installation. My knowledge about Terminal is very small, and i've been just copy-pasting the commands without really knowing what they do.
I've been using Unified Installer on MacOS Mojave.
That said, I'll write what my error is and install.log looks like.
Error:
-UnifiedInstaller/install.log
Installing Plone 5.1.2 at /Applications/Plone
Creating Python virtual environment.
New python executable in /Applications/Plone/zinstance/bin/python
Installing setuptools, pip, wheel...done.
Installing setuptools in virtual environment.
Installing zc.buildout in virtual environment.
Unpacking buildout cache to /Applications/Plone/buildout-cache
Copying buildout skeleton
Building Zope/Plone; this takes a while...
Buildout returned an error code: 1; Aborting.
Buildout failed. Unable to continue
Installation has failed.
search in your log the term "error" and look for most relevant one (where the installation fails)
It seems to be this one:
File "/var/folders/bn/gf3rvcx56pj3vtpkwxs6rr840000gn/T/easy_install-y4tA0H/Pillow-5.1.0/setup.py", line 806, in <module>
setuptools.sandbox.UnpickleableException: RequiredDependencyException('\n\nThe headers or library files could not be found for zlib,\na required dependency when compiling Pillow from source.\n\nPlease see the install instructions at:\n https://pillow.readthedocs.io/en/latest/installation.html\n\n',)
An error occurred when trying to install /Users/vladimir/Plone/buildout-cache/downloads/dist/Pillow-5.1.0.tar.gz. Look above this message for any errors that were output by easy_install.
While:
Installing instance.
Getting distribution for 'Pillow==5.1.0'.
Now, reading the error:
it is related to Pillow - it cannot be installed because:
RequiredDependencyException - this package depends on other packages
Which one is missing? "The headers or library files could not be found for zlib" -> zlib
+1 for Ghita's comments. When starting with Plone buildouts - you have to learn which errors are safe to ignore.
A simple approach is:
when you see "Got " means everything OK so far.
So look for the last time it says "Getting " without a matching "Got ..." - that's where you need to start looking for errors
Got BTrees 4.4.1.
Not found: /Users/vladimir/Plone/buildout-cache/downloads/dist/persistent/
Not found: /Users/vladimir/Plone/buildout-cache/downloads/dist/persistent/
Getting distribution for 'persistent==4.2.4.2'.
Thanks @GhitaB@djowett for your patience. I appreciate it.
I think I've installed Pillow and Zlib, but now, It seem there is still problem with Pillow: install3.log · GitHub
I'm getting this error now:
An error occurred when trying to install /Users/vladimir/Plone/buildout-cache/downloads/dist/Pillow-5.1.0.tar.gz. Look above this message for any errors that were output by easy_install.
While:
Installing instance.
Getting distribution for 'Pillow==5.1.0'.
An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
RequiredDependencyException('\n\nThe headers or library files could not be found for zlib,\na required dependency when compiling Pillow from source.\n\nPlease see the install instructions at:\n https://pillow.readthedocs.io/en/latest/installation.html\n\n',)
It seems to be the same problem for me: zlib is not installed (in a way your buildout could detect it).
Since you're using Mojave, check to make sure your XCode kit, including the X-Code Command-Line Tools, is up-to-date. One of the gotchas about using OS X for development is that it's entirely possible for your OS X version to be the latest while your build tools are way out of date.
I ended up here because I've got the same issue with Plone 4.3 and Pillow 5.3.0 (on Mojave), however in my case reverting to [versions] Pillow = 5.2.0 seems to get me through the buildout at least. I'm not sure what's going on …
Mojave changed the game for developers and they decided to package the XCode provided development headers into a .pkg they ship, but do not install per default.