Donate Share

tabula-musica

Tracker: Bugs

5 "Internal error" on web start page - ID: 778585
Last Update: Comment added ( nobody )

When running the server and connecting to the homepage
I get "Internal error" in all three frames.

I'm running tabula-musica-0.3 on debian woody with
python2.2


Here's the server output...
(teapot and coffee are hostnames)
--

thomas@teapot:~/tabula-musica$ ./tabula-musica.py -d 127
start
read config etc/tabula-musica.conf
load module filelist.filedb
Start FILEDB
load module input.lirc
lirc module require pylirc extension
FILEDB: List /media/music/
load module player.mpg123
load module display.lcdproc
Error connecting LCDProc
load module server.telnet
Open UNIX socket thread
Socket: /tmp/.thomas-tabula-musica
Open Telnet thread
Adress: 0.0.0.0:10666
load module server.pipe
127
load module server.socket
load module server.web
Open Web thread
Adress: 0.0.0.0:10680
load module server.xml
Open XML thread
Adress: 0.0.0.0:10667
load module tools.debug
Start main thread
tm>FILEDB: update finished
coffee - - [27/Jul/2003 20:34:09] "GET / HTTP/1.1" 200 -
Traceback (most recent call last):
File "./lib/template.py", line 454, in
_evaluateSetExpression
return
apply(getattr(self._dino,cl),eval(args[0][1:-1]))
File "./lib/replacer.py", line 55, in getVar
var = lib.general.fireCommand("listdir",[child])
File "./lib/general.py", line 175, in fireCommand
rv = apply(commands[name]["function"],args)
File "./filelist/filedb.py", line 281, in listdir
rv[i] = __rpath[i]
KeyError: Travis/The Invisible Band
Traceback (most recent call last):
File "./server/web.py", line 288, in do_GET
data = template.parse(self)
File "./lib/template.py", line 54, in parse
self._template = self._parseFragment(self._template)
File "./lib/template.py", line 327, in _parseFragment
result = self._evaluateSetExpression(tag)
File "./lib/template.py", line 457, in
_evaluateSetExpression
raise RuntimeError, ("Failed to execute %s(%s)" %(cl))
TypeError: not enough arguments for format string
coffee - - [27/Jul/2003 20:34:09] "GET /filelist.tpl
HTTP/1.1" 500 -
Traceback (most recent call last):
File "./lib/template.py", line 454, in
_evaluateSetExpression
return
apply(getattr(self._dino,cl),eval(args[0][1:-1]))
File "./lib/replacer.py", line 36, in getVar
var = lib.general.fireCommand("status")
File "./lib/general.py", line 173, in fireCommand
if commands[name]["function"]:
KeyError: status
Traceback (most recent call last):
File "./server/web.py", line 288, in do_GET
data = template.parse(self)
File "./lib/template.py", line 54, in parse
self._template = self._parseFragment(self._template)
File "./lib/template.py", line 327, in _parseFragment
result = self._evaluateSetExpression(tag)
File "./lib/template.py", line 457, in
_evaluateSetExpression
raise RuntimeError, ("Failed to execute %s(%s)" %(cl))
TypeError: not enough arguments for format string
coffee - - [27/Jul/2003 20:34:09] "GET /player.tpl
HTTP/1.1" 500 -
Traceback (most recent call last):
File "./lib/template.py", line 454, in
_evaluateSetExpression
return
apply(getattr(self._dino,cl),eval(args[0][1:-1]))
File "./lib/replacer.py", line 47, in getVar
var = lib.general.fireCommand("playlist",["show"])
File "./lib/general.py", line 173, in fireCommand
if commands[name]["function"]:
KeyError: playlist
Traceback (most recent call last):
File "./server/web.py", line 288, in do_GET
data = template.parse(self)
File "./lib/template.py", line 54, in parse
self._template = self._parseFragment(self._template)
File "./lib/template.py", line 327, in _parseFragment
result = self._evaluateSetExpression(tag)
File "./lib/template.py", line 457, in
_evaluateSetExpression
raise RuntimeError, ("Failed to execute %s(%s)" %(cl))
TypeError: not enough arguments for format string
coffee - - [27/Jul/2003 20:34:09] "GET /playlist.tpl
HTTP/1.1" 500 -
tm>

--
Here's my tabula-musica.conf
[global]
name=Nihil's music server

##use query manager as player
player=mpg123
input=lirc
display=lcdproc
filelist=filedb
server=telnet,pipe,socket,web,xml
tools=debug

[filedb]
##path=path=name:path2=anothername
path=/media/music/
cache=0
##cache expire after x hours
expire=12
##random can select songs, albums or both
random=albums

