Problem installing Plone on windows 7

I got this error when trying to install latest Plone on windows 7 machine locally:

PS C:\simple-plone-buildout> env/Scripts/buildout
Creating directory 'C:\\simple-plone-buildout\\eggs'.
Getting distribution for 'jarn.setuptoolsfixer'.
  File "build\bdist.win-amd64\egg\jarn\setuptoolsfixer\__init__.py", line 12
    except httplib.HTTPException, v:
                                ^
SyntaxError: invalid syntax

  File "c:\simple-plone-buildout\eggs\tmpcnbmn5rr\jarn.setuptoolsfixer-1.0-py3.5.egg\jarn\setuptoolsfixer\__init__.py",
line 12
    except httplib.HTTPException, v:
                                ^
SyntaxError: invalid syntax

Got jarn.setuptoolsfixer 1.0.
Getting distribution for 'mr.developer==1.34'.
Got mr.developer 1.34.
mr.developer: Creating missing sources dir C:\simple-plone-buildout\src.
While:
  Installing.
  Loading extensions.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "c:\simple-plone-buildout\env\lib\site-packages\zc\buildout\buildout.py", line 1995, in main
    getattr(buildout, command)(args)
  File "c:\simple-plone-buildout\env\lib\site-packages\zc\buildout\buildout.py", line 507, in install
    self._load_extensions()
  File "c:\simple-plone-buildout\env\lib\site-packages\zc\buildout\buildout.py", line 1039, in _load_extensions
    ep.load()(self)
  File "c:\simple-plone-buildout\env\lib\site-packages\pkg_resources\__init__.py", line 2229, in load
    return self.resolve()
  File "c:\simple-plone-buildout\env\lib\site-packages\pkg_resources\__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\simple-plone-buildout\eggs\jarn.setuptoolsfixer-1.0-py3.5.egg\jarn\setuptoolsfixer\__init__.py", line 12
    except httplib.HTTPException, v:
                                ^
SyntaxError: invalid syntax

Any way to fix this?
Thanks!

I wonder if you installed the Python as described at https://github.com/plone/simple-plone-buildout/blob/5.0.6/README.rst#using-windows

Looks like you're installing with Python 3. Plone uses Python 2.7.

If you use the windows installer, I think it installs a compatible Python for you. I've never tried installing on windows though.

The easiest way to get up and running is probably with the vagrant install though.

1 Like

The process above was the simple buildout, which we recommend for Windows; there isn't a Windows installer at the moment. But yeah it seemed like it was the wrong Python version.

Thanks for fast reply!
I didn't know python 3 doesn't support older version. I installed obsolete 2.7 version and now the buildout started working but ended with another error:

