FreeBSD Port: python-2.4.a3
Hye-Shik Chang
perky at i18n.org
Thu Dec 2 08:17:39 PST 2004
On Thu, Dec 02, 2004 at 05:07:12PM +0100, Tilman Linneweh wrote:
> * Hye-Shik Chang [Thu, 02 Dec 2004 at 16:55 GMT]:
> >> Everytime I try doing something with bsddb, I get this error:
> >>
> >> >>> import bsddb
> >> >>> db = bsddb.btopen("myfile","c")
> >> Traceback (most recent call last):
> >> File "<stdin>", line 1, in ?
> >> File "/usr/local/lib/python2.4/bsddb/__init__.py", line 303, in btopen
> >> e = _openDBEnv()
> >> File "/usr/local/lib/python2.4/bsddb/__init__.py", line 339, in _openDBEnv
> >> e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD |
> >> db.DB_INIT_LOCK | db.DB_INIT_MPOOL)
> >> bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- architecture
> >> lacks fast mutexes: applications cannot be threaded')
> >>
> > It's a known problem of Berkeley DB on FreeBSD/amd64 (neither
> > Python's nor bsddb module's). I think you'd better to set ia32
> > emulation up to get it working in that short time.
>
> Which version of Berkley DB are you using?
> I thought db41 and db42 ports had a workaround (--with-mutex=x86/gcc-assembly
> to CONFIGURE_ARGS).
>
Aah. My memory was quite outdated, then. :)
Hye-Shik
More information about the freebsd-ports
mailing list