Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python and SoulSeek problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Veneficuz
n00b
n00b


Joined: 09 Feb 2004
Posts: 11

PostPosted: Thu Feb 12, 2004 8:02 pm    Post subject: Python and SoulSeek problem Reply with quote

Hey,

I've just installed Gentoo on my amd64 system and everything seems to work as expected. Rather proud of myself since this is the first time I install Gentoo, and the first time I configured a kernel by hand :)

But on with the topic here. When I tried to install nicotine+pysoulseek I ran into a little problem. Everything compiles fine, but when I try to run pyslsk I get the following error message:
Code:

Nicotine supports "psyco", an inline optimizer for python
code, you can get it at http://sourceforge.net/projects/psyco/
Nicotine supports a country code blocker but that
requires a (GPL'ed) library called GeoIP. You can find it here:
C library:       http://www.maxmind.com/app/c
Python bindings: http://www.maxmind.com/app/python
(the python bindings require the C library)

Shared files database seems to be corrupted, rescan your shares
Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute 'writeback'" in  ignored
Traceback (most recent call last):
  File "/usr/bin/nicotine", line 146, in ?
    app = frame.MainApp(config)
  File "/usr/lib/python2.3/site-packages/pynicotine/gtkgui/frame.py", line 933, in __init__
    self.frame = testwin(config)
  File "/usr/lib/python2.3/site-packages/pynicotine/gtkgui/frame.py", line 166, in __init__
    self.np = NetworkEventProcessor(self, self.callback, self.logMessage, self.SetStatusText, config)
  File "/usr/lib/python2.3/site-packages/pynicotine/pynicotine.py", line 65, in __init__
    self.config.readConfig()
  File "/usr/lib/python2.3/site-packages/pynicotine/config.py", line 149, in readConfig
    sharedfiles = shelve.open(self.filename+".files.db",flag='n')
  File "/usr/lib/python2.3/shelve.py", line 231, in open
    return DbfilenameShelf(filename, flag, protocol, writeback, binary)
  File "/usr/lib/python2.3/shelve.py", line 212, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback, binary)
  File "/usr/lib/python2.3/anydbm.py", line 83, in open
    return mod.open(file, flag, mode)
  File "/usr/lib/python2.3/dbhash.py", line 16, in open
    return bsddb.hashopen(file, flag, mode)
  File "/usr/lib/python2.3/bsddb/__init__.py", line 192, in hashopen
    d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- DB_ENV->dbremove: method not permitted before open')
Exception exceptions.AttributeError: "DbfilenameShelf instance has no attribute 'writeback'" in  ignored

I've got close to zero experience with python so my attempts to debug it were futile. Anyone had this problem before or know of a solution?
_________________
"There are only 10 kinds of people; those who know binary,
those who don't and those who start counting at zero"
:: www.golden-ratio.net::
Back to top
View user's profile Send private message
dblas
n00b
n00b


Joined: 01 Nov 2002
Posts: 41

PostPosted: Thu Feb 12, 2004 8:11 pm    Post subject: Reply with quote

<snipped>
Nicotine supports a country code blocker but that
requires a (GPL'ed) library called GeoIP. You can find it here:
C library: http://www.maxmind.com/app/c
Python bindings: http://www.maxmind.com/app/python
(the python bindings require the C library)

First question, did you first install these files? It appears that Nicotine is looking for them and can't find them. It also looks like python can't find the Berkeley-db database which may be a phantom depend that you will have to emerge manually.
Back to top
View user's profile Send private message
Veneficuz
n00b
n00b


Joined: 09 Feb 2004
Posts: 11

PostPosted: Thu Feb 12, 2004 8:48 pm    Post subject: Reply with quote

Thanks for the fast answer.

I did not install those files since I thought they where optional... I've now installed those files as well as the Berkeley-db, and then re-emerged pysoulseek. But that didn't help, same error message this time around as well :(
_________________
"There are only 10 kinds of people; those who know binary,
those who don't and those who start counting at zero"
:: www.golden-ratio.net::
Back to top
View user's profile Send private message
RealGeizt
l33t
l33t


Joined: 22 Apr 2003
Posts: 700

PostPosted: Wed Mar 03, 2004 8:31 pm    Post subject: Reply with quote

hello!

i had the same problem...if you remove these files from your home dir you can fix it:

Code:
.pyslsk
.pyslsk.fileindex.db
.pyslsk.files.db
.pyslsk.mtimes.db
.pyslsk.streams.db
.pyslsk.wordindex.db


after removing the files run pyslsk again...now soulseek will run :)
Back to top
View user's profile Send private message
invaderzim
Tux's lil' helper
Tux's lil' helper


Joined: 16 Aug 2002
Posts: 93
Location: Louisville, KY

PostPosted: Sun Apr 25, 2004 6:44 pm    Post subject: Reply with quote

Try updating libdb. Here is what i have

sys-libs/db-4.1.25_p1-r3 *
sys-libs/db-4.0.14-r2 *
Back to top
View user's profile Send private message
Pythagoras1
Guru
Guru


Joined: 29 Jul 2002
Posts: 352
Location: Burgas, Bulgaria

PostPosted: Thu Jun 10, 2004 11:44 pm    Post subject: Reply with quote

RealGeizt wrote:
hello!

i had the same problem...if you remove these files from your home dir you can fix it:

Code:
.pyslsk
.pyslsk.fileindex.db
.pyslsk.files.db
.pyslsk.mtimes.db
.pyslsk.streams.db
.pyslsk.wordindex.db


after removing the files run pyslsk again...now soulseek will run :)

these files don't exist in my home dir. there's only .nicotine/ with the db file inside. if i delete this directory it makes no difference at all: nicotine still crashes. i'm running an amd64 notebok.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum