LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-03-2009, 02:12 PM   #2206
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15

Quote:
Originally Posted by Theophile View Post
I've reinstalled the system and reinstalled mlbviewer (r212) and now I'm getting an error. Splash screen comes up, but then a note at the bottom says: "There was a parser problem with the listings page" and I get this:

Code:
Traceback (most recent call last):
  File "/usr/local/bin/mlbviewer.py", line 1518, 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 398, in mainloop
    + len(coveragetoggle.get(cfg['coverage'])) + 2
UnboundLocalError: local variable 'hd_available' referenced before assignment
What have I done?
I used MLBViewer yesterday and it worked fine. This morning (ADT) I'm getting the same error messages as you are. StrayCat... where are you? Help.
 
Old 09-03-2009, 03:23 PM   #2207
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Wolfvorkian View Post
I used MLBViewer yesterday and it worked fine. This morning (ADT) I'm getting the same error messages as you are. StrayCat... where are you? Help.
Oh I don't know. Blame it on Northern Lights.

I actually just logged in to share this with you guys:

http://xkcd.com/619/

Seriously, though, the combination of finally shipping at work plus nearly two weeks of vacation means my hand/arm pain is finally subsiding to the point that I may be able look into this on the weekend. I think I sneaked a small fix for this or something like it into an svn a couple of weeks ago. If that doesn't fix it, I'll see what else can be done.

In the off-season, if my arms/hands aren't burning, I want to rewrite a good chunk of this code to be more common/inheritable in the very likely event that they bork it all up with new architecture/features for next season.

In the meantime, if you can work around it with the test tools, that would be highly appreciated.
 
Old 09-03-2009, 06:22 PM   #2208
bosox
Member
 
Registered: May 2009
Posts: 53

Rep: Reputation: 15
i am having the same issue. just tried to watch using the official player and i must admit i have become very spoiled with mlbviewer, as the mlb solution is barely watchable in comparison!
 
Old 09-03-2009, 07:11 PM   #2209
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Okay, that's screwed up of MLB. They have a bogus WBC listing mixed in with the others so today is just going to fail.

Use this page to find the event-id and content-id of the stream you want and use the test tools.
http://gdx.mlb.com/components/game/m...ay_03/grid.xml

I won't have the time to fix this proper until probably Monday. Hopefully they won't make a habit out of bogus listings.
 
Old 09-04-2009, 05:20 AM   #2210
bosox
Member
 
Registered: May 2009
Posts: 53

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Okay, that's screwed up of MLB. They have a bogus WBC listing mixed in with the others so today is just going to fail.

Use this page to find the event-id and content-id of the stream you want and use the test tools.
http://gdx.mlb.com/components/game/m...ay_03/grid.xml

I won't have the time to fix this proper until probably Monday. Hopefully they won't make a habit out of bogus listings.
yes, let's hope this is not the case. i have actually seen this a few times before when i skip ahead to the next day, but this is the first time it wasn't corrected before the games for the day started.

i assume there is no way to start the player on a different day so archived games can still be watched? is it possible to use a "test tool" and the event id from the link above to watch a game should this happen again?

thanks!
 
Old 09-04-2009, 09:46 AM   #2211
TheDevilWearsPravda
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by bosox View Post
yes, let's hope this is not the case. i have actually seen this a few times before when i skip ahead to the next day, but this is the first time it wasn't corrected before the games for the day started.

i assume there is no way to start the player on a different day so archived games can still be watched? is it possible to use a "test tool" and the event id from the link above to watch a game should this happen again?

thanks!
you can run mlbviewer.py startdate=09/02/09
 
Old 09-04-2009, 02:38 PM   #2212
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 213: Fixed the parser problem

They propagated the bogus entry to today as well. They might not even know it's there so it could be awhile before that entry goes away. In the meantime, I found why that entry was blowing up the listings and fixed it.

You guys should be back in business with this update.

You will however see the bogus WBC Canada vs. WBC USA game in your listings for yesterday, today, and however long they intend to keep that listing in the grid.
 
Old 09-04-2009, 02:56 PM   #2213
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
They propagated the bogus entry to today as well. They might not even know it's there so it could be awhile before that entry goes away. In the meantime, I found why that entry was blowing up the listings and fixed it.

You guys should be back in business with this update.

You will however see the bogus WBC Canada vs. WBC USA game in your listings for yesterday, today, and however long they intend to keep that listing in the grid.
Thank you! Now I can continue to watch the 'Hose choke away the rest of 2009 with class instead of with the by comparison crummy flash player. Update worked like a champ.
 
Old 09-05-2009, 07:19 AM   #2214
itshardertotell
Member
 
Registered: Aug 2008
Posts: 38

Rep: Reputation: 15
thanks for fixing that, daftcat. you are a wizard!!
 
Old 09-07-2009, 03:33 PM   #2215
Fatpenguin
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Java Issue?

Hello -

