Bug 113918 - pytone faild to start
Summary: pytone faild to start
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: ConsoleApps (show other bugs)
Version: Beta 3
Hardware: i586 All
: P5 - None : Normal
Target Milestone: ---
Assignee: Jan Matejek
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-29 16:35 UTC by Pavel Nemec
Modified: 2005-10-12 12:28 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Nemec 2005-08-29 16:35:43 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."
Comment 1 Lukas Tinkl 2005-08-30 12:23:06 UTC
Looks like you have to first configure pytone to point to a directory 
containing your music; have you done that? 
Comment 2 Pavel Nemec 2005-08-30 13:21:33 UTC
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
Comment 3 Lukas Tinkl 2005-10-03 10:48:34 UTC
new maintainer 
Comment 4 Jan Matejek 2005-10-11 13:00:25 UTC
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
Comment 5 Pavel Nemec 2005-10-12 11:16:38 UTC
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

Comment 6 Jan Matejek 2005-10-12 11:32:23 UTC
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?
Comment 7 Pavel Nemec 2005-10-12 12:28:48 UTC
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