[Grok-dev] ./bin/paster serve blobfile error
DIVINE, PAUL (PAUL)
paul.divine at alcatel-lucent.com
Mon Feb 21 10:36:20 EST 2011
Hi grokkers,
I just installed Grok version 1.3 I. Great.
Then I try to rebuild my application with the new version, but after the command
./bin/paster serve parts/etc/debug.ini
the following error message is displayed.
File "/root/.buildout/eggs/zope.configuration-3.7.2-py2.5.egg/zope/configuration/config.py", line 481, in factory
raise ConfigurationError("Unknown directive", ns, n)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/npo/virtual_env_05/npotools/parts/etc/site.zcml", line 4.2-4.32
ZopeXMLConfigurationError: File "/home/npo/virtual_env_05/npotools/src/npotools/configure.zcml", line 4.2-4.37
ZopeXMLConfigurationError: File "/root/.buildout/eggs/megrok.form-0.2.5-py2.5.egg/megrok/form/configure.zcml", line 15.2-15.48
ZopeXMLConfigurationError: File "/root/.buildout/eggs/collective.namedblobfile-0.3-py2.5.egg/collective/namedblobfile/configure.zcm
l", line 39.1-39.57
ZopeXMLConfigurationError: File "/root/.buildout/eggs/z3c.blobfile-0.1.0-py2.5.egg/z3c/blobfile/overrides.zcml", line 30.2-30.44
ZopeXMLConfigurationError: File "/root/.buildout/eggs/z3c.blobfile-0.1.0-py2.5.egg/z3c/blobfile/browser/configure.zcml", line 8.2
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/browser', u'form')
(virtual_env_05)pl6320:/home/npo/virtual_env_05/npotools#
I add 'megrok.form', in the setup.file as described in the following lines.
(virtual_env_05)pl6320:/home/npo/virtual_env_05/npotools# cat setup.py
from setuptools import setup, find_packages
version = '0.0'
setup(name='npotools',
version=version,
description="",
long_description="""\
""",
# Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
classifiers=[],
keywords="",
author="",
author_email="",
url="",
license="",
package_dir={'': 'src'},
packages=find_packages('src'),
include_package_data=True,
zip_safe=False,
install_requires=['setuptools',
'grok',
'grokui.admin',
'fanstatic',
'zope.fanstatic',
'grokcore.startup',
# Add extra requirements here
'megrok.form',
],
entry_points={
'fanstatic.libraries': [
'npotools = npotools.resource:library',
]
})
(virtual_env_05)pl6320:/home/npo/virtual_env_05/npotools#
And in /home/npo/virtual_env_05/npotools/buildout.cfg I add megrok.form and zc.resourcelibrary
As described in the following lines.
[versions]
# Override versions here.
zc.buildout = 1.4.4
megrok.form = 0.2.5
zc.resourcelibrary = 1.0.1
In the app.py
from megrok.form.fields import BlobFile
Thanks in advance for your help.
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20110221/90eddf6a/attachment.html
More information about the Grok-dev
mailing list