Submitted by : mariocesar at: 2009-11-22T16:44:30-08:00 (8 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Installing ZWiki on Plone3.3.2 using the Unified Installer.

After Successfully installing Plone added ZWiki to buildout.cfg, as:

    eggs =
         Plone
         ZWiki

Then Running ./bin/buildout, fails to setup ZWiki on Plone, here is the output

    ~/Plone/zinstance$ ./bin/buildout 
    Updating zope2.
    Updating fake eggs
    Updating productdistros.
    Installing instance.
    Getting distribution for 'ZWiki'.
    zip_safe flag not set; analyzing archive contents...
    TextFormatter: top-level module may be 'python -m' script
    Utils: module references __file__
    plugins.__init__: module references __path__
    plugins.pagetypes.__init__: module references __path__
    Installing ZWiki 2.0b1
    Caused installation of a distribution:
    Zwiki 2.0b1
    with a different project name.
    Got Zwiki 2.0b1.
    Getting distribution for 'Zope2>=2.12'.
      File "build/bdist.linux-i686/egg/Zope2/Startup/zopectl.py", line 313
        finally:
              ^
    SyntaxError: invalid syntax
      File "/home/mariocesar/Plone/buildout-cache/eggs/tmpzJjBMt/Zope2-2.12.1-py2.4-linux-i686.egg/Zope2/Startup/zopectl.py", line 313
        finally:
              ^
    SyntaxError: invalid syntax
    Got Zope2 2.12.1.
    While:
      Installing instance.

    An internal error occured due to a bug in either zc.buildout or in a
    recipe being used:
    Traceback (most recent call last):
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/zc.buildout-1.4.2-py2.4.egg/zc/buildout/buildout.py", line 1660, in main
        getattr(buildout, command)(args)
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/zc.buildout-1.4.2-py2.4.egg/zc/buildout/buildout.py", line 532, in install
        installed_files = self[part]._call(recipe.install)
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/zc.buildout-1.4.2-py2.4.egg/zc/buildout/buildout.py", line 1204, in _call
        return f()
      File "/home/mariocesar/Plone/buildout-cache/eggs/plone.recipe.zope2instance-3.4-py2.4.egg/plone/recipe/zope2instance/__init__.py", line 39, in install
        requirements, ws = self.egg.working_set()
      File "/home/mariocesar/Plone/buildout-cache/eggs/zc.recipe.egg-1.2.2-py2.4.egg/zc/recipe/egg/egg.py", line 89, in working_set
        allow_hosts=self.allow_hosts,
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/zc.buildout-1.4.2-py2.4.egg/zc/buildout/easy_install.py", line 800, in install
        return installer.install(specs, working_set)
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/zc.buildout-1.4.2-py2.4.egg/zc/buildout/easy_install.py", line 660, in install
        ws.resolve(requirements)
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 570, in resolve
        requirements.extend(dist.requires(req.extras)[::-1])
      File "/home/mariocesar/Plone/Python-2.4/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 2156, in requires
        raise UnknownExtra(
    UnknownExtra: zope.testbrowser 0.0 has no such extra feature 'zope_functional_testing'

As you can see, I follow the most basic steps to Install Zwiki, if there is another step or fix, I am sure it has to be documented.


comments:

... --Simon Michael, Mon, 23 Nov 2009 11:40:12 -0800 reply

Thanks, this is valuable information. We (I) don't know how to make Zwiki installation work with buildout yet, nor do I test it with latest and greatest Plone; that's out of scope for me right now unless someone funds it or sends me patches. Making the Zwiki 2 egg work as it should *is* on my task list. The traceback appears to show a syntax error in the zopectl script. Note that the Zwiki 2b1 egg pulls in zope 2.12. Perhaps that is conflicting with your plone's zope or python version ? Perhaps there's a buildout option to install it without the zope2.12 dependency ? As a last resort, you can follow the traditional method of unpacking the tarball under Products/.

... --mariocesar, Mon, 23 Nov 2009 13:08:22 -0800 reply

Yes, as you say it's a Version Problem. Zope2.10 is installed in the Unified Installer for Plone3.3.2 I was able to Install Zwiki Successfully with as an old-fashion Product, adding the url for the version 0.61.0 of ZWiki in the productdistros heading in buildout.cfg as follow:
[productdistros]
recipe = plone.recipe.distros
urls =
    http://zwiki.org/repos/ZWiki/releases/ZWiki-0.61.0.tgz
nested-packages =
version-suffix-packages = 
I was also able to install the lateste version of Zwiki, but it trow exceptions on rendering wiki pages after a while. So, it seems that in the Unified Installer of Plone3.3.2 just Zwiki 0.61.0 is working, installed as an old-fashion Product. And, Simon, thanks for the kind answer.

... --simon, Mon, 23 Nov 2009 13:14:23 -0800 reply

Great, that's good to know. Note when you install 2.0, there are some steps you have to follow in the release notes (/upgradeAll) to make old wikis work.