[egenix-users] mxBeeBase on WindowsXP with Python2.3

M.-A. Lemburg mal at lemburg.com
Sat Sep 27 16:04:15 CEST 2003


Michael Moum wrote:
> Hello all,
> 
> I've just downloaded and installed mxBeeBase using the windows installer 
> for Python2.3.  I've notice the following problems:

These should be fixed in the most recent egenix-mx-base snapshot:

http://www.egenix.com/files/python/egenix-mx-base-2.1.0-2003-08-09.zip

(It's a source package, so you'll need to compile it yourself.)

> 1) FileLock.py contains references to os.symlink, as in
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
>   File "mx\BeeBase\BeeDict.py", line 641, in __init__
>     recover=recover)
>   File "mx\BeeBase\BeeStorage.py", line 976, in __init__
>     apply(BeeStorage.__init__,(self,)+args,kws)
>   File "mx\BeeBase\BeeStorage.py", line 180, in __init__
>     filelock.lock()
>   File "mx\BeeBase\FileLock.py", line 116, in lock
>     makelink=os.symlink
> AttributeError: 'module' object has no attribute 'symlink'
> 
> symlink appears to be for Linux, not for Windows.  Is there a known fix, 
> or should I just hack my own?
> 
> 2) Running BeeDict.py as a program, so the test cases get execute, and 
> inserting the line d.commit() after the last entry and before the del 
> d,s, I get the following error:
>  >>> 2000 2003-09-25 19:46:12.71 [p6100] Committing all changes for 
> "test-BeeDict"...
> 2000 2003-09-25 19:46:12.71 [p6100]  writing key "Thorsten":
> ------------------------------------------------------------------------------- 
> 
> 'Petra'
> ------------------------------------------------------------------------------- 
> 
> Traceback (most recent call last):
>   File 
> "C:\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", 
> line 310, in RunScript
>     exec codeObject in __main__.__dict__
>   File "C:\Python23\Lib\site-packages\mx\BeeBase\BeeDict.py", line 1259, 
> in ?
>     d.commit()
>   File "C:\Python23\Lib\site-packages\mx\BeeBase\BeeDict.py", line 764, 
> in commit
>     index[hashvalue] = address
> TypeError: record address must be an integer
> 
> This also can be fixed by converting address to an integer.  Has anyone 
> else run into this, and is there an "official" fix for this, or do I 
> roll my own again?
> 
> Thanks in advance,
> Mike

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Sep 27 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::



More information about the egenix-users mailing list