I've successfully used mlbviewer on OSX, and have recently tried to put it on my PS3 running linux (PPC64). I've successfully built mplayer and gotten all the requirements, however i'm have a bit of a problem. The java output is shown below. I'm assuming this is a java issue, anyone run across this before, and have a solution (even if someone has seen it/fixed it on a machine that's not a PPC)?

Thanks for the help!

Adam

java -jar autobahn.jar
Time to init SSL: 37
Failed to override default socket connect timeout
Failed to override default socket read timeout
14:23:18.599 EVENT Starting Jetty/4.2.x
14:23:18.642 EVENT Started HttpContext[/]
14:23:18.643 EVENT Started HttpContext[/protected]
14:23:18.651 EVENT Started SocketListener on 127.0.0.1:8001
14:23:18.652 EVENT Started org.mortbay.http.HttpServer@74dcc5f1
Exception in thread "AdaptiveMediaScheduler-1964079745" java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.7rh)
at com.swarmcast.livestreamer.adaptive.BasicMediaDownloader.download(BasicMediaDownloader.java:110)
at com.swarmcast.livestreamer.adaptive.MediaScheduler.run(MediaScheduler.java:197)
at java.lang.Thread.run(libgcj.so.7rh)
Caused by: java.util.regex.PatternSyntaxException: At position 9 in regular expression pattern:
At position 0 in regular expression pattern:
unsupported name ASCII
^([\p{ASCII}&&[^\p{Cntrl}\p{Blank}()<>@,;:\"/\[\]?={}]]+)[ \t]*:[ \t]*(.*?)[ \t]*$
^
at java.util.regex.Pattern.<init>(libgcj.so.7rh)
at java.util.regex.Pattern.compile(libgcj.so.7rh)
at java.util.regex.Pattern.compile(libgcj.so.7rh)
at com.onionnetworks.net.HttpHeadersImpl.<clinit>(HttpHeadersImpl.java:763)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...3 more
Caused by: gnu.java.util.regex.REException: At position 9 in regular expression pattern:
At position 0 in regular expression pattern:
unsupported name ASCII
at gnu.java.util.regex.RE.getRETokenNamedProperty(libgcj.so.7rh)
at gnu.java.util.regex.RE.parseCharClass(libgcj.so.7rh)
at gnu.java.util.regex.RE.initialize(libgcj.so.7rh)
at gnu.java.util.regex.RE.<init>(libgcj.so.7rh)
at gnu.java.util.regex.RE.initialize(libgcj.so.7rh)
at gnu.java.util.regex.RE.<init>(libgcj.so.7rh)
at gnu.java.util.regex.RE.<init>(libgcj.so.7rh)
at java.util.regex.Pattern.<init>(libgcj.so.7rh)
...7 more
Caused by: gnu.java.util.regex.REException: At position 0 in regular expression pattern:
unsupported name ASCII
at gnu.java.util.regex.RETokenNamedProperty.getHandler(libgcj.so.7rh)
at gnu.java.util.regex.RETokenNamedProperty.<init>(libgcj.so.7rh)
at gnu.java.util.regex.RE.getRETokenNamedProperty(libgcj.so.7rh)
...14 more
 
Old 09-07-2009, 11:37 PM   #2216
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
PS3 is unsupported. Search this thread for Yellow Dog Linux and the PS3. One of the members here attempted for quite a long time to get this working. I believe the final verdict was that even if the java, autobahn/rtmpdump issues could be surmounted, Sony abstracted the video hardware (the "hypervisor") in such a way that only the PS3 OS could access it directly. In other words, even if you get a video stream working, Sony gets in your way and you'll get choppy playback performance. The only solution is to convince MLBAM/Sony to officially support MLB.TV natively on the PS3. Linux solution won't work.
 
Old 09-08-2009, 07:28 PM   #2217
lwwalker
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Hi Folks. I tried MLBviewer for the first time today; assuming I can get it to work, it looks like a great tool for us baseball-inclined Linux users.

It appears I'm having problems finding the correct locations of the MLB.tv streams, and I'm wondering if anybody else is having a similar problem, or if there is a known issue. FWIW, I'm an audio-only subscriber, and am trying to load audio streams. If you're willing to bear with my symptom list, I'd be very grateful for any feedback.

When I load the MLBviewer, I get the expected output -- a list of games, those in progress are highlighted, and the ones I designated as favorites are underlined. However, for each game, the status info at the bottom of the screen always says "In Progress/Pregame/etc (No media available)" If I try to activate a stream I get the message:

Quote:
An error occurred in locating the game stream:

No stream available for selected game.
If I press the back-arrow to look at yesterday's games, I'm warned of a parser problem and told "No listings available for this day."

I tried to retrieve the stream ID I'm looking for and call the test tool "python test/mlbgameid.py IDHERE" where IDHERE is the content of the id field from the relevant grid.xml file. I get some cookie information, a message saying "Logged in successfully!" and the following output:

Quote:
Traceback (most recent call last):
File "test/mlbgameid.py", line 154, in <module>
raise Exception, game_info
Exception:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Major League Baseball: MediaPlayer</title>
<script src="/shared/media/mplayer.js" type="text/javascript"></script>
<style>
body{background-color:#fff;margin:0;}
#mp_body{ padding:20px; }
</style>
</head>
<body>
<div id="mp_body">
<p>&nbsp;</p>
<p><strong>We are sorry, but you have reached this page in error.</strong></p>
<p>Please try the action again and if the problem continues contact Customer Service.</p>
<p>&nbsp;</p>
</div>
</body>
</html>
I get the same response if I try a previous day's ID (also pulled from grid.xml).

If I run mlblistings.py, I get the following output:
Quote:
MLB.TV Listings for 9/8/2009
GO: 2:05 PM: 2009/09/08/texmlb-clemlb-1 A: None V: None
P: 12:33 AM: 2009/09/08/texmlb-clemlb-2 A: None V: None
I: 4:05 PM: 2009/09/08/chnmlb-pitmlb-1 A: None V: None
I: 4:05 PM: 2009/09/08/phimlb-wasmlb-1 A: None V: None
I: 4:05 PM: 2009/09/08/tbamlb-nyamlb-1 A: None V: None
I: 4:07 PM: 2009/09/08/minmlb-tormlb-1 A: None V: None
I: 4:10 PM: 2009/09/08/balmlb-bosmlb-1 A: None V: None
I: 4:10 PM: 2009/09/08/flomlb-nynmlb-1 A: None V: None
I: 5:05 PM: 2009/09/08/atlmlb-houmlb-1 A: None V: None
I: 5:05 PM: 2009/09/08/slnmlb-milmlb-1 A: None V: None
I: 5:10 PM: 2009/09/08/detmlb-kcamlb-1 A: None V: None
W: 5:11 PM: 2009/09/08/oakmlb-chamlb-1 A: None V: None
IP: 5:40 PM: 2009/09/08/cinmlb-colmlb-1 A: None V: None
P: 6:40 PM: 2009/09/08/lanmlb-arimlb-1 A: None V: None
P: 7:05 PM: 2009/09/08/seamlb-anamlb-1 A: None V: None
LB: 7:15 PM: 2009/09/08/sdnmlb-sfnmlb-1 A: None V: None
Here all the stream ID's are unavailable.

So, it seems like I can pull the current day's schedule information, and my login is OK, but I can't find any of the links to the relevant streams. Any ideas?
 
Old 09-08-2009, 11:15 PM   #2218
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Okay, from mlblistings.py, I can tell you are using an older version of mlbviewer.

Try pulling the latest mlbviewer from svn following the instructions in either the README or the REQUIREMENTS-2009.txt file. If MediaService.xsd or MediaService.wsdl show up in the output of the "svn update" or "svn co" command, make sure you copy those files to ~/.mlb and remove your suds cache (rm -r /tmp/suds).
 
Old 09-08-2009, 11:18 PM   #2219
Fatpenguin
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
PS3 is unsupported. Search this thread for Yellow Dog Linux and the PS3. One of the members here attempted for quite a long time to get this working. I believe the final verdict was that even if the java, autobahn/rtmpdump issues could be surmounted, Sony abstracted the video hardware (the "hypervisor") in such a way that only the PS3 OS could access it directly. In other words, even if you get a video stream working, Sony gets in your way and you'll get choppy playback performance. The only solution is to convince MLBAM/Sony to officially support MLB.TV natively on the PS3. Linux solution won't work.
Thanks for the reply. I am aware that the PS3 locks out any video hardware acceleration, but I have had some luck with playing videos via mplayer on the linux distro itself with the addition of adding the PS3 video memory as swap space, so I had hopes that if the java issue could be worked around, then I may have some luck (even if it wasn't the highest quality HD that I see using a regular PC), simply due to the availability of speed and threaded computing power. If you truly believe this isn't a worthy pursuit, I will have to resort to the laptop/TV solution for the time being until I can justify making a small Mythbuntu box for the TV.

Thanks for your time, and hard work on the mlbviewer package!
 
Old 09-14-2009, 12:25 AM   #2220
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Fatpenguin View Post
Thanks for the reply. I am aware that the PS3 locks out any video hardware acceleration, but I have had some luck with playing videos via mplayer on the linux distro itself with the addition of adding the PS3 video memory as swap space, so I had hopes that if the java issue could be worked around, then I may have some luck (even if it wasn't the highest quality HD that I see using a regular PC), simply due to the availability of speed and threaded computing power. If you truly believe this isn't a worthy pursuit, I will have to resort to the laptop/TV solution for the time being until I can justify making a small Mythbuntu box for the TV.

Thanks for your time, and hard work on the mlbviewer package!
Someone else tried it. Search this thread for PS3 and/or Yellow Dog Linux. If you think you can do better than his results, it's your time and effort. Good luck! Maybe the two of you can figure it out together.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration