[Zope3-Users] "Module zope has no global viewlet"

Chetan Kumar chetan.mlist at gmail.com
Sun Apr 12 06:56:40 EDT 2009


Hi all
I am using  virtualenv and zopeproject with the following output [1].
This is attached for reference and I am not sure if this output should
bother me at this stage.

As, I would like to use viewlet managers and viewlets, following
http://apidoc.zope.org/++apidoc++/Book/viewlet/directives/show.html I
tried this [2].

The pristine buildout.cfg [3] is attached for reference in case that is useful.

Hope I have been able to express my situation and requirement clearly enough.

I wish to find out my mistake, correct it and move on.
Cheers


[1]
(zwork)[xpmt at soup Work]$ zopeproject ptl
Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place
packages) ['/home/xpmt/.buildout/eggs']:
/home/xpmt/Work/zwork/.buildout/eggs
Creating directory ./ptl
Downloading zc.buildout...
Invoking zc.buildout...
zip_safe flag not set; analyzing archive contents...
Unused options for buildout: 'download-directory'.
Unused options for buildout: 'download-directory'.
warning: no files found matching '0.1.0-changes.txt'
no previously-included directories found matching 'docs-in-progress'
"optparse" module already present; ignoring extras/optparse.py.
"textwrap" module already present; ignoring extras/textwrap.py.
"roman" module already present; ignoring extras/roman.py.
zip_safe flag not set; analyzing archive contents...
docutils.parsers.rst.directives.misc: module references __file__
docutils.writers.html4css1.__init__: module references __file__
docutils.writers.pep_html.__init__: module references __file__
docutils.writers.s5_html.__init__: module references __file__
docutils.writers.newlatex2e.__init__: module references __file__

[2]
(zwork)[xpmt at soup ptl]$ ./bin/ptl-debug
------
2009-04-12T16:08:31 WARNING root Developer mode is enabled: this is a
security risk and should NOT be enabled on production servers.
Developer mode can be turned off in etc/zope.conf
------
2009-04-12T16:08:36 INFO ZODB.blob (8158) Blob directory `var/blobs`
has layout marker set. Selected `bushy` layout.
Welcome to the interactive debug prompt.
The 'root' variable contains the ZODB root folder.
The 'app' variable contains the Debugger, 'app.publish(path)'
simulates a request.
>>>
>>> from zope.configuration import xmlconfig
>>> context = xmlconfig.string('''
... <configure i18n_domain="zope">
...     <include package="zope.viewlet" file="meta.zcml" />
... </configure>
... ''')
Traceback (most recent call last):
  File "<console>", line 1, in ?
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 627, in string
    processxmlfile(f, context)
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 378, in processxmlfile
    parser.parse(src)
  File "/home/xpmt/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/home/xpmt/local/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py",
line 123, in parse
    self.feed(buffer)
  File "/home/xpmt/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 216, in feed
    self._parser.Parse(data, isFinal)
  File "/home/xpmt/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 364, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 357, in endElementNS
    self.context.end()
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
line 542, in end
    self.stack.pop().finish()
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
line 689, in finish
    args = toargs(context, *self.argdata)
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
line 1381, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "/home/xpmt/Work/zwork/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/fields.py",
line 141, in fromUnicode
    raise schema.ValidationError(v)
ZopeXMLConfigurationError: File "<string>", line 3.1-3.52
    ConfigurationError: ('Invalid value for', 'package', 'ImportError:
Module zope has no global viewlet')
>>>

[3]
[buildout]
develop = .
parts = app test
newest = false
eggs-directory = /home/xpmt/Work/zwork/.buildout/eggs

# These settings pin egg versions to the Zope 3.4.0 Known Good Set
# if you want to upgrade the KGS version, you need to change the URL
# below. If you will comment/remove these settings, you'll get the
# latest versions of Zope eggs that are not guaranteed to work well
# together.
extends = http://download.zope.org/zope3.4/3.4.0/versions.cfg
versions = versions

[app]
recipe = zc.recipe.egg
eggs = ptl
       zope.app.apidoc
       zope.app.securitypolicy
       z3c.evalexception>=2.0
       Paste
       PasteScript
       PasteDeploy
interpreter = python

[test]
recipe = zc.recipe.testrunner
eggs = ptl
defaults = ['--tests-pattern', '^f?tests$', '-v']


More information about the Zope3-users mailing list