PS C:\simple-plone-buildout> env/Scripts/buildout
Getting distribution for 'jarn.setuptoolsfixer'.
Got jarn.setuptoolsfixer 1.0.
Getting distribution for 'mr.developer==1.34'.
Got mr.developer 1.34.
Creating directory 'C:\\simple-plone-buildout\\bin'.
Creating directory 'C:\\simple-plone-buildout\\parts'.
Creating directory 'C:\\simple-plone-buildout\\develop-eggs'.
Getting distribution for 'zc.recipe.egg==2.0.3'.
Got zc.recipe.egg 2.0.3.
Getting distribution for 'plone.recipe.zeoserver==1.2.9'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
Got plone.recipe.zeoserver 1.2.9.
Getting distribution for 'nt-svcutils==2.13.0'.
Got nt-svcutils 2.13.0.
Getting distribution for 'ZopeUndo==2.12.0'.
Installing ZopeUndo 2.12.0
Caused installation of a distribution:
zopeundo 2.12.0
with a different project name.
Got zopeundo 2.12.0.
Getting distribution for 'ZODB3==3.10.5'.
Got zodb3 3.10.5.
Getting distribution for 'zope.mkzeoinstance==3.9.5'.
Got zope.mkzeoinstance 3.9.5.
Getting distribution for 'zope.interface==3.6.7'.
Got zope.interface 3.6.7.
Getting distribution for 'zope.event==3.5.2'.
Got zope.event 3.5.2.
Getting distribution for 'zdaemon==2.0.7'.
Got zdaemon 2.0.7.
Getting distribution for 'ZConfig==2.9.3'.
Installing ZConfig 2.9.3
Caused installation of a distribution:
zconfig 2.9.3
with a different project name.
Got zconfig 2.9.3.
Getting distribution for 'zc.lockfile==1.0.2'.
Got zc.lockfile 1.0.2.
Getting distribution for 'transaction==1.1.1'.
Got transaction 1.1.1.
Getting distribution for 'plone.recipe.zope2instance==4.2.21'.
warning: no previously-included files matching '*pyc' found anywhere in distribution
Got plone.recipe.zope2instance 4.2.21.
Getting distribution for 'Zope2==2.13.24'.
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
Installing Zope2 2.13.24
Caused installation of a distribution:
zope2 2.13.24
with a different project name.
Got zope2 2.13.24.
Getting distribution for 'mailinglogger==3.8.0'.
Got mailinglogger 3.8.0.
Getting distribution for 'Products.StandardCacheManagers==2.13.1'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing Products.StandardCacheManagers 2.13.1
Caused installation of a distribution:
products.standardcachemanagers 2.13.1
with a different project name.
Got products.standardcachemanagers 2.13.1.
Getting distribution for 'Products.PythonScripts==2.13.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing Products.PythonScripts 2.13.2
Caused installation of a distribution:
products.pythonscripts 2.13.2
with a different project name.
Got products.pythonscripts 2.13.2.
Getting distribution for 'Products.MIMETools==2.13.0'.
Installing Products.MIMETools 2.13.0
Caused installation of a distribution:
products.mimetools 2.13.0
with a different project name.
Got products.mimetools 2.13.0.
Getting distribution for 'Products.MailHost==2.13.2'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing Products.MailHost 2.13.2
Caused installation of a distribution:
products.mailhost 2.13.2
with a different project name.
Got products.mailhost 2.13.2.
Getting distribution for 'Products.ExternalMethod==2.13.1'.
warning: no files found matching '*.rst'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing Products.ExternalMethod 2.13.1
Caused installation of a distribution:
products.externalmethod 2.13.1
with a different project name.
Got products.externalmethod 2.13.1.
Getting distribution for 'Products.BTreeFolder2==2.14.0'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing Products.BTreeFolder2 2.14.0
Caused installation of a distribution:
products.btreefolder2 2.14.0
with a different project name.
Got products.btreefolder2 2.14.0.
Getting distribution for 'zope.viewlet==3.7.2'.
Got zope.viewlet 3.7.2.
Getting distribution for 'zope.traversing==3.13.2'.
Got zope.traversing 3.13.2.
Getting distribution for 'zope.testing==3.9.7'.
warning: no files found matching 'sampletests' under directory 'src'
Got zope.testing 3.9.7.
Getting distribution for 'zope.testbrowser==3.11.1'.
Got zope.testbrowser 3.11.1.
Getting distribution for 'zope.tales==3.5.3'.
Got zope.tales 3.5.3.
Getting distribution for 'zope.tal==3.5.2'.
Got zope.tal 3.5.2.
Getting distribution for 'zope.structuredtext==3.5.1'.
Got zope.structuredtext 3.5.1.
Getting distribution for 'zope.size==3.4.1'.
Got zope.size 3.4.1.
Getting distribution for 'zope.site==3.9.2'.
Got zope.site 3.9.2.
Getting distribution for 'zope.sequencesort==3.4.0'.
Got zope.sequencesort 3.4.0.
Getting distribution for 'zope.sendmail==3.7.5'.
Got zope.sendmail 3.7.5.
Getting distribution for 'zope.security==3.7.4'.
Got zope.security 3.7.4.
Getting distribution for 'zope.schema==4.4.2'.
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.schema 4.4.2.
Getting distribution for 'zope.publisher==3.12.6'.
Got zope.publisher 3.12.6.
Getting distribution for 'zope.ptresource==3.9.0'.
Got zope.ptresource 3.9.0.
Getting distribution for 'zope.proxy==3.6.1'.
Got zope.proxy 3.6.1.
Getting distribution for 'zope.processlifetime==1.0'.
Got zope.processlifetime 1.0.
Getting distribution for 'zope.pagetemplate==3.6.3'.
Got zope.pagetemplate 3.6.3.
Getting distribution for 'zope.location==3.9.1'.
Got zope.location 3.9.1.
Getting distribution for 'zope.lifecycleevent==3.6.2'.
Got zope.lifecycleevent 3.6.2.
Getting distribution for 'zope.i18nmessageid==3.5.3'.
Got zope.i18nmessageid 3.5.3.
Getting distribution for 'zope.i18n[zcml]==3.7.4'.
Got zope.i18n 3.7.4.
Getting distribution for 'zope.exceptions==3.6.2'.
Got zope.exceptions 3.6.2.
Getting distribution for 'zope.deferredimport==3.5.3'.
Got zope.deferredimport 3.5.3.
Getting distribution for 'zope.contenttype==3.5.5'.
Got zope.contenttype 3.5.5.
Getting distribution for 'zope.contentprovider==3.7.2'.
Got zope.contentprovider 3.7.2.
Getting distribution for 'zope.container==3.11.2'.
Got zope.container 3.11.2.
Getting distribution for 'zope.configuration==3.7.4'.
Got zope.configuration 3.7.4.
Getting distribution for 'zope.component==3.9.5'.
Got zope.component 3.9.5.
Getting distribution for 'zope.browserresource==3.10.3'.
Got zope.browserresource 3.10.3.
Getting distribution for 'zope.browserpage==3.12.2'.
Got zope.browserpage 3.12.2.
Getting distribution for 'zope.browsermenu==3.9.1'.
Got zope.browsermenu 3.9.1.
Getting distribution for 'zope.browser==1.3'.
Got zope.browser 1.3.
Getting distribution for 'zLOG==2.11.2'.
Installing zLOG 2.11.2
Caused installation of a distribution:
zlog 2.11.2
with a different project name.
Got zlog 2.11.2.
Getting distribution for 'zExceptions==2.13.0'.
Installing zExceptions 2.13.0
Caused installation of a distribution:
zexceptions 2.13.0
with a different project name.
Got zexceptions 2.13.0.
Getting distribution for 'tempstorage==2.12.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Got tempstorage 2.12.2.
Getting distribution for 'pytz==2015.7'.
Got pytz 2015.7.
Getting distribution for 'initgroups==2.13.0'.
Got initgroups 2.13.0.
Getting distribution for 'docutils==0.12'.
warning: no files found matching 'MANIFEST'
warning: no files found matching '*' under directory 'extras'
warning: no previously-included files matching '.cvsignore' found under directory '*'
warning: no previously-included files matching '*.pyc' found under directory '*'
warning: no previously-included files matching '*~' found under directory '*'
warning: no previously-included files matching '.DS_Store' found under directory '*'
zip_safe flag not set; analyzing archive contents...
docutils.parsers.rst.directives.misc: module references __file__
docutils.writers.docutils_xml: module references __path__
docutils.writers.html4css1.__init__: module references __file__
docutils.writers.latex2e.__init__: module references __file__
docutils.writers.odf_odt.__init__: module references __file__
docutils.writers.pep_html.__init__: module references __file__
docutils.writers.s5_html.__init__: module references __file__
Got docutils 0.12.
Getting distribution for 'RestrictedPython==3.6.0'.
Installing RestrictedPython 3.6.0
Caused installation of a distribution:
restrictedpython 3.6.0
with a different project name.
Got restrictedpython 3.6.0.
Getting distribution for 'Record==2.13.0'.
Got record 2.13.0.
Getting distribution for 'Products.ZCTextIndex==2.13.5'.
Got products.zctextindex 2.13.5.
Getting distribution for 'Products.ZCatalog==3.0.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing Products.ZCatalog 3.0.2
Caused installation of a distribution:
products.zcatalog 3.0.2
with a different project name.
Got products.zcatalog 3.0.2.
Getting distribution for 'Products.OFSP==2.13.2'.
Installing Products.OFSP 2.13.2
Caused installation of a distribution:
products.ofsp 2.13.2
with a different project name.
Got products.ofsp 2.13.2.
Getting distribution for 'Persistence==2.13.2'.
Got persistence 2.13.2.
Getting distribution for 'MultiMapping==2.13.0'.
Got multimapping 2.13.0.
Getting distribution for 'Missing==2.13.1'.
Got missing 2.13.1.
Getting distribution for 'ExtensionClass==4.1.2'.
Got extensionclass 4.1.2.
Getting distribution for 'DocumentTemplate==2.13.2'.
Got documenttemplate 2.13.2.
Getting distribution for 'DateTime==4.0.1'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
Installing DateTime 4.0.1
Caused installation of a distribution:
datetime 4.0.1
with a different project name.
Got datetime 4.0.1.
Getting distribution for 'Acquisition==4.2.2'.
Got acquisition 4.2.2.
Getting distribution for 'AccessControl==3.0.12'.
Got accesscontrol 3.0.12.
Getting distribution for 'mechanize==0.2.5'.
Got mechanize 0.2.5.
Getting distribution for 'zope.annotation==3.5.0'.
Got zope.annotation 3.5.0.
Getting distribution for 'zope.broken==3.6.0'.
Got zope.broken 3.6.0.
Getting distribution for 'zope.filerepresentation==3.6.1'.
Got zope.filerepresentation 3.6.1.
Getting distribution for 'zope.dottedname==3.4.6'.
Got zope.dottedname 3.4.6.
Getting distribution for 'zc.recipe.testrunner==1.2.1'.
zip_safe flag not set; analyzing archive contents...
Got zc.recipe.testrunner 1.2.1.
Getting distribution for 'z3c.recipe.tag==0.8'.
Got z3c.recipe.tag 0.8.
Getting distribution for 'collective.recipe.omelette==0.16'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got collective.recipe.omelette 0.16.
Getting distribution for 'ntfsutils'.
Got ntfsutils 0.1.3.
Unused options for buildout: 'unzip'.
Installing _mr.developer.
Generated script 'C:\\simple-plone-buildout\\bin\\develop'.
Installing zeoserver.
Created directory C:\simple-plone-buildout\parts\zeoserver
Created directory C:\simple-plone-buildout\parts\zeoserver\etc
Created directory C:\simple-plone-buildout\parts\zeoserver\var
Created directory C:\simple-plone-buildout\parts\zeoserver\log
Created directory C:\simple-plone-buildout\parts\zeoserver\bin
Wrote file C:\simple-plone-buildout\parts\zeoserver\etc\zeo.conf
Wrote file C:\simple-plone-buildout\parts\zeoserver\bin\zeoctl
Changed mode for C:\simple-plone-buildout\parts\zeoserver\bin\zeoctl to 777
Wrote file C:\simple-plone-buildout\parts\zeoserver\bin\runzeo
Changed mode for C:\simple-plone-buildout\parts\zeoserver\bin\runzeo to 777
Generated script 'C:\\simple-plone-buildout\\bin\\zeoserver'.
Generated script 'C:\\simple-plone-buildout\\bin\\zeopack'.
Generated script 'C:\\simple-plone-buildout\\bin\\repozo'.
Changed mode for C:\simple-plone-buildout\bin\zeoserver_runzeo.bat to 755
Changed mode for C:\simple-plone-buildout\bin\zeoserver_service.py to 755
Generated script 'C:\\simple-plone-buildout\\bin\\zeoserver_service'.
Installing instance.
c:\simple-plone-buildout\env\lib\site-packages\pkg_resources\__init__.py:187: RuntimeWarning: You have iterated over the
 result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class intro
