On Sun, 5 Jun 2005, Joerg Lehmann wrote:
On 05.06.05, Dag Wieers wrote:
On Sun, 29 May 2005, Joerg Lehmann wrote:
On 29.05.05, Dag Wieers wrote:
On Sun, 29 May 2005, Dag Wieers wrote:
Then when running:
[dag@emyn ~]$ pytone Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/pytone/pytone.py", line 57, in ? config.processconfig() File "/usr/lib/python2.3/site-packages/pytone/config.py", line 905, in processconfig processstandardconfig() File "/usr/lib/python2.3/site-packages/pytone/config.py", line 759, in processstandardconfig readconfigsection(section, eval(section)) File "/usr/lib/python2.3/site-packages/pytone/config.py", line 699, in readconfigsection raise ConfigError("Unkown configuration option '%s' in section '%s'" % config.ConfigError: Unkown configuration option 'server' in section 'network'
After removing the server option in the network section I got another backtrace which is related to the window size of the xterm. Apparently 80x25 is still not sufficient for pytone on startup ?
The server option has been renamed (probably that's not really critical since not many people are using it).
I think it was enabled (empty) by default, so everyone who upgrades hit this problem.
For me, a terminal size of 80x24 works perfectly.
This is what I get:
[dag@emyn ~]$ pytone Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/pytone/pytone.py", line 272, in ? m = mainscreen.mainscreen(stdscr, songdbids, playerids, plugins) File "/usr/lib/python2.3/site-packages/pytone/mainscreen.py", line 62, in __init__ self.connectborders() File "/usr/lib/python2.3/site-packages/pytone/mainscreen.py", line 260, in connectborders win.update() File "/usr/lib/python2.3/site-packages/pytone/playlistwin.py", line 203, in update self.updatescrollbar() File "/usr/lib/python2.3/site-packages/pytone/playlistwin.py", line 68, in updatescrollbar self.drawscrollbar(self.playlist.top, len(self.playlist)) File "/usr/lib/python2.3/site-packages/pytone/window.py", line 243, in drawscrollbar self.vline(3, xpos, curses.ACS_CKBOARD, self.ih-4, self.colors.scrollbar) File "/usr/lib/python2.3/site-packages/pytone/window.py", line 117, in vline self.win.vline(x, y, c, n, attr) error: wmove() returned ERR Locals by frame, innermost last
Frame ? in /usr/lib/python2.3/site-packages/pytone/pytone.py at line 280 sigtermhandler = <function sigtermhandler at 0xb75541ec> helper = <module 'helper' from '/usr/lib/python2.3/site-packages/pytone/helper.py'> curses = <module 'curses' from '/usr/lib/python2.3/curses/__init__.pyc'> locale = <module 'locale' from '/usr/lib/python2.3/locale.pyc'> stdscr = <_curses.curses window object at 0xb7d78360> songdbname = cd plugins = [(<module 'plugins.termtitle' from '/home/dag/.pytone/plugins/termtitle.pyc'>, <plugins.termtitle.config instance at 0xb75006ec>), (<module 'plugins.osdtitle' from '/home/dag/.pytone/plugins/osdtitle.pyc'>, <plugins.osdtitle.config instance at 0xb750398c>)] songdbids = ['main', 'cd'] mainscreen = <module 'mainscreen' from '/usr/lib/python2.3/site-packages/pytone/mainscreen.pyc'> playerids = ['main', None] errors = <module 'errors' from '/usr/lib/python2.3/site-packages/pytone/errors.pyc'> log = <module 'log' from '/usr/lib/python2.3/site-packages/pytone/log.pyc'> cursessetup = <function cursessetup at 0xb7506e64> gettext = <module 'gettext' from '/usr/lib/python2.3/gettext.pyc'> version = <module 'version' from '/usr/lib/python2.3/site-packages/pytone/version.py'> cursescleanup = <function cursescleanup at 0xb7554144> config = <module 'config' from '/usr/lib/python2.3/site-packages/pytone/config.py'> events = <module 'events' from '/usr/lib/python2.3/site-packages/pytone/events.pyc'> hub = <module 'hub' from '/usr/lib/python2.3/site-packages/pytone/hub.pyc'> __builtins__ = <module '__builtin__' (built-in)> __file__ = /usr/lib/python2.3/site-packages/pytone/pytone.py sys = <module 'sys' (built-in)> services = <module 'services' from '/usr/lib/python2.3/site-packages/pytone/services/__init__.pyc'> __name__ = __main__ network = <module 'network' from '/usr/lib/python2.3/site-packages/pytone/network.py'> e = [Errno 17] File exists: '/home/dag/.pytone' name = osdtitle pluginconfig = <plugins.osdtitle.config instance at 0xb750398c> signal = <module 'signal' (built-in)> m = None __doc__ = None pluginmodule = <module 'plugins.osdtitle' from '/home/dag/.pytone/plugins/osdtitle.pyc'> locallocaledir = /usr/lib/python2.3/site-packages/pytone/../locale os = <module 'os' from '/usr/lib/python2.3/os.pyc'> songdbid = cd songdbmanager = <songdbmanager(songdb manager service, stopped)>
Frame __init__ in /usr/lib/python2.3/site-packages/pytone/mainscreen.py at line 62 screen = <_curses.curses window object at 0xb7d78360> windowslayout = {'playerwin': (3, 80, 0, 0, 15), 'playlistwin': (2, 80, 21, 0, 15), 'iteminfowin': (6, 80, 3, 0, 15), 'filelistwin': (12, 80, 9, 0, 15)} plugins = [(<module 'plugins.termtitle' from '/home/dag/.pytone/plugins/termtitle.pyc'>, <plugins.termtitle.config instance at 0xb75006ec>), (<module 'plugins.osdtitle' from '/home/dag/.pytone/plugins/osdtitle.pyc'>, <plugins.osdtitle.config instance at 0xb750398c>)] songdbids = ['main', 'cd'] playerids = ['main', None] self = <mainscreen.mainscreen instance at 0xb74d746c>
Frame connectborders in /usr/lib/python2.3/site-packages/pytone/mainscreen.py at line 260 win = <playlistwin.playlistwin instance at 0xb354eacc> borderends = [] mainwindows = [<filelistwin.filelistwin instance at 0xb74d792c>, <playerwin.playerwin instance at 0xb74d780c>, <iteminfowin.iteminfowin instance at 0xb74d78cc>, <playlistwin.playlistwin instance at 0xb354eacc>] self = <mainscreen.mainscreen instance at 0xb74d746c>
Frame update in /usr/lib/python2.3/site-packages/pytone/playlistwin.py at line 203 autoplaymode = [Random] self = <playlistwin.playlistwin instance at 0xb354eacc>
Frame updatescrollbar in /usr/lib/python2.3/site-packages/pytone/playlistwin.py at line 68 self = <playlistwin.playlistwin instance at 0xb354eacc>
Frame drawscrollbar in /usr/lib/python2.3/site-packages/pytone/window.py at line 243 xpos = 79 top = 0 scrollbarbegin = 3 scrollbarheight = -4 total = 1 self = <playlistwin.playlistwin instance at 0xb354eacc>
Frame vline in /usr/lib/python2.3/site-packages/pytone/window.py at line 121 c = 4194401 attr = 512 self = <playlistwin.playlistwin instance at 0xb354eacc> n = -4 y = 79 x = 3
BTW I don't know who's responsible for centering the variables in the output, but this has already caused me spending minuted to just make the format look readable. Simply left-aligning might be better here.
Also could you create it as 2.2.3.1 or something similar, not the plus sign, otherwise I have difficulties to package it properly. I'd like to create test packages of those releases too.
These test release are really just meant as a snapshot. I'm not sure whether it's a good idea to package them. Normally, I use a pre notation, but since I don't know yet whether the next release will be PyTone 2.3.0 or 2.2.4, I used the +.
Well, I normally do not install _anything_ if it's not packaged. I'm sure there are more people like me. So releasing test packages (they do not appear in the repository) helps testing things.
Also in this case, pytone bails out if it cannot find a plugin. It would be nicer to eg. display a message (maybe with: press enter to proceed) or just log the failure and continue.
Of course, but there are so many things to do and currently my free time is very limited.
Oh, but I mention it so that it could be added to the TODO list. This way it's being listed as a known issue. I'm not implying _you_ have to fix this asap :) I don't have the time to look at the issues currently either.
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]