Error after adding plone.app.dexterity to Plone 4.3 buildout -


i've used https://github.com/plone/plonedev.vagrant set plone 4.3 development environment on windows. i've been trying add dexterity support installation, have run problems.

the steps have taken follows:

  1. added zopeskel.dexterity , plone.app.dexterity [relations, grok] [eggs] section of buildout.cfg

  2. added zopeskel <= 2.99 [versions] section of buildout.cfg

i re-run buildout , try start server in foreground mode, traceback:

vagrant@precise32:~$ ./runbin.sh plonectl fg                                                                                                                                                                                        instance: traceback (most recent call last):                                                                                                                                                                                          file "/home/vagrant/plone/zinstance/bin/instance", line 290, in <module>                                                                                                                                                              import plone.recipe.zope2instance.ctl                                                                                                                                                                                             file "/home/vagrant/plone/buildout-cache/eggs/plone.recipe.zope2instance-4.2.9-py2.7.egg/plone/recipe/__init__.py", line 1, in <module>                                                                                               __import__('pkg_resources').declare_namespace(__name__)                                                                                                                                                                           file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2835, in <module>                                                                                                                   add_activation_listener(lambda dist: dist.activate())                                                                                                                                                                             file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 704, in subscribe                                                                                                                   callback(dist)                                                                                                                                                                                                                    file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2835, in <lambda>                                                                                                                   add_activation_listener(lambda dist: dist.activate())                                                                                                                                                                             file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2262, in activate                                                                                                                   map(declare_namespace, self._get_metadata('namespace_packages.txt'))                                                                                                                                                              file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 1847, in declare_namespace                                                                                                          _handle_ns(packagename, path_item)                                                                                                                                                                                                file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 1817, in _handle_ns                                                                                                                 loader.load_module(packagename); module.__path__ = path                                                                                                                                                                           file "/usr/lib/python2.7/pkgutil.py", line 246, in load_module                                                                                                                                                                        mod = imp.load_module(fullname, self.file, self.filename, self.etc)                                                                                                                                                               file "/home/vagrant/plone/buildout-cache/eggs/zopeskel-2.21.2-py2.7.egg/zopeskel/__init__.py", line 2, in <module>                                                                                                                    zopeskel.basic_namespace import basicnamespace                                                                                                                                                                               file "/home/vagrant/plone/buildout-cache/eggs/zopeskel-2.21.2-py2.7.egg/zopeskel/basic_namespace.py", line 2, in <module>                                                                                                             zopeskel.vars import var, dottedvar, stringvar, booleanvar, textvar                                                                                                                                                          file "/home/vagrant/plone/buildout-cache/eggs/zopeskel-2.21.2-py2.7.egg/zopeskel/vars.py", line 2, in <module>                                                                                                                        paste.script.templates import var base_var                                                                                                                                                                              importerror: no module named script.templates 

edit: forgot mention buildout.cfg extends base.cfg, contains following:

[zopeskel] # installs paster , zopeskel recipe = zc.recipe.egg eggs =     zopeskel     paste     pastedeploy     pastescript     ${buildout:eggs} 

i tried explicitly adding pastescript [eggs] section in buildout.cfg. after running buildout , attempting start server, different traceback:

vagrant@precise32:~$ ./runbin.sh plonectl fg                                                                                                                                                                                        instance: traceback (most recent call last):                                                                                                                                                                                          file "/home/vagrant/plone/zinstance/bin/instance", line 291, in <module>                                                                                                                                                              import plone.recipe.zope2instance.ctl                                                                                                                                                                                             file "/home/vagrant/plone/buildout-cache/eggs/plone.recipe.zope2instance-4.2.9-py2.7.egg/plone/recipe/__init__.py", line 1, in <module>                                                                                               __import__('pkg_resources').declare_namespace(__name__)                                                                                                                                                                           file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2835, in <module>                                                                                                                   add_activation_listener(lambda dist: dist.activate())                                                                                                                                                                             file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 704, in subscribe                                                                                                                   callback(dist)                                                                                                                                                                                                                    file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2835, in <lambda>                                                                                                                   add_activation_listener(lambda dist: dist.activate())                                                                                                                                                                             file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 2262, in activate                                                                                                                   map(declare_namespace, self._get_metadata('namespace_packages.txt'))                                                                                                                                                              file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 1847, in declare_namespace                                                                                                          _handle_ns(packagename, path_item)                                                                                                                                                                                                file "/home/vagrant/plone/buildout-cache/eggs/distribute-0.6.28-py2.7.egg/pkg_resources.py", line 1817, in _handle_ns                                                                                                                 loader.load_module(packagename); module.__path__ = path                                                                                                                                                                           file "/usr/lib/python2.7/pkgutil.py", line 246, in load_module                                                                                                                                                                        mod = imp.load_module(fullname, self.file, self.filename, self.etc)                                                                                                                                                               file "/home/vagrant/plone/buildout-cache/eggs/zopeskel-2.21.2-py2.7.egg/zopeskel/__init__.py", line 2, in <module>                                                                                                                    zopeskel.basic_namespace import basicnamespace                                                                                                                                                                               file "/home/vagrant/plone/buildout-cache/eggs/zopeskel-2.21.2-py2.7.egg/zopeskel/basic_namespace.py", line 2, in <module>                                                                                                             zopeskel.vars import var, dottedvar, stringvar, booleanvar, textvar                                                                                                                                                          file "/home/vagrant/plone/buildout-cache/eggs/zopeskel-2.21.2-py2.7.egg/zopeskel/vars.py", line 2, in <module>                                                                                                                        paste.script.templates import var base_var                                                                                                                                                                                file "/vagrant/plone/src/hello.world/pastescript-1.7.5-py2.7.egg/paste/script/templates.py", line 9, in <module>                                                                                                                      paste.util.template import paste_script_template_renderer                                                                                                                                                                  importerror: no module named util.template 

is issue python path? ran bin/zopepy did import paste;print paste.__file__ , output is:

/vagrant/plone/src/hello.world/pastescript-1.7.5-py2.7.egg/paste/__init__.pyc 

the paste-1.7.5.1 egg directory contain paste/util/template.py file, looks interpreter can't find it.

you don't need add dexterity plone 4.3, it's included:


Comments