Zope startup error: Archetypes: IndexError: list index out of range
Hi, OK, I rebuilt Zope because I think last time, I didn't have a clean directory. This time, when I startup Zope, I get: ------ 2005-09-01T17:09:48 ERROR(200) Archetypes None Traceback (most recent call last): File "/home/zope/zopehome/Products/Archetypes/content_driver/__init__.py", line 15, in ? File "/home/zope/zopehome/Products/Archetypes/content_driver/MSWord.py", line 20, in ? File "/home/zope/zopehome/Products/Archetypes/debug.py", line 155, in log File "/home/zope/zopehome/Products/Archetypes/debug.py", line 122, in munge_message File "/home/zope/zopehome/Products/Archetypes/debug.py", line 112, in generateFrames File "/usr/local/lib/python2.3/inspect.py", line 795, in stack return getouterframes(sys._getframe(1), context) File "/usr/local/lib/python2.3/inspect.py", line 776, in getouterframes framelist.append((frame,) + getframeinfo(frame, context)) File "/usr/local/lib/python2.3/inspect.py", line 751, in getframeinfo lines, lnum = findsource(frame) File "/usr/local/lib/python2.3/inspect.py", line 435, in findsource if pat.match(lines[lnum]): break IndexError: list index out of range ------ 2005-09-01T17:09:48 ERROR(200) Zope Couldn't install Archetypes Traceback (most recent call last): File "/space/users/zope/Zope274/lib/python/OFS/Application.py", line 751, in install_product initmethod(context) File "/home/zope/zopehome/Products/Archetypes/__init__.py", line 72, in initialize File "/home/zope/zopehome/Products/Archetypes/examples/__init__.py", line 1, in ? from config import validation File "/home/zope/zopehome/Products/Archetypes/examples/DDocument.py", line 1, in ? File "/home/zope/zopehome/Products/Archetypes/public.py", line 4, in ? File "/home/zope/zopehome/Products/Archetypes/BaseContent.py", line 8, in ? File "/home/zope/zopehome/Products/Archetypes/BaseObject.py", line 18, in ? File "/home/zope/zopehome/Products/Archetypes/Schema.py", line 12, in ? File "/home/zope/zopehome/Products/Archetypes/BaseUnit.py", line 11, in ? File "/home/zope/zopehome/Products/Archetypes/content_driver/__init__.py", line 25, in ? File "/home/zope/zopehome/Products/Archetypes/debug.py", line 155, in log File "/home/zope/zopehome/Products/Archetypes/debug.py", line 122, in munge_message File "/home/zope/zopehome/Products/Archetypes/debug.py", line 112, in generateFrames File "/usr/local/lib/python2.3/inspect.py", line 795, in stack return getouterframes(sys._getframe(1), context) File "/usr/local/lib/python2.3/inspect.py", line 776, in getouterframes framelist.append((frame,) + getframeinfo(frame, context)) File "/usr/local/lib/python2.3/inspect.py", line 751, in getframeinfo lines, lnum = findsource(frame) File "/usr/local/lib/python2.3/inspect.py", line 435, in findsource if pat.match(lines[lnum]): break IndexError: list index out of range Traceback (most recent call last): File "/space/users/zope/Zope274/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/space/users/zope/Zope274/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/space/users/zope/Zope274/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/space/users/zope/Zope274/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/space/users/zope/Zope274/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/space/users/zope/Zope274/lib/python/Zope/App/startup.py", line 96, in startup OFS.Application.initialize(application) File "/space/users/zope/Zope274/lib/python/OFS/Application.py", line 278, in initialize initializer.initialize() File "/space/users/zope/Zope274/lib/python/OFS/Application.py", line 305, in initialize self.install_products() File "/space/users/zope/Zope274/lib/python/OFS/Application.py", line 573, in install_products return install_products(app) File "/space/users/zope/Zope274/lib/python/OFS/Application.py", line 604, in install_products folder_permissions, raise_exc=debug_mode) File "/space/users/zope/Zope274/lib/python/OFS/Application.py", line 751, in install_product initmethod(context) File "/space/users/zope/zopehome/Products/validation/validators/../__init__.py", line 72, in initialize File "/space/users/zope/zopehome/Products/validation/validators/../__init__.py", line 1, in ? from config import validation File "/home/zope/zopehome/Products/Archetypes/examples/DDocument.py", line 1, in ? File "/home/zope/zopehome/Products/Archetypes/public.py", line 4, in ? File "/home/zope/zopehome/Products/Archetypes/BaseContent.py", line 8, in ? File "/home/zope/zopehome/Products/Archetypes/BaseObject.py", line 18, in ? File "/home/zope/zopehome/Products/Archetypes/Schema.py", line 12, in ? File "/home/zope/zopehome/Products/Archetypes/BaseUnit.py", line 11, in ? File "/space/users/zope/zopehome/Products/validation/validators/../__init__.py", line 25, in ? File "/home/zope/zopehome/Products/Archetypes/debug.py", line 155, in log File "/home/zope/zopehome/Products/Archetypes/debug.py", line 122, in munge_message File "/home/zope/zopehome/Products/Archetypes/debug.py", line 112, in generateFrames File "/usr/local/lib/python2.3/inspect.py", line 795, in stack return getouterframes(sys._getframe(1), context) File "/usr/local/lib/python2.3/inspect.py", line 776, in getouterframes framelist.append((frame,) + getframeinfo(frame, context)) File "/usr/local/lib/python2.3/inspect.py", line 751, in getframeinfo lines, lnum = findsource(frame) File "/usr/local/lib/python2.3/inspect.py", line 435, in findsource if pat.match(lines[lnum]): break IndexError: list index out of range Why is it so hard to get Zope going under Solaris???? (is that why there were separate downloads for Solaris until 2.7 ??) Thanks, Paul
On 2 Sep 2005, at 02:38, Paul Sue wrote:
Why is it so hard to get Zope going under Solaris???? (is that why there were separate downloads for Solaris until 2.7 ??)
Since this is an Archetypes question you might be better off asking on a Plone and/or Archetypes list. Running Zope on Solaris has one major problem. It will be very slow. There is nothing you can do about that, except for using a different platform. The separate download for Solaris was just a compiled binary, nothing special. jens
Paul Sue wrote:
Hi,
OK, I rebuilt Zope because I think last time, I didn't have a clean directory.
Simple advise: don't use Solaris unless you really really have to. Especially not for an app server, but even running a storage server will cause you unnecessary pain... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Paul Sue wrote at 2005-9-1 18:38 -0700:
... File "/usr/local/lib/python2.3/inspect.py", line 751, in getframeinfo lines, lnum = findsource(frame) File "/usr/local/lib/python2.3/inspect.py", line 435, in findsource if pat.match(lines[lnum]): break IndexError: list index out of range
This is a Python bug -- triggered when the filenames registered in "*.pyc" files are neither absolute nor consist of a simple name only. Remove all "*.pyc" files from you Zope tree and try again: find <zopedir> -name '*.pyc' | xargs rm
Why is it so hard to get Zope going under Solaris????
The problems you are reporting have nothing to do with Solaris. I do not like Solaris, but this time it is innocent. -- Dieter
participants (4)
-
Chris Withers -
Dieter Maurer -
Jens Vagelpohl -
Paul Sue