theintencity / rtmplite

Flash RTMP server and SIP-RTMP gateway in Python
Other
201 stars 88 forks source link

IndexError: list index out of range in rtmpclient.py #105

Closed PiotrMi closed 8 years ago

PiotrMi commented 8 years ago

Input: python rtmpclient.py "rtmp://62.113.210.250/medienasa-live/ok-magdeburg_high" file1.flv

produces following error:

Traceback (most recent call last): File "rtmpclient.py", line 36, in import os, sys, traceback, time, urlparse, socket, multitask File "/root/rtmplite/multitask.py", line 149, in revision = int('$Revision$'.split()[1]) IndexError: list index out of range

ROBERT-MCDOWELL commented 8 years ago

did you download the last version of rtmplite?

PiotrMi commented 8 years ago

yes, I cloned it an hour ago directly from github

ROBERT-MCDOWELL commented 8 years ago

how do you call rtmpclient? throught rtmplite or directly?

PiotrMi commented 8 years ago

python rtmpclient.py "rtmp://62.113.210.250/medienasa-live/ok-magdeburg_high" file1.flv

this was my call, so yeah I called it directly

ROBERT-MCDOWELL commented 8 years ago

I never tried to call directly rtmplcient.py. always used siprtmp.py. so my guess is maybe you just need to add the version number from multitak inherited from siprtmp.py. or just comment the line revision

PiotrMi commented 8 years ago

I followed the "documentation" inside rtmpclient.py where it said to call it directly. Maybe this documentation needs to updated?

ROBERT-MCDOWELL commented 8 years ago

yes you can do it thanks you can also correct this bug, it's pretty easy to do, even if you don't know too much about python. just make the patch and send it here...

theintencity commented 8 years ago

Hi Piotr,

That line #149 in multitask.py is the ramnant of moving from SVN (google code) to git (on github). It is not really needed.

You can just comment out that line in your code. Put a # at the beginning of that line to comment it out in Python.

On Thu, Nov 26, 2015 at 4:44 AM, PiotrMi notifications@github.com wrote:

Input: python rtmpclient.py "rtmp:// 62.113.210.250/medienasa-live/ok-magdeburg_high" file1.flv

produces following error:

Traceback (most recent call last): File "rtmpclient.py", line 36, in import os, sys, traceback, time, urlparse, socket, multitask File "/root/rtmplite/multitask.py", line 149, in revision = int('$Revision$'.split()[1]) IndexError: list index out of range

— Reply to this email directly or view it on GitHub https://github.com/theintencity/rtmplite/issues/105.

theintencity commented 8 years ago

I checked in the commented out multitask.py.

ROBERT-MCDOWELL commented 8 years ago

ok nice, thanks