LinuxQuestions.org
Review your favorite Linux distribution.
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 02-28-2011, 02:12 AM   #3166
berni42
LQ Newbie
 
Registered: Jul 2010
Posts: 16

Rep: Reputation: 0
Smile


Quote:
Originally Posted by mkomko View Post
You have to check out the nexdef2010 branch, not the "default" mlbviewer directory.
Sorry but same roblem with the nexde2010 "There was a parser problem with the listings page". I noticed there is a log file in the ~/.mlb directory. This is showing:


WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
LIRC not initialized

Any clues? I am using Debian Squeeze.

Last edited by berni42; 02-28-2011 at 02:15 AM. Reason: reply history absent
 
Old 02-28-2011, 11:21 AM   #3167
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Don't worry about the LIRC error. I think the parser errorm especially in Spring Training, is caused by MLB using new team codes for split-squad teams that mlbviewer doesn't have in its database. I can't remember the location of the xml that is being parsed, but I'll dig around and see what I can find.
 
Old 02-28-2011, 12:05 PM   #3168
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
I poked around in the code for a while, long enough to confirm that I really don't know what I'm doing. But I did turn on debugging in order to get this error:
Code:
Traceback (most recent call last):
  File "mlbviewer.py", line 1545, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 207, in mainloop
    raise Exception, detail
KeyError: '2011'
 
Old 03-01-2011, 02:40 AM   #3169
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
I poked around in the code for a while, long enough to confirm that I really don't know what I'm doing. But I did turn on debugging in order to get this error:
Code:
Traceback (most recent call last):
  File "mlbviewer.py", line 1545, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 207, in mainloop
    raise Exception, detail
KeyError: '2011'
That's fixed in the latest revision released a few days ago. I think it's 272 on the nexdef2010 branch.
 
Old 03-01-2011, 02:44 AM   #3170
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
Don't worry about the LIRC error. I think the parser errorm especially in Spring Training, is caused by MLB using new team codes for split-squad teams that mlbviewer doesn't have in its database. I can't remember the location of the xml that is being parsed, but I'll dig around and see what I can find.
Unknown team codes show up as "Unknown Teamcode" such as "Texas Rangers at Unknown Teamcode". Fixed that last season so it wouldn't result in crashes or parser errors. There are a handful of Unknown Teamcodes this Spring Training. I'll fix them as we get to them.
 
Old 03-01-2011, 02:49 AM   #3171
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by berni42 View Post
I checked out mlbviewer which reports revision 272 mlbviewer for 26/2, 27/2, and 28/2 report:

There was a parser problem with the listings page

And then:

No listings available for this day.

Is this because I am in the Uk?
If you ever ran the setup.py in the default branch, make sure you are calling mlbviewer.py directly in the nexdef2010 directory, e.g.

Code:
$ cd nexdef2010
$ ./mlbviewer.py
If you just run:

Code:
$ mlbviewer.py
without the "./", you might be running the default even though you are in the nexdef2010 directory.

setup.py was a good idea at the time, but now that I'm planning on maintaining branches for each season, globally installed mlbviewer is going to be a nuisance. That's why setup.py was removed from the nexdef2010 branch.

If it's not that, I'm not sure what to do except remove all mlbviewer / nexdef2010 directories, repeat the checkout, and try again.
 
Old 03-01-2011, 07:44 AM   #3172
berni42
LQ Newbie
 
Registered: Jul 2010
Posts: 16

Rep: Reputation: 0
Talking Now working here - yippee !

Quote:
Originally Posted by daftcat View Post
If you ever ran the setup.py in the default branch, make sure you are calling mlbviewer.py directly in the nexdef2010 directory, e.g.

Code:
$ cd nexdef2010
$ ./mlbviewer.py
If you just run:

Code:
$ mlbviewer.py
without the "./", you might be running the default even though you are in the nexdef2010 directory.

setup.py was a good idea at the time, but now that I'm planning on maintaining branches for each season, globally installed mlbviewer is going to be a nuisance. That's why setup.py was removed from the nexdef2010 branch.

If it's not that, I'm not sure what to do except remove all mlbviewer / nexdef2010 directories, repeat the checkout, and try again.
Sorry it seems I have been checking out the wrong version by not understanding the info on page 1. The clue was the presence of the setup.py file. This version worked for me:

svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010

