[ZODB-Dev] ZODB3.3.0b1 and ExtensionClass?

Christian Robottom Reis kiko at async.com.br
Fri Jun 25 11:14:55 EDT 2004


I've started to get IndexedCatalog working with ZODB3.3. So far, it's
been quite miserable, however. The reason is that IndexedCatalog's base
class uses ExtensionClasses, and I've been unable to get ExtensionClass
set up at all with 3.3.

Being unable to find an ExtensionClass package, I pulled the code from
svn head, compiled and installed it. Now the tricky part after this is
getting Persistence to compile, because it wasn't by default -- I gave up
trying to nudge zpkgtool to compile it for me and ended up doing it
manually for the heck of it.

However, after getting EC, ZODB-3.3 and the Persistence bits installed
into a local directory, starting up the imports gets me as far as

      File
      "/home/kiko/Z33/lib/python2.3/site-packages/Persistence/__init__.py",
      line 48, in ?
          from Persistence.mapping import PersistentMapping
      ImportError: dynamic module does not define init function
      (initPersistence)

Which indeed from the source code does not exist; though we do have an
init_Persistence function. I think that some sort of skew is happening
here, but I can't exactly explicit what not having paid attention to
what went on over these past months wrt ExtensionClass and ZODB-3.3.

So I'm at a point where I want to understand my alternatives.

    a) Is ZODB-3.3 + ExtensionClass broken right now, or do I need to
       learn the magical incantations that will make it fly?

       Is there an ExtensionClass tarball I should be using?

       I assume that some Zope packages use EC and because of that there
       is some way it should work, but I can't see how.

    b) Is this at all useful for me, however? Is ExtensionClass still
       code-compatible (at the C level) to my extension, or am I better
       off rewriting the bits that depend on EC to stop doing so?

I'm leaning towards b) after spending a morning chasing compile and
import errors all over the place. Anybody had similar problems moving
on to 3.3?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331


More information about the ZODB-Dev mailing list