[jadmin] PYYIMT Transport fault with multiple users

oliver bril oliver_bril at hotmail.com
Mon Jan 21 04:10:33 CST 2008


Norman,

Sorry for the 2 days delay.

This is the output of the commands you asked me to perfom:

Python 2.5.1 (r251:54863, Sep 25 2007, 
13:13:07)
[GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)] on sunos5
Type 
"help", "copyright", "credits" or "license" for more 
information.

>>> anydbm._defaultmod
Traceback (most 
recent call last):
  File "<stdin>", line 1, in 
<module>
NameError: name 'anydbm' is not defined
 
>>> import dbhash
Traceback (most 
recent call last):
  File "<stdin>", line 1, in <module>
  
File "/opt/contrib/imgatew/run/PYTHON/lib/python2.5/dbhash.py", line 5, in 
<module>
    import bsddb
  File 
"/opt/contrib/imgatew/run/PYTHON/lib/python2.5/site-packages/PIL/__init__.py", 
line 51, in <module>
 
ImportError: No module named _bsddb
>>>


Does this mean that i have to install the module bsddb? (http://sourceforge.net/project/showfiles.php?group_id=13900)

I looked this module up and it seems that in this case i also have to install a berkeley database or am i completely wrong?

I did a find on my python directory and found these files:

./lib/python2.5/test/test_bsddb.py
./lib/python2.5/test/test_bsddb185.py
./lib/python2.5/test/test_bsddb3.py
./lib/python2.5/test/test_bsddb.pyc
./lib/python2.5/test/test_bsddb185.pyc
./lib/python2.5/test/test_bsddb3.pyc
./lib/python2.5/test/test_bsddb.pyo
./lib/python2.5/test/test_bsddb185.pyo
./lib/python2.5/test/test_bsddb3.pyo
./lib/python2.5/bsddb

and in the bsddb directory:

__init__.py    db.pyc         dbobj.pyo      dbshelve.py    dbtables.pyc   dbutils.pyo
__init__.pyc   db.pyo         dbrecio.py     dbshelve.pyc   dbtables.pyo   test/
__init__.pyo   dbobj.py       dbrecio.pyc    dbshelve.pyo   dbutils.py
db.py          dbobj.pyc      dbrecio.pyo    dbtables.py    dbutils.pyc

Sorry as i told you earlier my knowledge of python is #@$@$ :-). I just put everything in this mail i could find.

Kind regards,

Oliver Bril






Date: Fri, 18 Jan 2008 17:04:23 +0200
From: norman at rasmussen.co.za
To: jadmin at jabber.org
Subject: Re: [jadmin] PYYIMT Transport fault with multiple users

On Jan 18, 2008 11:21 AM, oliver bril <oliver_bril at hotmail.com> wrote:






I am completely NOT familiar with 
python so I just carried out the tests you asked me to do :-).cool,
 

1. 
Disk space enough , I have 6Gb available so that shouldn't be the 
problem.yea, it sounds more like it's selecting an odd backend.
 
>>> 
s.__class__
AttributeError: __class__
>>> 
s.__module__AttributeError: __module__
 
That doesn't look good I suppose. Did I forget 
to install something?
These worry, me.  I can't think of any time python should do that.
 
>>> 
anydbm._names
['dbhash', 'gdbm', 'dbm', 
'dumbdbm']
 can you also check:

>>> anydbm._defaultmod
<module 'dbhash' from 'dbhash.py'>

which should say what it's using.  Also try:


>>> import dbhash

to find out why it's not using dbhash (if that's not what the defaultmod is)


 I thought I read the manuals well but perhaps not well 
enough.
And the files which are created are the 
following:
-rw-rw-r--   1 imgatew  prod           0 Jan 18 10:14 
testshelve.dir
-rw-rw-r--   1 imgatew  prod           0 Jan 18 10:14 
testshelve.pag

If you're getting .dir and .pag files then it's probably using 'dbm' and not 'dbhash' or 'bsddb'.

Check to see that you have the bsddb libraries correctly installed.

-- 
- Norman Rasmussen
 - Email: norman at rasmussen.co.za
 - Home page: http://norman.rasmussen.co.za/

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.jabber.org/pipermail/jadmin/attachments/20080121/5530955e/attachment.htm 


More information about the JAdmin mailing list