Note: the mlbviewer.py file needs execute permission.

Last edited by berni42; 03-01-2011 at 08:09 AM. Reason: fix url
 
Old 03-01-2011, 06:19 PM   #3173
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
daftcat,

Do you have any strong interest in eliminating rtmpdump/flvstreamer? Both ffmpeg and mplayer support librtmp, though not be default. I've been thinking about compiling a version of mplayer with librtmp support to try to get it to work directly with mlbviewer. But if that's not of much interest to you, I probably won't bother. The nice thing about the current setup is that mlbviewer will work with most distros without the need to compile anything extra, like we used to have to do. Thoughts?
 
Old 03-01-2011, 11:23 PM   #3174
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
daftcat,

Do you have any strong interest in eliminating rtmpdump/flvstreamer? Both ffmpeg and mplayer support librtmp, though not be default. I've been thinking about compiling a version of mplayer with librtmp support to try to get it to work directly with mlbviewer. But if that's not of much interest to you, I probably won't bother. The nice thing about the current setup is that mlbviewer will work with most distros without the need to compile anything extra, like we used to have to do. Thoughts?
Never could find satisfactory documentation on how to construct a rtmp url to pass the parameters necessary for stream connection.

In any case, I certainly don't want to put forth much effort until the new service goes live. It would be a shame to figure it out just to have it not work because they changed something.

But yeah, most people are already used to the way it is now and it's already documented. If I had to change it, I'd either have to support both methods (code yuck!) or change the code, the documentation, and answer the questions about it for months in here. As long as it works, I don't want to touch it.
 
Old 03-02-2011, 01:28 PM   #3175
rashley
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 0
can't log in?

That's weird. Monday Nexdef branch worked for me. Today, I get an error logging in. I double checked and even changed my password on the mlb site and in my .mlb/config file. They're definitely the same but I can't access live streams. Is anyone else having trouble? The debug error I get is;

Traceback (most recent call last):
File "nexdef2010/mlbviewer.py", line 1545, 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 "nexdef2010/mlbviewer.py", line 1239, in mainloop
u = g.url()
File "/home/rashley/nexdef2010/MLBviewer/mlbtv.py", line 1281, in url
self.workflow()
File "/home/rashley/nexdef2010/MLBviewer/mlbtv.py", line 1057, in workflow
self.login()
File "/home/rashley/nexdef2010/MLBviewer/mlbtv.py", line 1037, in login
raise MLBAuthError, self.error_str
MLBviewer.mlbtv.MLBAuthError: Login was unsuccessful.
 
Old 03-02-2011, 03:46 PM   #3176
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Yes, getting that too.
 
Old 03-02-2011, 06:29 PM   #3177
kweisen
Member
 
Registered: May 2006
Location: Englewood, Fl
Distribution: MInt 17
Posts: 57

Rep: Reputation: 0
My first try this spring, got the parser error, upgraded svn, now seeing this: (on nexdef branch)

Traceback (most recent call last):
File "mlbviewer.py", line 1545, 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 "/home/kim/nexdef2010/MLBviewer/mlbtv.py", line 1289, in url
'sessionKey': urllib.unquote(self.cookies['ftmu']),
KeyError: 'ftmu'
kim@kim-desktop:~/nexdef2010$
 
Old 03-03-2011, 03:35 PM   #3178
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Our authentication method that we have been using for years might have finally gone away. I need to spend some time with the debuggers like HttpAnalyzer and Firebug to discover how the official player does it. I hope I have time to do that tonight because it was awful nice to watch some baseball the other night.
 
Old 03-04-2011, 12:26 AM   #3179
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Looks like it was just an outage as I'm watching the Royals vs Angels game now. Good because I wasn't looking forward to writing any code tonight. I don't want to redesign anything until the new service is rolled out.
 
Old 03-04-2011, 12:46 AM   #3180
mkomko
Member
 
Registered: Mar 2010
Posts: 97

Rep: Reputation: 3
Quote:
Originally Posted by daftcat View Post
Looks like it was just an outage as I'm watching the Royals vs Angels game now. Good because I wasn't looking forward to writing any code tonight. I don't want to redesign anything until the new service is rolled out.
Phew *wipe sweat off forehead*. I'm sure figuring out and emulating a new authentication method wouldn't be easy. Let's hope it stays the same.
 
  


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 03:14 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