Jason Tackaberry wrote: > On Wed, 2006-08-02 at 11:13 +0200, Dirk Meyer wrote: >> I only have this problem when creating a new database (deleting the >> .beacon dir and start again). The database I have from before still >> works without a crash. > > Yes, I've tried wiping ~/.beacon, but when I then start beacon it > creates the database fine. I don't get any errors. > >> I have no idea what MARK is and the doc inside db is .... well, not so >> good. Can you give me any hint? > > MARK is a pickle thing. Basically when you try to unpickle something > that isn't a pickled stream it will give you this error.
def _load_object_types(self):
print 'start'
for id, name, attrs, idx in self._db_query("SELECT * from types"):
print id, name, type(attrs), type(idx)
self._object_types[name] = id, cPickle.loads(str(attrs)),
cPickle.loads(str(idx))
print 'done'
start
done
start
done
start
1 dir <type 'buffer'> <type 'buffer'>
done
start
1 dir <type 'buffer'> <type 'buffer'>
2 None <type 'NoneType'> <type 'NoneType'>
ERROR beacon(329): beacon startup
Traceback (most recent call last):
File "/usr/bin/beacon", line 315, in ?
server = kaa.beacon.server.Server(database)
File "/usr/lib/python2.4/site-packages/kaa/beacon/server.py", line 88, in
__init__
self._db = Database(dbdir, None)
File "/usr/lib/python2.4/site-packages/kaa/beacon/db.py", line 111, in
__init__
mtime = (int, ATTR_SIMPLE))
File "/usr/lib/python2.4/site-packages/kaa/db.py", line 318, in
register_object_type_attrs
self._load_object_types()
File "/usr/lib/python2.4/site-packages/kaa/db.py", line 360, in
_load_object_types
self._object_types[name] = id, cPickle.loads(str(attrs)),
cPickle.loads(str(idx))
UnpicklingError: could not find MARK
Right, None is nothing you can unpickle.
Dischi
--
panic("CPU too expensive - making holiday in the ANDES!");
2.2.16 /usr/src/linux/arch/mips/kernel/traps.c
pgpVGeN5TY6dA.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Freevo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freevo-devel
