Re: [Zope] repost of ImplicitAcquirerWrapper

2000-09-18 Thread Martijn Pieters

On Sat, Sep 16, 2000 at 02:04:59PM -0400, Chalu Kim wrote:
 Here is the trace;
 
 2000-09-16T17:34:55 ERROR(200) ZODB Couldn't load state for
 '\000\000\000\000\000\000\017\225'
 Traceback (innermost last):
   File /usr/local/Zope-2.2.0-src/lib/python/ZODB/Connection.py, line
 447, in setstate
 SystemError: Failed to import class ImplicitAcquirerWrapper from module
 Acquisition

 This problem occurs with w_pcgi.py with 2.2.0 source. Starting is fine
 but it renders a directory viewable but unmanageable..
 
 I tried to import and it only works when in Zope/lib/python. Others will
 result in error "No module named Acquisition".

(From a private email, also):
 In particular, the problem is related to mysqlUserFolder. The whole
 directory goes sort of sour and the directory becomes viwable but
 unmanageable.

Hmm.. I am not sure what goes on here, but I suspect that mysqlUserFolder
is at fault here. It seems it (or another faulty product) stores wrapped
objects in the ODB, and IIRC this shouldn't happen.

To be honest, I have never looked deeply into the voodoo that is
pickling/unpickling.

 I started getting into ZODB and find ways to check soundness of the
 database itself. Any pointer on this?

There are a few tools for analysis and recovery:

  - fsrecover.py, which can be found in lib/python/ZODB of a Zope
distribution, repairs damaged Data.fs files. Start with python
fsrecover.py /path/to/Data.fs.

  - tranalyzer (http://www.zope.org/Members/tsarna/Tranalyzer) let's you
look athe contents of a ZODB, in real time if necessary.

However, this is a problem with a correct pickle, but the class needed for
the unpickling isn't available. ImplicitAcquirerWrapper can never be
imported from Acquisition however.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] repost of ImplicitAcquirerWrapper

2000-09-16 Thread Martijn Pieters

On Fri, Sep 15, 2000 at 07:03:35PM -0400, Chalu Kim wrote:
 Has anyone run  into this problem?
 
 Zope Error
 
 Zope has encountered an error while publishing this resource.
 
 Error Type: SystemError
 Error Value: Failed to import class ImplicitAcquirerWrapper from
module Acquisition

What s the traceback? When do you encounter this?

If you see this when trying to start Zope, how did you install Zope? From
source? If so, did you run python wo_pcgi.py or w_pcgi.py first?

It could also be that you have a module Acquisition elsewhere in your
Python path. Try the following:

start up Python (just about anywhere except in your Zope/lib/python dir),
and type:

  import sys
  import Acquisition

If the second line doesn't give you an exception, type

  sys.modules['Acquisition']

It should tell you where it imported the module Acquisition from.

You could also try this in Zope/lib/python (cd to that directory).

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] repost of ImplicitAcquirerWrapper

2000-09-15 Thread Chalu Kim


Apology of sending multipart.

Has anyone run  into this problem?

Zope Error

Zope has encountered an error while publishing this resource.

Error Type: SystemError
Error Value: Failed to import class ImplicitAcquirerWrapper from
   module Acquisition

Thanks in advance.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )