z2 startup exception
Hello, i' ve some trouble by the migration from zope version 2.4.4 to 2.6.2. I use python 2.2 and a "Instance_Home" configuration. After Installing and compiling Zope with python2.2 it works well in the default-environment. In the context of Instance-Home a z2-startup exception appears with the following traceback: 2003-09-22T15:04:13 PANIC(300) z2 Startup exception Traceback (innermost last): File /usr/local/opt/Zope/server/Zope-2.6.2-src/z2.py, line 585, in ? (Object: ZLogger) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Zope/__init__.py, line 46, in startup (Object: startup) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Zope/App/startup.py, line 92, in startup File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/OFS/Application.py, line 409, in initialize (Object: Zope) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/OFS/Application.py, line 567, in install_products (Object: Zope) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/OFS/Application.py, line 629, in install_product (Object: Zope) (Info: PythonScripts) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Products/PythonScripts/ __init__.py, line 41, in initialize File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/App/ProductContext.py, line 335, in registerHelp File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/App/ProductContext.py, line 257, in registerHelpTopic File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/OFS/ObjectManager.py, line 272, in _setObject (Object: Help) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/HelpSys/HelpTopic.py, line 79, in manage_afterAdd (Object: PythonScript_edit.stx) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/HelpSys/HelpTopic.py, line 92, in index_object (Object: PythonScript_edit.stx) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Products/ZCatalog/ZCata log.py, line 500, in catalog_object (Object: catalog) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Products/ZCatalog/Catal og.py, line 377, in catalogObject File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Products/PluginIndexes/ TextIndex/TextIndex.py, line 309, in index_object (Object: SearchableText) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/ZODB/Connection.py, line 554, in setstate File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/ZODB/Connection.py, line 590, in _set_ghost_state ImportError: No module named Splitter any ideas ? Ralph
Arenz, Ralph wrote at 2003-9-22 15:13 +0200:
... /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Products/ZCatalog/Catal og.py, line 377, in catalogObject File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/Products/PluginIndexes/ TextIndex/TextIndex.py, line 309, in index_object (Object: SearchableText) File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/ZODB/Connection.py, line 554, in setstate File /usr/local/opt/Zope/server/Zope-2.6.2-src/lib/python/ZODB/Connection.py, line 590, in _set_ghost_state ImportError: No module named Splitter
During product installation (done automatically during Zope startup) some product wants to register its help but the help system's catalog has some problem with the "SearchableText" index. It references a "Splitter" object but this object cannot be loaded because the module "Splitter" defining the class is not found. Unfortunately, I do not know why this happens... Dieter
Arenz, Ralph wrote:
ImportError: No module named Splitter
This is usually indicitive of Zope being unpacked with something other than GNU tar. You know, for the frequency this problem occurs you'd think something could actually be done about it that would solve it forever. Waiting for all the versions of tar in the world to suddenly agree on how to handle path names containing over 100 characters isn't a terribly effective approach. What would be really swift, is if Zope Corp just restructured their code so there were no longer any paths that exceeded said limit. -- Jamie Heilman http://audible.transient.net/~jamie/ "Paranoia is a disease unto itself, and may I add, the person standing next to you may not be who they appear to be, so take precaution." -Sathington Willoughby
On Monday 22 September 2003 03:31 pm, Jamie Heilman wrote:
This is usually indicitive of Zope being unpacked with something other than GNU tar.
You know, for the frequency this problem occurs you'd think something could actually be done about it that would solve it forever. Waiting for all the versions of tar in the world to suddenly agree on how to handle path names containing over 100 characters isn't a terribly effective approach. What would be really swift, is if Zope Corp just restructured their code so there were no longer any paths that exceeded said limit.
Well, since Gnu Tar is available to everyone, I think it *is* a worldwide open standard on how to handle long pathnames in tar files. Other tar programs apparently do not handle them at all. So I think there's a pretty clear cut case here that those other tar programs are simply broken. And anyway, how many tar programs are you aware of? The broken tar I know of is specifically the System 5 derived tar that comes with Solaris -- are there others? The lesson is, if you have Solaris, your first step is to throw out all the utilities and install the Gnu versions. They are AFAICT, without exception better software. Otherwise, while you're at it, you might as well convert all the filenames to 8.3 notation since DOS and VMS can't handle long filenames. Sorry for the sarcasm, but I don't have much sympathy for pandering to broken programs. There's too much *useful* stuff ZC could be spending their time on, to waste energy working around broken and obsolete utilities. I'd *much* rather see a solid Zope 3 with component/interface model as promised. Just my two cents, ;-) Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
On Mon, Sep 22, 2003 at 03:56:51PM -0500, Terry Hancock wrote:
On Monday 22 September 2003 03:31 pm, Jamie Heilman wrote:
This is usually indicitive of Zope being unpacked with something other than GNU tar.
You know, for the frequency this problem occurs you'd think something could actually be done about it that would solve it forever. Waiting for all the versions of tar in the world to suddenly agree on how to handle path names containing over 100 characters isn't a terribly effective approach. What would be really swift, is if Zope Corp just restructured their code so there were no longer any paths that exceeded said limit.
Well, since Gnu Tar is available to everyone, <snip>
So are most Windows viruses, that doesn't mean I should install it. There are many operating systems that do not ship with GNU tar including OpenBSD. If old style tar works, then there is no need to upgrade. Perhaps the solution is simply to add a note to the install instructions indicating that one should probably use GNU tar or something that handles long path names if/when problems are encountered. Maybe it's already in the FAQ somewhere and people just don't read it before screaming for help. Yup, it's there, right at the top under Installing Zope, maybe it needs pictures.. -- Dave =============================================================== | <- You must be smarter than this stick to ride the Internet -Mike Handler ===============================================================
On Monday 22 September 2003 09:07 pm, Dave Hall wrote:
On Mon, Sep 22, 2003 at 03:56:51PM -0500, Terry Hancock wrote:
On Monday 22 September 2003 03:31 pm, Jamie Heilman wrote:
This is usually indicitive of Zope being unpacked with something other than GNU tar.
Well, since Gnu Tar is available to everyone, <snip>
So are most Windows viruses, that doesn't mean I should install it.
There are many operating systems that do not ship with GNU tar including OpenBSD. If old style tar works, then there is no need to upgrade.
I agree completely. Unfortunately, your "if clause" is false: old style tar does not work. ;-) Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
Terry Hancock wrote:
On Monday 22 September 2003 03:31 pm, Jamie Heilman wrote:
Waiting for all the versions of tar in the world to suddenly agree on how to handle path names containing over 100 characters isn't a terribly effective approach. What would be really swift, is if Zope Corp just restructured their code so there were no longer any paths that exceeded said limit.
Well, since Gnu Tar is available to everyone, I think it *is* a worldwide open standard on how to handle long pathnames in tar files. Other tar programs apparently do not handle them at all. So I think there's a pretty clear cut case here that those other tar programs are simply broken.
I didn't say anything about standards, but since you bring it up http://www.gnu.org/manual/tar/html_node/tar_117.html#SEC112
And anyway, how many tar programs are you aware of? The broken tar I know of is specifically the System 5 derived tar that comes with Solaris -- are there others?
Several, but its irrelevant, the problem is either worth fixing or it isn't, and the only way to fix it to re-arrange the source. I mean if you're going to tell people to download a new tar you might as well tell them to grab cvs and just check the source out directly avoiding the whole mess. There is a note about tar pecularites in the FAQ document inside the tarball... which is fine I guess, but its evidently not enough. I think the real problem is that the symptoms of the problem tend vary, sometimes the breakage doesn't manifest as a checksum error, or it scrolls off the console too fast to see or something, so people invariably end up asking the list. Anyway, I sort of doubt the source will change, but it would avoid the problem, and it would make it easier on the newbies. Somebody told me this community was into that. -- Jamie Heilman http://audible.transient.net/~jamie/ "You came all this way, without saying squat, and now you're trying to tell me a '56 Chevy can beat a '47 Buick in a dead quarter mile? I liked you better when you weren't saying squat kid." -Buddy
On Monday 22 September 2003 09:23 pm, Jamie Heilman wrote:
I didn't say anything about standards, but since you bring it up http://www.gnu.org/manual/tar/html_node/tar_117.html#SEC112
Okay. Touche. But I still find it hard to accept the idea that a program that can handle an arbitrarily long pathname should be considered the "wrong" implementation. That's obviously what you would intuitively expect out of an archiver program.
There is a note about tar pecularites in the FAQ document inside the tarball... which is fine I guess, but its evidently not enough. I think the real problem is that the symptoms of the problem tend vary, sometimes the breakage doesn't manifest as a checksum error, or it scrolls off the console too fast to see or something, so people invariably end up asking the list. Anyway, I sort of doubt the source will change, but it would avoid the problem, and it would make it easier on the newbies. Somebody told me this community was into that.
Hmm. Well, modifying it so that it would break more spectacularly would probably be good: One could imagine having a check for a file which happens to have a long pathname and raising an exception with a "Corrupted archive extraction -- please be sure you are using a Gnu compatible tar program" message. But the directory structure of a program is of practical documentary use to those who work on it, and even to people like me who simply use it for reference. I would find Zope unusable without the ability to find stuff in the source code, and if "AccessControl" suddenly became "AC" or something, purely for brevity, the code would become much less readable for me. So I'd be really unhappy if the code was actually modified to accomodate tar programs with path limits. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
On Mon, Sep 22, 2003 at 11:11:07PM -0500, Terry Hancock wrote:
So I'd be really unhappy if the code was actually modified to accomodate tar programs with path limits.
Agreed. I think the documentation is pretty clear on the subject. For people that don't want to read the FAQ, that's what support contracts are for :) -- Dave =============================================================== | <- You must be smarter than this stick to ride the Internet -Mike Handler ===============================================================
Terry Hancock wrote:
So I'd be really unhappy if the code was actually modified to accomodate tar programs with path limits.
You think you would be huh? The irony is the code that keeps triggering the problem is practically all in TextIndex which now has multiple replacements that are billed as being better than the original. So not only would it be a relatively straight-forward change, it might get done eventually due to deprecation anyway (although afaik there are no plans to deprecate the old TextIndex support). -- Jamie Heilman http://audible.transient.net/~jamie/ "...thats the metaphorical equivalent of flopping your wedding tackle into a lion's mouth and flicking his lovespuds with a wet towel, pure insanity..." -Rimmer
--On Montag, 22. September 2003 21:34 Uhr -0700 Jamie Heilman <jamie@audible.transient.net> wrote:
Terry Hancock wrote:
So I'd be really unhappy if the code was actually modified to accomodate tar programs with path limits.
You think you would be huh? The irony is the code that keeps triggering the problem is practically all in TextIndex which now has multiple replacements that are billed as being better than the original. So not only would it be a relatively straight-forward change, it might get done eventually due to deprecation anyway (although afaik there are no plans to deprecate the old TextIndex support).
There is no reason to deprecate TextIndex as long as it is used (e.g. in the CMF as default textindex!). Fixing the tools is the solution and not building a workaround by removing code. -aj
Andreas Jung wrote:
There is no reason to deprecate TextIndex as long as it is used (e.g. in the CMF as default textindex!).
OK, I wasn't clear on the exact role played by TextIndex at this point, as you've got ZCTextIndex and your TextIndexNG, and SearchIndex is still somewhere back in the weeds too.
Fixing the tools is the solution and not building a workaround by removing code.
Just moving. I'm not suggesting removing the code is a good idea, I just postulated it might be deprecated in the future and this would all become moot, but from the sounds of it thats not too likely. -- Jamie Heilman http://audible.transient.net/~jamie/ "Paranoia is a disease unto itself, and may I add, the person standing next to you may not be who they appear to be, so take precaution." -Sathington Willoughby
We could always ship cpio files <wink>
What about using a TAR that works for your platform? Stinking or buggy software is not an argument for restructuring the Zope source tree. -aj --On Montag, 22. September 2003 13:31 Uhr -0700 Jamie Heilman <jamie@audible.transient.net> wrote:
Arenz, Ralph wrote:
ImportError: No module named Splitter
This is usually indicitive of Zope being unpacked with something other than GNU tar.
You know, for the frequency this problem occurs you'd think something could actually be done about it that would solve it forever. Waiting for all the versions of tar in the world to suddenly agree on how to handle path names containing over 100 characters isn't a terribly effective approach. What would be really swift, is if Zope Corp just restructured their code so there were no longer any paths that exceeded said limit.
-- Jamie Heilman http://audible.transient.net/~jamie/ "Paranoia is a disease unto itself, and may I add, the person standing next to you may not be who they appear to be, so take precaution." -Sathington Willoughby
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (7)
-
Andreas Jung -
Anthony Baxter -
Arenz, Ralph -
Dave Hall -
Dieter Maurer -
Jamie Heilman -
Terry Hancock