[pybsddb] bsddb

Jesus Cea jcea at jcea.es
Wed Mar 17 16:09:09 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/14/2010 09:11 PM, Janusz Szmidt wrote:
> To all
> durind execution one of files from bsddb packege I got the error message
>  
> 
> python /home/janusz/bsddb3-4.8.3/Lib/bsddb/__init__.py
> 
> Traceback (most recent call last):
> 
>   File "/home/janusz/bsddb3-4.8.3/Lib/bsddb/__init__.py", line 59, in
> <module>
> 
>     from bsddb.dbutils import DeadlockWrap as _DeadlockWrap
> 
>   File "/home/janusz/bsddb/__init__.py", line 344
> 
>     def hashopen(file, flag='c', mode=0o666, pgsize=None, ffactor=None,
> nelem=None,
>                                           ^
> SyntaxError: invalid syntax

"0o666" is Python 3 syntax. The relevant file is
"/home/janusz/bsddb/__init__.py". Who is the creator of this file?.

Anyway, it seems you are not installing pybsddb correctly. You can not
simply drop the package in a local directory for several reasons,
including conflicting with the stock "bsddb" library included in Python.

Install it using an EGG, setuptools, "easy_install" or "python setup.py
install". Remember to import it using "import bsddb3", not "bsddb".

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBS6DwlJlgi5GaxT1NAQJXbAP7B2zDVSjJJPuQ+lOaPgR38KDd4L7tLPGY
m9C0G4VlZJXRrcK5hHDr7i4T3XkZdZE2QLtKB2VDd2whdgoFupA7khjYu04jMrVp
a1WAxFt1TxBjaB6Pw76j3S1Tl7PZZSpy9Zc3D8gudfeQt4ATkXfA7StwCxbsuKgr
ZkOEk+P9fI8=
=zHzL
-----END PGP SIGNATURE-----



More information about the pybsddb mailing list