Opened 7 years ago

Last modified 3 years ago

#893 new task

anydbm.error with svn trunk and 1.2.16

Reported by: anonymous Owned by: quinox
Priority: normal Milestone: Release 1.3.0
Component: nicotine Version: SVN
Keywords: Cc:

Description

This happens every time I scan my shares. I've tried using just a small directory with a few songs and it still happens. I'm using Python 2.7.2.

I've tried removing my .nicotine directory, different song files, it always fails with svn or 1.2.16.

Traceback (most recent call last):
  File "/home/rob/projects/nicotine/nicotine+/pynicotine/gtkgui/frame.py", line 2085, in _RescanFinished
    self.np.config.setShares(*data)
  File "/home/rob/projects/nicotine/nicotine+/pynicotine/config.py", line 855, in setShares
    self._storeObjects(storable_objects)
  File "/home/rob/projects/nicotine/nicotine+/pynicotine/config.py", line 861, in _storeObjects
    self.sections["transfers"][destination] = shelve.open(self.filename + prefix, flag='n')
  File "/usr/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/usr/lib/python2.7/anydbm.py", line 82, in open
    raise error, "db type could not be determined"
anydbm.error: db type could not be determined


Change History (5)

comment:1 Changed 7 years ago by anonymous

Same problem here, just at finish of "building index":

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/pynicotine/gtkgui/frame.py", line 2078, in _RescanFinished
    self.np.config.setShares(*data)
  File "/usr/lib64/python2.7/site-packages/pynicotine/config.py", line 805, in setShares
    self.sections["transfers"]["sharedfiles"] = shelve.open(self.filename+".files.db",'n')
  File "/usr/lib64/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/lib64/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/usr/lib64/python2.7/anydbm.py", line 82, in open
    raise error, "db type could not be determined"

comment:2 Changed 7 years ago by anonymous

Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/pynicotine/gtkgui/frame.py", line 2078, in _RescanFinished

self.np.config.setShares(*data)

File "/usr/lib/python2.7/site-packages/pynicotine/config.py", line 805, in setShares

self.sectionstransfers?sharedfiles? = shelve.open(self.filename+".files.db",'n')

File "/usr/lib/python2.7/shelve.py", line 239, in open

return DbfilenameShelf?(filename, flag, protocol, writeback)

File "/usr/lib/python2.7/shelve.py", line 223, in init

Shelf.init(self, anydbm.open(filename, flag), protocol, writeback)

File "/usr/lib/python2.7/anydbm.py", line 82, in open

raise error, "db type could not be determined"

anydbm.error: db type could not be determined

comment:3 Changed 7 years ago by jammebello@…

Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/pynicotine/gtkgui/frame.py", line 2078, in _RescanFinished

self.np.config.setShares(*data)

File "/usr/lib/python2.7/site-packages/pynicotine/config.py", line 805, in setShares

self.sectionstransfers?sharedfiles? = shelve.open(self.filename+".files.db",'n')

File "/usr/lib/python2.7/shelve.py", line 239, in open

return DbfilenameShelf?(filename, flag, protocol, writeback)

File "/usr/lib/python2.7/shelve.py", line 223, in init

Shelf.init(self, anydbm.open(filename, flag), protocol, writeback)

File "/usr/lib/python2.7/anydbm.py", line 82, in open

raise error, "db type could not be determined"

anydbm.error: db type could not be determined

comment:4 Changed 7 years ago by anonymous

would it make any difference if your nicotine folder was directly in your user folder?

btw, i cant use buddy shares becuse they fail to build index also, but normal shares work ok for me. using svn rev1513

comment:5 Changed 3 years ago by gfarmerfr

Milestone: Release 1.2.17Release 1.3.0
Note: See TracTickets for help on using tickets.