Registered Member
|
Excellent script for an excellent music player!
I am trying to run the script. I have setup mount points and try to connect those. As soon as the client (xmms, mpg123, beep media player, etc...) connects to the stream it is dropped immediately. Log does not show much about the reason, it only shows that the connection is dropped. -- a snip from log -- Dropping socket to XXX.XXX.XXX.XXX. Active sockets: 0 My python is 2.3.5 and my amarok is 1.2.3 Distro is gentoo. Using standard builds for both the amarok and python. Any ideas? TIA! :side: |
KDE Developer
|
I\'m not really sure which version of shouter you are using, but are you sure its configured to start a stream?
Post edited by: eean, at: 2005/06/23 09:48
Amarok Developer
|
Registered Member
|
I\'m using the current version which is on kde-apps.org (btw it is told on the description field that there is a version 0.1.4, but when I click download I get a file called: 22170-Shouter-0.1.3.tar.bz2 it looks like it is still named 0.1.3)
The Shouter.py does start a \"stream\" mount point. When I start the Shouter.py script it tells me on the bottom left corner that 2 streams started (I setup two) it listens on port 8000 also. [code:1] $ netstat -lt Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:8000 *:* LISTEN [/code:1] When I open a telnet connection to port 8000 and type (shamelessly stolen from test client included in the code ) [code:1] GET /test HTTP/1.0 Host: 192.168.0.100 User-Agent: TESTER Accept: * / * Icy-MetaData:1 [/code:1] I get the ICY 200 OK reply and the genre, etc... and the collection closes. [code:1] $ telnet delikodu 8000 Trying 138.220.26.61... Connected to testsec. Escape character is \'^]\'. GET /test HTTP/1.0 Host: 192.168.0.100 User-Agent: TESTER Accept: * / * Icy-MetaData:1 ICY 200 OK icy-notice1:Test line icy-notice2: icy-name:ho icy-genre:Mixed icy-url:delikodu icy-metaint:16384 Connection closed by foreign host. [/code:1] I tested this on another machine (gentoo also) it didn\'t work either. I get the same problem. I\'ll try to test it on another distro. Post edited by: econan, at: 2005/06/23 17:06 Post edited by: econan, at: 2005/06/23 17:07 Post edited by: econan, at: 2005/06/23 17:08 |
|
What a surprise to see that the latest version on kde-apps was some two months old. Whatever the cause, the kde-apps version should now be up-to-date. Make noise if there are still problems.
James. |
Registered Member
|
Thanks for re-uploading the file I just installed and set it up but I have exactly the same problem. XMMS sees the stream and says PRE-BUFFERING: 0KB/32KB and drops the connection right away Bottom left corner of amarok indicates that the stream started also. I can copy paste the logs if you are interested to see them. It is soo unfortunate that I cannot dig into the code right now, cause I don\'t have time |
|
If you can paste what gets printed to shouter.debug when a client tries to connect, it would be helpful. Correct output for client.py and shouter.debug should look something along these lines
client.py: [code:1] james@heorot 17:23> python client.py http://localhost:8000/amarok host = localhost port = 8000 mount=amarok icy-metaint = 16384 [80 bytes] StreamTitle=\'Laibach - B Mashina\';StreamUrl=\'http://amarok.kde.org\'; [/code:1] shouter.debug: [code:1] [Shouter] init _BaseStreamService on amarok [Shouter] Service0 start [Shouter] LivePlaylist get_play_cursor [Shouter] _BaseStreamService stream B Mashina [/code:1] I\'m currently using the latest from svn, but it\'s the same as what\'s on kde-apps. I tried xmms and it seems to be fussy though fuctional. I\'ll take a peek at it and see what\'s going wrong, though it may help (for now) to make sure that the xmms Mpeg input plugin is configured for Shoutcast metadata streaming. James. |
Registered Member
|
Wait wait wait!!!
I\'m getting somewhere. I might have a problem in my python.. Here is an output from console when trying to connect the stream. This started to appear after 0.1.4 version. [code:1] Traceback (most recent call last): File \"/usr/lib/python2.3/SocketServer.py\", line 463, in process_request_thread self.finish_request(request, client_address) File \"/usr/lib/python2.3/SocketServer.py\", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File \"/usr/lib/python2.3/SocketServer.py\", line 521, in __init__ self.handle() File \"/usr/lib/python2.3/BaseHTTPServer.py\", line 324, in handle self.handle_one_request() File \"/usr/lib/python2.3/BaseHTTPServer.py\", line 318, in handle_one_request method() File \"/home/conan/.kde3.3/share/apps/amarok/scripts/shouter/StreamController.py\", line 62, in do_GET self.send_response(404) File \"/usr/lib/python2.3/BaseHTTPServer.py\", line 378, in send_response self.send_header(\'Date\', self.date_time_string()) File \"/usr/lib/python2.3/BaseHTTPServer.py\", line 383, in send_header self.wfile.write(\"%s: %s\\r\\n\" % (keyword, value)) File \"/usr/lib/python2.3/socket.py\", line 254, in write self.flush() File \"/usr/lib/python2.3/socket.py\", line 241, in flush self._sock.sendall(buffer) error: (32, \'Broken pipe\') [/code:1] It looks like there is a problem with SocketServer.py libs. This might be a gentoo issue. Anybody using gentoo here? |
Registered Member
|
James,
I didn\'t reply your question sorry I have exact same lines as you typed there in my logs. [code:1] [Shouter] init _BaseStreamService on emre [Shouter] Service0 start [Shouter] LivePlaylist get_play_cursor [Shouter] _BaseStreamService stream Fantasmic [Shouter] handle_error trying to remove request [Shouter] Amarok on_engine_state_change: engineStateChange: playing [/code:1] I guess this handle_error is our problem. I\'ll try to recompile python to see if it will change anything. |
Registered Member
|
So I guess nobody is using gentoo and only I have that problem
Recompile of python didn\'t help for me either. I really wanted to use this, but I\'ll setup an icecast deamon since I can\'t make this work Thanks anyway! :woohoo: |
Registered Member
|
i am using gentoo, but i use python 2.4, and i dont use shouter - sorry
|
|
Hi!
I got exact the same problem while running Debian testing/unstable :( I tried both python 2.3 and python 2.4 but this doesn\'t change anything! Python 2.3 and 2.4 tested Amarok 1.2.4 Amarok Shouter 0.1.4 [code:1]alex@mirkwood:~/.kde/share/apps/amarok/scripts/shouter/test$ python client.py http://192.168.12.14:8002/amarok host = 192.168.12.14 port = 8002 mount=amarok icy-metaint = 16384 [/code:1] then I have to press Ctrl+C to get any furhter... [code:1] Traceback (most recent call last): File \"client.py\", line 58, in ? buf = s.recv( buf_size ) KeyboardInterrupt alex@mirkwood:~/.kde/share/apps/amarok/scripts/shouter/test$ [/code:1] [code:1] mirkwood.midearth.at - - [10/Jul/2005 10:32:22] \"GET /amarok HTTP/1.1\" 200 - Traceback (most recent call last): File \"/usr/lib/python2.4/SocketServer.py\", line 463, in process_request_thread self.finish_request(request, client_address) File \"/usr/lib/python2.4/SocketServer.py\", line 254, in finish_request self.RequestHandlerClass(request, client_address, self) File \"/usr/lib/python2.4/SocketServer.py\", line 521, in __init__ self.handle() File \"/usr/lib/python2.4/BaseHTTPServer.py\", line 314, in handle self.handle_one_request() File \"/usr/lib/python2.4/BaseHTTPServer.py\", line 308, in handle_one_request method() File \"/home/alex/.kde/share/apps/amarok/scripts/shouter/StreamController.py\", line 66, in do_GET service.start() File \"/home/alex/.kde/share/apps/amarok/scripts/shouter/Services.py\", line 157, in start self.req.send_response(200) File \"/usr/lib/python2.4/BaseHTTPServer.py\", line 368, in send_response self.send_header(\'Date\', self.date_time_string()) File \"/usr/lib/python2.4/BaseHTTPServer.py\", line 373, in send_header self.wfile.write(\"%s: %s\\r\\n\" % (keyword, value)) File \"/usr/lib/python2.4/socket.py\", line 256, in write self.flush() File \"/usr/lib/python2.4/socket.py\", line 243, in flush self._sock.sendall(buffer) error: (32, \'Broken pipe\') [Shouter] init _BaseStreamService on amarok [Shouter] Service0 start [Shouter] handle_error trying to remove request [Shouter] Amarok on_track_change set state = 3 [Shouter] Amarok on_track_change set state = 4 [/code:1] HELP! -> Have you found out something by now?! Another intersting fact is, that I configure Port 8000 and Port 8002 is used?!?! regards alex |
Registered Member
|
I was going to test on debian. So now I don\'t need to!
Can anybody explain what this error mean? :sick: |
|
|
Registered Member
|
Why the hell are you responding to my response? Jeez...
|
|
Finally got this working; runs great after you mess with it for a while.
Making my mount /amarok I end up using :8000//amarok in the URL and all works fine. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]