[ZODB-Dev] zodb - first attempt

fritz steindl zope@floSoft.net
Mon, 10 Feb 2003 17:43:04 +0100


hi list,

installation of ZODB3-3-31.1.b2-win32 went well

when i try the first example i found on zope.org ...

v v v v v v v v v v v v v v v v v v v v v v v v v v v v

from ZODB import FileStorage, DB

storage = FileStorage.FileStorage('mydatabase.fs')
db = DB(storage)
connection = db.open()
root = connection.root() 

root['friends'] = ['zope', 'python', 'zodb???'] 
get_transaction().commit()
 
connection.close()

v v v v v v v v v v v v v v v v v v v v v v v v v v v v

i receive different error messages for my first, second, third try

afterwards the error message keeps constant

=============================================================

Python 2.1.1 (#20, Jul 20 2001, 01:19:29) [MSC 32 bit (Intel)] on win32 
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help


first run -

Traceback (most recent call last):
  File "C:\Python21\myZopeDB\zodbTest.py", line 1, in ?
    from ZODB import FileStorage, DB
  File "C:\Python21\ZODB\__init__.py", line 18, in ?
    import cPersistence, Persistence 
SystemError: _PyImport_FixupExtension: module ZODB.TimeStamp not loaded
----------------------------------------------------------------------------------------------------

second run -
 
Traceback (most recent call last):
  File "C:\Python21\myZopeDB\zodbTest.py", line 1, in ? 
    from ZODB import FileStorage, DB
  File "C:\Python21\ZODB\FileStorage.py", line 142, in ?
    from ZODB.fsIndex import fsIndex 
  File "C:\Python21\ZODB\fsIndex.py", line 37, in ?
    from BTrees._fsBTree import fsBTree as _fsBTree
SystemError: _PyImport_FixupExtension: module BTrees._fsBTree not loaded
----------------------------------------------------------------------------------------------------

third run -

Traceback (most recent call last):
  File "C:\Python21\myZopeDB\zodbTest.py", line 1, in ?
    from ZODB import FileStorage, DB
ImportError: cannot import name FileStorage
----------------------------------------------------------------------------------------------------


i thought of troubles with the path and moved around my python file but that 
didn't help anyway and especially the different error messages confuse me


can somebody please lead me to the right way ...


thanks a lot


fritz
(-:fs)