duced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Versi
on instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project d
escribing that need.
  stacklevel=1,
Getting distribution for 'Plone==5.0.6'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: install_lib: 'build\lib' does not exist -- no Python modules to install

Installing Plone 5.0.6
Caused installation of a distribution:
plone 5.0.6
with a different project name.
Got plone 5.0.6.
Getting distribution for 'plone.reload==2.0.2'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Got plone.reload 2.0.2.
Getting distribution for 'Products.PDBDebugMode'.
Installing Products.PDBDebugMode 1.3.1
Caused installation of a distribution:
products.pdbdebugmode 1.3.1
with a different project name.
Got products.pdbdebugmode 1.3.1.
Getting distribution for 'Products.PrintingMailHost'.
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Installing Products.PrintingMailHost 1.0
Caused installation of a distribution:
products.printingmailhost 1.0
with a different project name.
Got products.printingmailhost 1.0.
Getting distribution for 'Products.DocFinderTab'.
Installing Products.DocFinderTab 1.0.5
Caused installation of a distribution:
products.docfindertab 1.0.5
with a different project name.
Got products.docfindertab 1.0.5.
Getting distribution for 'Products.DCWorkflowGraph'.
Installing Products.DCWorkflowGraph 0.4.1
Caused installation of a distribution:
products.dcworkflowgraph 0.4.1
with a different project name.
Got products.dcworkflowgraph 0.4.1.
Getting distribution for 'sixfeetup.customfolderalert'.
While:
  Installing instance.
  Getting distribution for 'sixfeetup.customfolderalert'.
