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.
Here's a problem that appeared today: I can play archived games, but if I try to play current games (either audio or video), it can't find the stream. The debug output is
Traceback (most recent call last):
File "mlbviewer.py", line 1548, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/pkg/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/rmb/src/nexdef2010/MLBviewer/mlbtv.py", line 1367, in url
game_url = reply.getElementsByTagName('url')[0].childNodes[0].data
IndexError: list index out of range
Also, before today, I could play streaming games at 128Kps, but anything higher and rtmpdump would segfault. Thanks!
When reporting errors, PLEASE provide the following information so I can try to reproduce the issue:
1. Date
2. Specific game
3. Live or archived?
4. Home or Away?
5. Speed
6. Nexdef?
I see that you reported an issue with live but not archived games. Can't reproduce that right now as there are no live games at this hour.
As for rtmpdump, try finding rtmpdump-2.2d (Google it) and update to that. If you are already updated to that version, try rebuilding it/reinstalling it. I had segfault problems with 2.2b but they went away with 2.2d.
Ok, sorry. The problem is still showing up today (3/31) when I try to watch (or listen to) either the Braves-Nationals or Tigers-Yankees game, either the home or away stream. I asked for the 800K streams, but I got the same problem when I asked for the audio streams. I'm using the nexdef branch of mlbviewer. The debug output is generally
Traceback (most recent call last):
File "mlbviewer.py", line 1548, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/pkg/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/rmb/src/nexdef2010/MLBviewer/mlbtv.py", line 1367, in url
game_url = reply.getElementsByTagName('url')[0].childNodes[0].data
IndexError: list index out of range
but I've also gotten
Traceback (most recent call last):
File "mlbviewer.py", line 1548, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/pkg/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/rmb/src/nexdef2010/MLBviewer/mlbtv.py", line 1294, in url
'sessionKey': urllib.unquote(self.cookies['ftmu']),
KeyError: 'ftmu'
a few times.
I'm running rtmpdump-2.3, but I can try going back to 2.2d.
Ok, sorry. The problem is still showing up today (3/31) when I try to watch (or listen to) either the Braves-Nationals or Tigers-Yankees game, either the home or away stream. I asked for the 800K streams, but I got the same problem when I asked for the audio streams. I'm using the nexdef branch of mlbviewer. The debug output is generally
Traceback (most recent call last):
File "mlbviewer.py", line 1548, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/pkg/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/rmb/src/nexdef2010/MLBviewer/mlbtv.py", line 1367, in url
game_url = reply.getElementsByTagName('url')[0].childNodes[0].data
IndexError: list index out of range
but I've also gotten
Traceback (most recent call last):
File "mlbviewer.py", line 1548, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/pkg/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/rmb/src/nexdef2010/MLBviewer/mlbtv.py", line 1294, in url
'sessionKey': urllib.unquote(self.cookies['ftmu']),
KeyError: 'ftmu'
a few times.
I'm running rtmpdump-2.3, but I can try going back to 2.2d.
ftmu looks to me like a cookie problem. I have nothing definitive for that except to suggest to remove the cookie file and login/logout on the website.
The other one, I'm still not able to reproduce it. I have tried home and away, audio and video, 800K for the first two live games today. Everything worked. I have seen transient errors this spring where I would get a "what happened here? enable debug" error. I would try again and it would work.
Your line numbers in the errors match up in the code so I can't even suggest that you have an old install getting in the way.
Do these errors occur all the time or are you able to get the game if you retry a few times?
Every time I've tried today or yesterday. In the past, I've been able to retry a few times and watch the game, but that doesn't seem to be working. I wonder if it's some sort of local network problem.
Every time I've tried today or yesterday. In the past, I've been able to retry a few times and watch the game, but that doesn't seem to be working. I wonder if it's some sort of local network problem.
Are you able to watch/listen to the games via the website?
Also, try the the test/stdnosoap.py script. Get the event-id from mlblistings.py and then execute:
Quote:
$ test/stdnosoap.py 14-286876-2011-03-31 | tee /tmp/mlb.log
If you still get an error, paste the contents of /tmp/mlb.log to paste.bin and send me the paste.bin url.
I'm brand new to mlbviewer, so here's everything I know to tell you about my error.
I'm running a fresh install of Ubuntu 10.10
I downloaded mlbviewer from sourceforge
I ran through the requirements page and installed the following:
setuptools
python-dev
pyxml
java
I then ran the commands
java -jar autobahn.jar
python mlbviewer.py
After setting debug=True, I get the following stack trace
Traceback (most recent call last):
File "mlbviewer.py", line 1499, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 53, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 207, in mainloop
raise Exception, detail
KeyError: '2011'
I'm brand new to mlbviewer, so here's everything I know to tell you about my error.
I'm running a fresh install of Ubuntu 10.10
I downloaded mlbviewer from sourceforge
I ran through the requirements page and installed the following:
setuptools
python-dev
pyxml
java
I then ran the commands
java -jar autobahn.jar
python mlbviewer.py
After setting debug=True, I get the following stack trace
Traceback (most recent call last):
File "mlbviewer.py", line 1499, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 53, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 207, in mainloop
raise Exception, detail
KeyError: '2011'
Sorry about that. The version on sourceforge is very old. I'll update that soon. In the meantime, go ahead and trash that mlbviewer you just downloaded and use svn to grab the latest development release off the nexdef2010 branch:
Code:
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
You'll also need rtmpdump, probably 2.2d but maybe 2.3 works as well. Google it to find it.
Setuptools, pyxml, python-dev, java, that's all good.
Not sure if NEXDEF will work just yet. It's only Opening Day and they haven't been streaming in HD during Spring Training. Set use_nexdef=False in the config file. All the speeds selected with the 'p' key should be supported (but no guarantees this early in the season.)
I am a basic (not premium) subscriber and I am getting mixed results. Detroit v NY plays OK, so we are very nearly there.
However, Atlanta v Washington and Milwaukee v Cincinatti fail with either:
Traceback (most recent call last):
File "./mlbviewer.py", line 1548, 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 "./mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/usr/local/src/mlbviewer/mlbviewer/branches/nexdef2010/MLBviewer/mlbtv.py", line 1367, in url
game_url = reply.getElementsByTagName('url')[0].childNodes[0].data
IndexError: list index out of range
one I got:
File "./mlbviewer.py", line 1548, 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 "./mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/usr/local/src/mlbviewer/mlbviewer/branches/nexdef2010/MLBviewer/mlbtv.py", line 1286, in url
self.workflow()
File "/usr/local/src/mlbviewer/mlbviewer/branches/nexdef2010/MLBviewer/mlbtv.py", line 1062, in workflow
self.login()
File "/usr/local/src/mlbviewer/mlbviewer/branches/nexdef2010/MLBviewer/mlbtv.py", line 1042, in login
raise MLBAuthError, self.error_str
MLBviewer.mlbtv.MLBAuthError: Login was unsuccessful.
I've unfortunately never been able to use the website - I can login, but flash doesn't really work. Here's the test/stdnosoap.py output: http://pastebin.com/EiKhaxZc
I am a basic (not premium) subscriber and I am getting mixed results. Detroit v NY plays OK, so we are very nearly there.
However, Atlanta v Washington and Milwaukee v Cincinatti fail with either:
Perhaps I should say that as a MLBTV Basic subscriber I am not using the nexdef plugin. (I still have last year's nextdef java plugin so once the NYY game is over I will try and see if that works with the games which fault.)
You can pretty much expect things to be a little bumpy for the first month. It's actually very surprising that they haven't made any major (or even minor) changes in the network. If there are any changes, they will probably show up in the Flash applet. It's also possible that they listened to frustration of years past and decided to roll out the unchanged product from last year while they develop and test the new product. If this is the case, the changes may be rolled out later in the month. This is all just speculation.
For those experiencing problems, please see post 3216 for how to get a more detailed debug log that I can review. Unfortunately, on my end, if I run into a problem, it usually clears with the next request. I haven't been able to get my own detailed debug logs.
I've unfortunately never been able to use the website - I can login, but flash doesn't really work. Here's the test/stdnosoap.py output: http://pastebin.com/EiKhaxZc
Where are you located and which teams are in your local blackout region?
Ah, I see it. This error again. I see the following in the paste output:
I can improve the error reporting (probably not until the weekend) to report this status instead of a "what happened here?" error. But that doesn't really help you. It is strange that games are working for you now but weren't before. Can you retry to other games if they are still in progress? I'm not sure what the fix is. My guess is that MLB.TV support won't help you if you are not using their Flash application.
For others seeing the "no url found" error, please use the test tool to produce a log using the method detailed above. Then grep that log for the locationCannotBeDeterminedStatus error.
It would be helpful if I could also get test tool logs for ftmu errors to see if there's something in that reply I'm missing.
Two last things to report. First, although Atlanta v Washington and Milwaukee v Cincinatti didn't play live, their archives play without problems.
Secondly, and this is probably something entirely different and not something I care about particularly, all the game timings were one hour off. mlbviewer shows them as beginning an hour after they really begin.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.