Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks to daftcat for everything. I think I am getting close, but still not quite there.
Trying the make posix for rtmpdump per the instructions above after updating the Makefile line, I am getting the following errors. I'm sure I'm overlooking a missing dependency, but haven't been able to figure it out yet.
Thanks for the help!
Code:
make[1]: Entering directory `/home/username/mlbviewer-svn/rtmpdump'
make[2]: Entering directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2 -c -o rtmp.o rtmp.c
rtmp.c:37:25: error: openssl/ssl.h: No such file or directory
rtmp.c:38:25: error: openssl/rc4.h: No such file or directory
rtmp.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:43:25: error: openssl/sha.h: No such file or directory
handshake.h:44:26: error: openssl/hmac.h: No such file or directory
In file included from rtmp.c:123:
handshake.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
from rtmp.c:123:
dh.h:75:24: error: openssl/bn.h: No such file or directory
dh.h:76:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:59,
from rtmp.c:123:
dh.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
from rtmp.c:123:
dh.h:126: error: expected ‘)’ before ‘y’
dh.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dh.h:212: error: expected ‘)’ before ‘*’ token
dh.h:246: error: expected ‘)’ before ‘*’ token
dh.h:282: error: expected ‘)’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:91: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:91: error: (Each undeclared identifier is reported only once
handshake.h:91: error: for each function it appears in.)
handshake.h:93: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:93: error: expected ‘;’ before ‘ctx’
handshake.h:95: error: ‘rc4keyIn’ undeclared (first use in this function)
handshake.h:95: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:96: error: ‘rc4keyOut’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_CTX_init’
handshake.h:98: error: ‘ctx’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_Init_ex’
handshake.h:98: warning: implicit declaration of function ‘EVP_sha256’
handshake.h:99: warning: implicit declaration of function ‘HMAC_Update’
handshake.h:100: warning: implicit declaration of function ‘HMAC_Final’
handshake.h:100: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
handshake.h:105: warning: implicit declaration of function ‘RC4_set_key’
handshake.h:91: warning: unused variable ‘digest’
handshake.h: In function ‘HMACsha256’:
handshake.h:242: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:242: error: expected ‘;’ before ‘ctx’
handshake.h:244: error: ‘ctx’ undeclared (first use in this function)
handshake.h: In function ‘CalculateDigest’:
handshake.h:255: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:256: warning: unused variable ‘message’
handshake.h: In function ‘VerifyDigest’:
handshake.h:270: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:270: warning: unused variable ‘calcDigest’
handshake.h: In function ‘HandShake’:
handshake.h:345: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:345: error: expected ‘;’ before ‘keyIn’
handshake.h:346: error: expected ‘;’ before ‘keyOut’
handshake.h:411: warning: implicit declaration of function ‘DHInit’
handshake.h:411: warning: assignment makes pointer from integer without a cast
handshake.h:422: warning: implicit declaration of function ‘DHGenerateKey’
handshake.h:429: warning: implicit declaration of function ‘DHGetPublicKey’
handshake.h:445: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
In file included from rtmp.c:123:
handshake.h:532: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
handshake.h:546: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:546: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:546: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:486: warning: unused variable ‘digestResp’
handshake.h:692: warning: implicit declaration of function ‘RC4’
handshake.h:624: warning: unused variable ‘digest’
handshake.h:623: warning: unused variable ‘signature’
handshake.h: In function ‘SHandShake’:
handshake.h:720: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:720: error: expected ‘;’ before ‘keyIn’
handshake.h:721: error: expected ‘;’ before ‘keyOut’
handshake.h:803: warning: assignment makes pointer from integer without a cast
handshake.h:838: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:920: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:920: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:920: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:857: warning: unused variable ‘digestResp’
handshake.h:986: warning: unused variable ‘digest’
handshake.h:985: warning: unused variable ‘signature’
rtmp.c: In function ‘RTMP_TLS_Init’:
rtmp.c:207: warning: implicit declaration of function ‘SSL_load_error_strings’
rtmp.c:208: warning: implicit declaration of function ‘SSL_library_init’
rtmp.c:209: warning: implicit declaration of function ‘OpenSSL_add_all_digests’
rtmp.c:210: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:210: warning: implicit declaration of function ‘SSL_CTX_new’
rtmp.c:210: warning: implicit declaration of function ‘SSLv23_method’
rtmp.c:211: warning: implicit declaration of function ‘SSL_CTX_set_options’
rtmp.c:211: error: ‘SSL_OP_ALL’ undeclared (first use in this function)
rtmp.c:212: warning: implicit declaration of function ‘SSL_CTX_set_default_verify_paths’
rtmp.c: In function ‘RTMP_Init’:
rtmp.c:221: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c: In function ‘RTMP_Connect1’:
rtmp.c:794: warning: implicit declaration of function ‘SSL_new’
rtmp.c:794: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:795: warning: implicit declaration of function ‘SSL_set_fd’
rtmp.c:796: warning: implicit declaration of function ‘SSL_connect’
rtmp.c: In function ‘RTMP_Close’:
rtmp.c:3202: warning: implicit declaration of function ‘DH_free’
rtmp.c: In function ‘RTMPSockBuf_Fill’:
rtmp.c:3232: warning: implicit declaration of function ‘SSL_read’
rtmp.c: In function ‘RTMPSockBuf_Send’:
rtmp.c:3275: warning: implicit declaration of function ‘SSL_write’
rtmp.c: In function ‘RTMPSockBuf_Close’:
rtmp.c:3291: warning: implicit declaration of function ‘SSL_shutdown’
rtmp.c:3292: warning: implicit declaration of function ‘SSL_free’
make[2]: *** [rtmp.o] Error 1
make[2]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
make[1]: *** [librtmp/librtmp.a] Error 2
make[1]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump'
make: *** [posix] Error 2
$ cp MediaService.* ~/.mlb didn't seem to do anything. i got the program running and it said login failed when i click on a game
not seeing any ~/.mlb/config directory or file. do u mean ~/mlbviewer-svn/config? still even there is no config file, except in the folder ~/mlbviewer-svn/mlbviewer there is a config.py file. when i edit that there is no line that says user= pass=
$ cp MediaService.* ~/.mlb didn't seem to do anything. i got the program running and it said login failed when i click on a game
not seeing any ~/.mlb/config directory or file. do u mean ~/mlbviewer-svn/config? still even there is no config file, except in the folder ~/mlbviewer-svn/mlbviewer there is a config.py file. when i edit that there is no line that says user= pass=
I'm not positive and I'm relatively new to this program as well but I believe you have to manually create the ~/.mlb directory and then copy all of the MediaService files to that directory. Then after you run mlbviewer the first time it will create the config file. Then you need to go back and edit to config file to include your username and password. That's what I did and I now have basic functionality working.
Code:
$mkdir -p ~/.mlb
$cp MediaService* ~/.mlb
However I am still having trouble with the nexdef aspects, and can't figure out why. I am a premium subscriber, I have enabled nexdef in my config file by setting "use_nexdef=True" and I have increased the max bit rate with "max_bps=3000000". I have autobahn.jar running but when scrolling through the options with the 'p' button I don't see anything listed higher than 1800 and the 1800 doesn't work, Does anyone have any idea what I'm doing wrong? Let me know if you need to see my config file or any output.
Thanks for your help in advance and I just want to say this is an awesome project. I can't believe I dealt with Firefox/Flash all last season when something like this was available. Thanks again
P.S I'm using svn revision 237
Last edited by onuhwt; 04-21-2010 at 11:06 PM.
Reason: Added svn revision number
if anyone is interested in knowing how to set up mlbviewer on windows 7, (should work for any windows though) let me know I may write up a guide for how I did it...
took me roughly 15 minutes start to finish once I knew what I was doing.
Thanks to daftcat for everything. I think I am getting close, but still not quite there.
Trying the make posix for rtmpdump per the instructions above after updating the Makefile line, I am getting the following errors. I'm sure I'm overlooking a missing dependency, but haven't been able to figure it out yet.
Thanks for the help!
Code:
make[1]: Entering directory `/home/username/mlbviewer-svn/rtmpdump'
make[2]: Entering directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.2c\" -DUSE_OPENSSL -O2 -c -o rtmp.o rtmp.c
rtmp.c:37:25: error: openssl/ssl.h: No such file or directory
rtmp.c:38:25: error: openssl/rc4.h: No such file or directory
rtmp.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:43:25: error: openssl/sha.h: No such file or directory
handshake.h:44:26: error: openssl/hmac.h: No such file or directory
In file included from rtmp.c:123:
handshake.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
from rtmp.c:123:
dh.h:75:24: error: openssl/bn.h: No such file or directory
dh.h:76:24: error: openssl/dh.h: No such file or directory
In file included from handshake.h:59,
from rtmp.c:123:
dh.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from handshake.h:59,
from rtmp.c:123:
dh.h:126: error: expected ‘)’ before ‘y’
dh.h:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dh.h:212: error: expected ‘)’ before ‘*’ token
dh.h:246: error: expected ‘)’ before ‘*’ token
dh.h:282: error: expected ‘)’ before ‘*’ token
In file included from rtmp.c:123:
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h:89: error: expected declaration specifiers or ‘...’ before ‘RC4_handle’
handshake.h: In function ‘InitRC4Encryption’:
handshake.h:91: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:91: error: (Each undeclared identifier is reported only once
handshake.h:91: error: for each function it appears in.)
handshake.h:93: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:93: error: expected ‘;’ before ‘ctx’
handshake.h:95: error: ‘rc4keyIn’ undeclared (first use in this function)
handshake.h:95: error: ‘RC4_KEY’ undeclared (first use in this function)
handshake.h:96: error: ‘rc4keyOut’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_CTX_init’
handshake.h:98: error: ‘ctx’ undeclared (first use in this function)
handshake.h:98: warning: implicit declaration of function ‘HMAC_Init_ex’
handshake.h:98: warning: implicit declaration of function ‘EVP_sha256’
handshake.h:99: warning: implicit declaration of function ‘HMAC_Update’
handshake.h:100: warning: implicit declaration of function ‘HMAC_Final’
handshake.h:100: warning: implicit declaration of function ‘HMAC_CTX_cleanup’
handshake.h:105: warning: implicit declaration of function ‘RC4_set_key’
handshake.h:91: warning: unused variable ‘digest’
handshake.h: In function ‘HMACsha256’:
handshake.h:242: error: ‘HMAC_CTX’ undeclared (first use in this function)
handshake.h:242: error: expected ‘;’ before ‘ctx’
handshake.h:244: error: ‘ctx’ undeclared (first use in this function)
handshake.h: In function ‘CalculateDigest’:
handshake.h:255: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:256: warning: unused variable ‘message’
handshake.h: In function ‘VerifyDigest’:
handshake.h:270: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:270: warning: unused variable ‘calcDigest’
handshake.h: In function ‘HandShake’:
handshake.h:345: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:345: error: expected ‘;’ before ‘keyIn’
handshake.h:346: error: expected ‘;’ before ‘keyOut’
handshake.h:411: warning: implicit declaration of function ‘DHInit’
handshake.h:411: warning: assignment makes pointer from integer without a cast
handshake.h:422: warning: implicit declaration of function ‘DHGenerateKey’
handshake.h:429: warning: implicit declaration of function ‘DHGetPublicKey’
handshake.h:445: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
In file included from rtmp.c:123:
handshake.h:532: warning: implicit declaration of function ‘DHComputeSharedSecretKey’
handshake.h:546: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:546: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:546: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:486: warning: unused variable ‘digestResp’
handshake.h:692: warning: implicit declaration of function ‘RC4’
handshake.h:624: warning: unused variable ‘digest’
handshake.h:623: warning: unused variable ‘signature’
handshake.h: In function ‘SHandShake’:
handshake.h:720: error: ‘RC4_handle’ undeclared (first use in this function)
handshake.h:720: error: expected ‘;’ before ‘keyIn’
handshake.h:721: error: expected ‘;’ before ‘keyOut’
handshake.h:803: warning: assignment makes pointer from integer without a cast
handshake.h:838: error: ‘SHA256_DIGEST_LENGTH’ undeclared (first use in this function)
handshake.h:920: error: ‘keyIn’ undeclared (first use in this function)
handshake.h:920: error: ‘keyOut’ undeclared (first use in this function)
handshake.h:920: error: too many arguments to function ‘InitRC4Encryption’
handshake.h:857: warning: unused variable ‘digestResp’
handshake.h:986: warning: unused variable ‘digest’
handshake.h:985: warning: unused variable ‘signature’
rtmp.c: In function ‘RTMP_TLS_Init’:
rtmp.c:207: warning: implicit declaration of function ‘SSL_load_error_strings’
rtmp.c:208: warning: implicit declaration of function ‘SSL_library_init’
rtmp.c:209: warning: implicit declaration of function ‘OpenSSL_add_all_digests’
rtmp.c:210: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:210: warning: implicit declaration of function ‘SSL_CTX_new’
rtmp.c:210: warning: implicit declaration of function ‘SSLv23_method’
rtmp.c:211: warning: implicit declaration of function ‘SSL_CTX_set_options’
rtmp.c:211: error: ‘SSL_OP_ALL’ undeclared (first use in this function)
rtmp.c:212: warning: implicit declaration of function ‘SSL_CTX_set_default_verify_paths’
rtmp.c: In function ‘RTMP_Init’:
rtmp.c:221: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c: In function ‘RTMP_Connect1’:
rtmp.c:794: warning: implicit declaration of function ‘SSL_new’
rtmp.c:794: error: ‘RTMP_TLS_ctx’ undeclared (first use in this function)
rtmp.c:795: warning: implicit declaration of function ‘SSL_set_fd’
rtmp.c:796: warning: implicit declaration of function ‘SSL_connect’
rtmp.c: In function ‘RTMP_Close’:
rtmp.c:3202: warning: implicit declaration of function ‘DH_free’
rtmp.c: In function ‘RTMPSockBuf_Fill’:
rtmp.c:3232: warning: implicit declaration of function ‘SSL_read’
rtmp.c: In function ‘RTMPSockBuf_Send’:
rtmp.c:3275: warning: implicit declaration of function ‘SSL_write’
rtmp.c: In function ‘RTMPSockBuf_Close’:
rtmp.c:3291: warning: implicit declaration of function ‘SSL_shutdown’
rtmp.c:3292: warning: implicit declaration of function ‘SSL_free’
make[2]: *** [rtmp.o] Error 1
make[2]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump/librtmp'
make[1]: *** [librtmp/librtmp.a] Error 2
make[1]: Leaving directory `/home/username/mlbviewer-svn/rtmpdump'
make: *** [posix] Error 2
You need openssl for this. Which Linux are you using? Whatever. Just use your package manager to install openssl. If that still doesn't clear it up, download and build the openssl source.
I'm not positive and I'm relatively new to this program as well but I believe you have to manually create the ~/.mlb directory and then copy all of the MediaService files to that directory. Then after you run mlbviewer the first time it will create the config file. Then you need to go back and edit to config file to include your username and password. That's what I did and I now have basic functionality working.
Code:
$mkdir -p ~/.mlb
$cp MediaService* ~/.mlb
However I am still having trouble with the nexdef aspects, and can't figure out why. I am a premium subscriber, I have enabled nexdef in my config file by setting "use_nexdef=True" and I have increased the max bit rate with "max_bps=3000000". I have autobahn.jar running but when scrolling through the options with the 'p' button I don't see anything listed higher than 1800 and the 1800 doesn't work, Does anyone have any idea what I'm doing wrong? Let me know if you need to see my config file or any output.
Thanks for your help in advance and I just want to say this is an awesome project. I can't believe I dealt with Firefox/Flash all last season when something like this was available. Thanks again
P.S I'm using svn revision 237
Nexdef isn't supported in mlbviewer 2010 yet. The implementation has changed from last year and I've been having a really hard time getting it to work on either Windows or Linux using the official flash client. Without that much working, I won't be able to figure out the details of this year's implementation.
Besides, from the support forums, it sounds like Nexdef hasn't quite found its groove yet this season. Let's put it this way. I expect Nexdef to become more stable as David Ortiz climbs above .200.
That trace is kind of helpful but I see you already have blackout defined in your config file. Even when I leave blackout blank, I don't have a parser problem. One thing I did notice is that my line numbers don't match up with yours.
It's not until around revision 210 (the last Sourceforge release) that the line numbers match up.
Did you just download this from sourceforge?
Okay, here's what I want you to do. Install subversion if you don't have it already. Then checkout the latest svn version (development version) of the code and run setup.py again.
Code:
$ sudo apt-get install subversion
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python setup.py install
Now when I post about future revisions (the post "Title" is always something like: SVN Revision 237: Some Description of What's Fixed), you'll only need to cd to this directory and run svn up, e.g.
Code:
$ cd mlbviewer-svn
$ svn up
It's an honest mistake. I was going to wait until NexDef is implemented but since Sourceforge release is obviously broken, I'll update it with the latest svn code later tonight.
No, I was already on Rev 236:
Code:
~/mlbviewer$ svn info
Path: .
URL: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk
Repository Root: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer
Repository UUID: d37ac8f2-af4a-0410-91f3-abd50a2159f9
Revision: 236
Node Kind: directory
Schedule: normal
Last Changed Author: daftcat75
Last Changed Rev: 236
Last Changed Date: 2010-04-20 00:38:22 -0400 (Tue, 20 Apr 2010)
Anyway, I updated to revision 237 and then ran the program and it actually took me to the game listings! I swear all I did was update to the latest revision (only mlbviewer.py was updated) and the listings appeared. I'm sure it was an error of mine, but I don't know what it was.
Anyway, all is not 100% yet, though. I decided to play the first game I saw, the archived KC vs. Toronto game. Since debug was still on, it gave me the url of the stream instead of actually trying to play the game. I turned debug off, expecting that this would attempt to play the game and let me know if I have rtmpdump installed correctly, but instead I got an error. I turned debug on again but this time got the same error instead of the url of the stream:
Code:
Traceback (most recent call last):
File "/usr/local/bin/mlbviewer.py", line 1508, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/bin/mlbviewer.py", line 1159, in mainloop
stream = available[current_cursor][2][myteam]
IndexError: list index out of range
So, it looked like it would have worked the very first time when I got the url, but now I'm just getting that error when I try to play a game. I'm getting to the listings page, though, so that's a great start!
~/mlbviewer$ svn info
Path: .
URL: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk
Repository Root: https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer
Repository UUID: d37ac8f2-af4a-0410-91f3-abd50a2159f9
Revision: 236
Node Kind: directory
Schedule: normal
Last Changed Author: daftcat75
Last Changed Rev: 236
Last Changed Date: 2010-04-20 00:38:22 -0400 (Tue, 20 Apr 2010)
Anyway, I updated to revision 237 and then ran the program and it actually took me to the game listings! I swear all I did was update to the latest revision (only mlbviewer.py was updated) and the listings appeared. I'm sure it was an error of mine, but I don't know what it was.
Anyway, all is not 100% yet, though. I decided to play the first game I saw, the archived KC vs. Toronto game. Since debug was still on, it gave me the url of the stream instead of actually trying to play the game. I turned debug off, expecting that this would attempt to play the game and let me know if I have rtmpdump installed correctly, but instead I got an error. I turned debug on again but this time got the same error instead of the url of the stream:
Code:
Traceback (most recent call last):
File "/usr/local/bin/mlbviewer.py", line 1508, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/bin/mlbviewer.py", line 1159, in mainloop
stream = available[current_cursor][2][myteam]
IndexError: list index out of range
So, it looked like it would have worked the very first time when I got the url, but now I'm just getting that error when I try to play a game. I'm getting to the listings page, though, so that's a great start!
Thanks a ton.
Those are still the wrong line numbers in the code. Try this:
Code:
$ sudo rm /usr/local/bin/mlbviewer.py
$ cd ~/
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python mlbviewer.py
Basically, the one you are running at /usr/local/bin/mlbviewer.py is the wrong version. I know this because the line numbers aren't right in those errors.
If you still run into problems, we'll have to figure out where the old libraries are installed and remove those too.
Those are still the wrong line numbers in the code. Try this:
Code:
$ sudo rm /usr/local/bin/mlbviewer.py
$ cd ~/
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python mlbviewer.py
Basically, the one you are running at /usr/local/bin/mlbviewer.py is the wrong version. I know this because the line numbers aren't right in those errors.
If you still run into problems, we'll have to figure out where the old libraries are installed and remove those too.
Ugh - I know what I did. The first time I installed it I tried to do a system-wide install, but then I decided to do a local install instead. So I've been updating via svn the files at /user/home/mlbviewer and thinking that I've been running the mlbviewer.py file located there, but instead I've been running system-wide version that I thought I had removed. Had I read the error messages at all instead of just posting them here, I cold have seen that. Like I figured, a silly user error. Don't know why the listings all of a sudden worked, but when I get home from work I'm going to eradicate my system of the system-wide installed version and start over again.
You need openssl for this. Which Linux are you using? Whatever. Just use your package manager to install openssl. If that still doesn't clear it up, download and build the openssl source.
I have openssl, but will try to download and build. I am using Kubuntu 10.04, so maybe I should wait until the release moves from beta to final next week before trying just in case that is the cause
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.