Error: Couldn't find a distribution for 'sixfeetup.customfolderalert'.

Did i miss something else? I have tried to follow the guide on git you pointed,. maybe its the windows problem?

Try running the command again? Maybe you had a intermittent network issue when downloading? It should find the package just fine from pypi: https://pypi.python.org/pypi/sixfeetup.customfolderalert/1.3

Hmm, i tried to run it few more times but now it gives only short output:

PS C:\simple-plone-buildout> env/Scripts/buildout
Unused options for buildout: 'unzip'.
Updating _mr.developer.
Updating zeoserver.
Installing instance.
c:\simple-plone-buildout\env\lib\site-packages\pkg_resources\__init__.py:187: RuntimeWarning: You have iterated over the
 result of pkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class intro
duced in setuptools 8.0. In most cases, conversion to a tuple is unnecessary. For comparison of versions, sort the Versi
on instances directly. If you have another use case requiring the tuple, please file a bug with the setuptools project d
escribing that need.
  stacklevel=1,
Getting distribution for 'sixfeetup.customfolderalert'.
While:
  Installing instance.
  Getting distribution for 'sixfeetup.customfolderalert'.
Error: Couldn't find a distribution for 'sixfeetup.customfolderalert'.

I can access the link you posted just fine. Should i try to download the file manually and place it to, eh, somewhere..?

No, just re-run buildout in case there was a temporary network problem preventing your computer from retrieving that egg (it does happen on occasion).

That missing egg (sixfeetup.customfolderalert) is probably not something you need, so you could also remove it from your buildout.cfg.