Problem with Zope 2.7.0 in Gentoo
Hello! Today I've installed Zope 2.7.0 in Gentoo from source. Then I've created an instance, and now, when I try to start it, it gives me the following error: Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/Zope/Startup/zopectl.py", line 207, in ? main() File "/opt/Zope-2.7/lib/python/Zope/Startup/zopectl.py", line 187, in main options.realize(args) File "/opt/Zope-2.7/lib/python/Zope/Startup/zopectl.py", line 86, in realize ZDOptions.realize(self, *args, **kw) File "/opt/Zope-2.7/lib/python/zdaemon/zdoptions.py", line 264, in realize self.load_configfile() File "/opt/Zope-2.7/lib/python/zdaemon/zdoptions.py", line 308, in load_configfile self.zconfig_options) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 43, in loadConfig return _get_config_loader(schema, overrides).loadURL(url) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 183, in loadResource self._parse_resource(sm, resource) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 234, in _parse_resource parser.parse(matcher) File "/opt/Zope-2.7/lib/python/ZConfig/cfgparser.py", line 63, in parse section = self.end_section(section, line[2:-1]) File "/opt/Zope-2.7/lib/python/ZConfig/cfgparser.py", line 116, in end_section self.context.endSection( File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 201, in endSection sectvalue = matcher.finish() File "/opt/Zope-2.7/lib/python/ZConfig/matcher.py", line 170, in finish return self.constuct() File "/opt/Zope-2.7/lib/python/ZConfig/matcher.py", line 212, in constuct v = v.convert(ci.datatype) File "/opt/Zope-2.7/lib/python/ZConfig/info.py", line 65, in convert return datatype(self.value) File "/opt/Zope-2.7/lib/python/Zope/Startup/datatypes.py", line 106, in importable_name package = __import__(n, g, g, component) File "/opt/Zope-2.7/lib/python/DBTab/ClassFactories.py", line 18, in ? import OFS.Uninstalled File "/opt/Zope-2.7/lib/python/OFS/Uninstalled.py", line 16, in ? import SimpleItem, Globals, Acquisition File "/opt/Zope-2.7/lib/python/OFS/SimpleItem.py", line 27, in ? from CopySupport import CopySource File "/opt/Zope-2.7/lib/python/OFS/CopySupport.py", line 549, in ? action ='manage_main',) File "/opt/Zope-2.7/lib/python/DocumentTemplate/DT_String.py", line 474, in __call__ try: result = render_blocks(self._v_blocks, md) File "/opt/Zope-2.7/lib/python/DocumentTemplate/pDocumentTemplate.py", line 202, in render_blocks cond=md[cond] File "/opt/Zope-2.7/lib/python/DocumentTemplate/pDocumentTemplate.py", line 140, in __getitem__ v = self.dicts[key] File "/opt/Zope-2.7/lib/python/DocumentTemplate/pDocumentTemplate.py", line 100, in __getitem__ raise KeyError, key KeyError: "'v'" Python version is 2.3.3. The config file is the default one. Thanks! Regards, -- Stelian Iancu steliani@cytanet.com.cy
Stelian Iancu wrote at 2004-3-19 23:58 +0000:
Today I've installed Zope 2.7.0 in Gentoo from source. Then I've created an instance, and now, when I try to start it, it gives me the following error: ... File "/opt/Zope-2.7/lib/python/DocumentTemplate/DT_String.py", line 474, in __call__ try: result = render_blocks(self._v_blocks, md) File "/opt/Zope-2.7/lib/python/DocumentTemplate/pDocumentTemplate.py", line 202, in render_blocks
What are you doing in "pDocumentTemplate"? You should use "cDocumentTemplate". Maybe, you forgot some installation step that would compile or install Zope's C extensions. -- Dieter
Hello! Thanks a lot for your answer. In fact, I did everything exactly how it's written in the INSTALL.txt file. I've done the configure, then make. Here is the output of make: stelu@laptop Zope-2.7.0 $ make "/usr/bin/python" "/home/stelu/Kits/Zope-2.7.0/setup.py" \ build --build-base="/home/stelu/Kits/Zope-2.7.0/build-base/python-2.3" --build-lib="/home/stelu/Kits/Zope-2.7.0/build-base/python-2.3/build-lib" --build-scripts="/home/stelu/Kits/Zope-2.7.0/build-base/python-2.3/build-scripts" --build-temp="/home/stelu/Kits/Zope-2.7.0/build-base/python-2.3/build-temp" running build running build_py running build_ext running build running build_py running build running build_scripts Zope built. Next, do 'make install' (or 'make instance' to run a Zope instance directly from the build directory). I remember that when I've installed Zope (same version) on my server (which has Mandrake 9.2 and Python 2.3), in the make step it compiled also some C stuff. However, here this seems not to happen. I am missing something here and I cannot seem to figure out what. Thanks again! -- Stelian Iancu steliani@cytanet.com.cy On Saturday 20 March 2004 20:13, Dieter Maurer wrote:
Stelian Iancu wrote at 2004-3-19 23:58 +0000:
Today I've installed Zope 2.7.0 in Gentoo from source. Then I've created an instance, and now, when I try to start it, it gives me the following error: ... File "/opt/Zope-2.7/lib/python/DocumentTemplate/DT_String.py", line 474, in __call__ try: result = render_blocks(self._v_blocks, md) File "/opt/Zope-2.7/lib/python/DocumentTemplate/pDocumentTemplate.py", line 202, in render_blocks
What are you doing in "pDocumentTemplate"? You should use "cDocumentTemplate".
Maybe, you forgot some installation step that would compile or install Zope's C extensions.
Ok, the problem is solved. It seems that there was some kind of a problem with the Zope source. I've downloaded the .tgz again and automagically it worked. Thanks again! -- Stelian Iancu steliani@cytanet.com.cy They say we are thinking in bits ...
participants (2)
-
Dieter Maurer -
Stelian Iancu