Bugzilla – Bug 113918
pytone faild to start
Last modified: 2005-10-12 12:28:48 UTC
pytone (python jukebox) fail to start output is: nemec@wintermute:~> pytone Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/pytone/pytone.py", line 115, in ? songdbid = songdbmanager.addsongdb(songdbname, config.database[songdbname]) File "/usr/lib/python2.4/site-packages/pytone/services/songdb.py", line 147, in addsongdb songdb = songdbs.local.songdb(id, config, self.songdbhub) File "/usr/lib/python2.4/site-packages/pytone/services/songdbs/local.py", line 151, in __init__ raise errors.configurationerror("musicbasedir '%s' of database %s is not a directory." % (self.basedir, self.id)) errors.configurationerror: PyTone configuration error: "musicbasedir '' of database main is not a directory."
Looks like you have to first configure pytone to point to a directory containing your music; have you done that?
ok i copied /etc/pytonerc to ~.pytone/ and change some values it run now but i still thing that this is bug apparently not yours Lukas
new maintainer
actually, it's rather a feature than a bug - the author decided to deliberately re-raise all exceptions instead of catching them. however, that is not nice to do to an end user, so i've made a launcher which catches those runaway exceptions, and submitted it with a new version
you could be right, but point is that if you run pyton nothing happends without telling you what to do: pnemec@wintermute: pytone PyTone configuration error: "musicbasedir '' of database main is not a directory." You had to now that you had to create config file. I think python should say this. example: PyTone configuration error: "musicbasedir '' is not set. Check/Create you configuration file see ...bla bla bla
how about this: PyTone configuration error: "musicbasedir of database main is not set". PyTone found an error in your configuration. Please check /etc/pytonerc or ~/.pytone/pytonerc do you think it is sufficient?
I think corect way is create default cfg file if no one exist. But i think sufficient will be link to help / man page. Man page for pytone do not exist. Only pytone --help. So probably add man page or enhance pyton --help output