468,284 Members | 1,565 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,284 developers. It's quick & easy.

Shelve: got DBRunRecoveryError

Hi all, I'm having a problem with a shelve.
I got (almost randomly) this error:

Traceback (most recent call last):
File "xpn.py", line 1082, in view_article
File "xpn.py", line 860, in remove_from_unreads
File "/usr/local/lib/python2.4/shelve.py", line 130, in __setitem__
self.dict[key] = f.getvalue()
File "/usr/local/lib/python2.4/bsddb/__init__.py", line 218, in
self.db[key] = value
DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, run database
recovery -- PANIC: Invalid argument')

The error happens whe I try to replace an element inside the shelve with
this function:

def remove_from_unreads(self,article):
#remove article from unreads
articles=shelve.open(os.path.join(self.wdir,"group s_info/",self.group_to_thread,self.group_to_thread))
if xpn_article!=None:

What could be the problem?

Never eat more than you can lift.

|\ | |HomePage : http://nem01.altervista.org
| \|emesis |XPN (my nr): http://xpn.altervista.org

Oct 21 '05 #1
0 1206

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Rami A. Kishek | last post: by
1 post views Thread by Kris Caselden | last post: by
reply views Thread by ex laguna | last post: by
reply views Thread by bill.oldroyd | last post: by
3 posts views Thread by Michele Petrazzo | last post: by
13 posts views Thread by 7stud | last post: by
5 posts views Thread by gluckj | last post: by
1 post views Thread by Matthew Schibler | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.