[net]
port=9999
##query manager
[query]
##use two players, both xmms
player=xmmsp:0
crossfading=0
mixer=xmmsp
##configure all files that playertype xmmsp can play
xmmsp_type=(.*\.mp3|.*\.wav|.*\.ogg|http://*)

##config for xmms player session 0
#[xmmsp:0]
##don't set session, only you know what you are doing
#program=/bin/sh
#parameter=-c "DISPLAY=:0 xmms"
(mpg123:0)

##config for xmms player session 1
#[xmmsp:1]
##don't set session, only you know what you are doing
#program=/bin/sh
#parameter=-c "DISPLAY=:1 xmms"
#[lirc]
##configfile of lirc
#config=/home/poelzi/.lircrc

##pipe is just a printout of current stats
[pipe]
pipe=/tmp/tabula-musica

[socket]
##default is /tmp/.$username.tabula-musica
#socket=/tmp/.poelzi-tabula-musica

[telnet]
##default is /tmp/.$username.tabula-musica
#socket=/tmp/.poelzi-tabula-musica

[xml]
##xml protocol for gui clients
#host = 0.0.0.0
#port = 10667
#maxclients = 10
[web]
##xml protocol for gui clients
#host = 0.0.0.0
#port = 10680
##path to templates
#path = etc/templates/web
##default theme
#theme = clara
allow_files = 1
##allows directory listening
allow_browse = 1
##allows to switch themes over server:port/[themename]/
allow_themes = 1

[lcdproc]
##display config. multi displays comma seperated
##host[:port][/template][#minscreen]
display=localhost:13666/40x4



Thomas Rynne ( thomasrynne ) - 2003-07-27 19:55

5

Open

None

Daniel Poelzleithner

Server:Web

None

Public


Comments ( 4 )




Date: 2003-07-30 22:44
Sender: nobody

Logged In: NO

Hi,
I'm getting further now. I've install pyxmms and vncserver.
The telnet server seems to work but I still get internal
error on the left hand frame when using the web server

Here's the server output:

tm>coffee - - [30/Jul/2003 23:35:34] "GET / HTTP/1.1" 200 -
Traceback (most recent call last):
File "./lib/template.py", line 454, in _evaluateSetExpression
return apply(getattr(self._dino,cl),eval(args[0][1:-1]))
File "./lib/replacer.py", line 55, in getVar
var = lib.general.fireCommand("listdir",[child])
File "./lib/general.py", line 175, in fireCommand
rv = apply(commands[name]["function"],args)
File "./filelist/filedb.py", line 281, in listdir
rv[i] = __rpath[i]
Traceback (most recent call last):
File "./lib/template.py", line 454, in _evaluateSetExpression
return apply(getattr(self._dino,cl),eval(args[0][1:-1]))
File "./lib/replacer.py", line 55, in getVar
var = lib.general.fireCommand("listdir",[child])
File "./lib/general.py", line 175, in fireCommand
rv = apply(commands[name]["function"],args)
File "./filelist/filedb.py", line 281, in listdir
rv[i] = __rpath[i]
KeyError: Travis/The Invisible Band
Traceback (most recent call last):
File "./server/web.py", line 288, in do_GET
data = template.parse(self)
File "./lib/template.py", line 54, in parse
self._template = self._parseFragment(self._template)
File "./lib/template.py", line 327, in _parseFragment
result = self._evaluateSetExpression(tag)
File "./lib/template.py", line 457, in _evaluateSetExpression
raise RuntimeError, ("Failed to execute %s(%s)" %(cl))
TypeError: not enough arguments for format stringcoffee - -
[30/Jul/2003 23:35:34] "GET /filelist.tpl HTTP/1.1" 500 -
coffee - - [30/Jul/2003 23:35:34] "GET /player.tpl HTTP/1.1"
200 -
Not found file artist
Not found file album
Not found file title
.....

thanks for any help,
Thomas




Date: 2003-07-29 15:26
Sender: nobody

Logged In: NO

I use XMMS on a vnc server, which i can controll remotely.
You should use the "query" playback manager, which controlls
xmms over the xmms plugin. This is, because the xmms plugin
contains no playlist logic yet.

i think the mpg123 plugin is depreced and is replaced by
mplayer, because mplayer supports much more file formats at
once. So i don't have to write support for every single
fileformat with a extra player.


Date: 2003-07-29 13:05
Sender: nobody

Logged In: NO

Thanks for the quick feedback.
I'll try it with XMMS -only I don't have X running on this
machine.

I've realised it couldn't have worked with mpg123 anyway, as
most of my files are a oggs anyway.

btw, I really like the modular nature of your project poelzi.

thanks
Thomas


Date: 2003-07-27 22:06
Sender: nobody

Logged In: NO

the mpg123 module is not finished yet. i will land a hugh
code batch next week, which will contains command line
player code and database backend.

-- poelzi


Log in to comment.




Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.