LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-21-2010, 01:46 PM   #2716
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76

Quote:
Originally Posted by daftcat View Post
If mlblistings.py works, then pyxml is working.

Please add "debug=True" to your config file and run mlbviewer.py again.

Post the stack trace that it generates here for me to see where the parser is failing.
Pay no attention to the LIRC errors. These are harmless. Basically, if you have an IR remote, you can use LIRC to control mlbviewer. I don't have one so I've never been able to test this code. I'm not sure if anyone else is using this because I've never received a bug report on it.

But yeah, if mlblistings.py is working, pyxml is also working. So the only thing I can think of is that there is some config file option that isn't right. I just tested with the default config (e.g. renamed my config and let it autogenerate a new one) and didn't have any parser problems.

Can you do the following:

1. Post your config here (don't post your user and pass.)

2. Add or change debug=0 to debug=True and post whatever stack trace is generated when you get the parser failure.

Thanks!
 
Old 04-21-2010, 02:07 PM   #2717
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
I may not be able to replicate my success, but I managed to get mlbviewer up and running on cygwin (windows 7). seems to work really well... now I may try to get it running on my netbook and see if it's better than snow leopard.
 
Old 04-21-2010, 02:53 PM   #2718
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by daftcat View Post
Pay no attention to the LIRC errors. These are harmless. Basically, if you have an IR remote, you can use LIRC to control mlbviewer. I don't have one so I've never been able to test this code. I'm not sure if anyone else is using this because I've never received a bug report on it.
I've got a remote, and IIRC it worked fine "out of the box" with mlbviewer. However, I have since re-written the LIRC code in my local copy (version control software is neat) so I'm not sure about the original code anymore. Now that I think about it, perhaps the LIRC code wasn't working and that's why I rewrote it...I don't really remember. If you'd like, I can tidy up my code and send you patch at some point.
 
Old 04-21-2010, 03:14 PM   #2719
rashley
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
Sweet! Please go back to skinny mode when the Rangers play the Royals.
The Rangers need all the help they can get, virtual weight gain included.

BTW this works.

mplayer -vo xv -fs

This is really cool. For all the newcomers to the thread, it's worth a bit of effort and Paypal works too :-)
 
Old 04-21-2010, 04:28 PM   #2720
CCRS8
LQ Newbie
 
Registered: Apr 2010
Location: Durham, NC, USA
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
Pay no attention to the LIRC errors. These are harmless. Basically, if you have an IR remote, you can use LIRC to control mlbviewer. I don't have one so I've never been able to test this code. I'm not sure if anyone else is using this because I've never received a bug report on it.

But yeah, if mlblistings.py is working, pyxml is also working. So the only thing I can think of is that there is some config file option that isn't right. I just tested with the default config (e.g. renamed my config and let it autogenerate a new one) and didn't have any parser problems.

Can you do the following:

1. Post your config here (don't post your user and pass.)

2. Add or change debug=0 to debug=True and post whatever stack trace is generated when you get the parser failure.

Thanks!
Sorry it took so long to reply - I was at work but now I am home and ready to watch some baseball.

Here is my config file:
Code:
user=xxxxxxx
pass=xxxxxxx
show_player_command=0
live_from_start=0
favorite_color=cyan
speed=800
video_follow=
video_player=mplayer -cache 2048 -really-quiet
show_inning_frames=1
x_display=
audio_player=mplayer -cache 64 -really-quiet
flash_browser=firefox %s
max_bps=1200000
bg_color=xterm
coverage=home
strict_stream=1
audio_follow=
top_plays_player=mplayer -cache 2048 -really-quiet
favorite=phi
use_color=0
use_nexdef=1
debug=True
time_offset=
blackout=was
blackout=bal
and here is what setting debut to True spits out:
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 206, in mainloop
    raise Exception, detail
KeyError: 'blackout'
I hope this helps, and I apologize in advance for what I'm sure is a user error on my side. Thanks a ton!
 
Old 04-21-2010, 05:55 PM   #2721
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by CCRS8 View Post
Sorry it took so long to reply - I was at work but now I am home and ready to watch some baseball.

Here is my config file:
Code:
user=xxxxxxx
pass=xxxxxxx
show_player_command=0
live_from_start=0
favorite_color=cyan
speed=800
video_follow=
video_player=mplayer -cache 2048 -really-quiet
show_inning_frames=1
x_display=
audio_player=mplayer -cache 64 -really-quiet
flash_browser=firefox %s
max_bps=1200000
bg_color=xterm
coverage=home
strict_stream=1
audio_follow=
top_plays_player=mplayer -cache 2048 -really-quiet
favorite=phi
use_color=0
use_nexdef=1
debug=True
time_offset=
blackout=was
blackout=bal
and here is what setting debut to True spits out:
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 206, in mainloop
    raise Exception, detail
KeyError: 'blackout'
I hope this helps, and I apologize in advance for what I'm sure is a user error on my side. Thanks a ton!
I don't see any problems with your config.

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.
 
Old 04-21-2010, 06:07 PM   #2722
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Hmm...weird. I just downloaded revision 210 and the outer error, the first line number, matches up with yours, line 1508, but the inner error doesn't match up.

In any case, because /usr/local/bin/mlbviewer.py appears in your stack trace, it looks like you have already run setup.py once before. In that case, making sure you have the latest svn revision and running setup.py again should get everything back in sync. If it doesn't, we might have to perform some detective work to remove old components first.
 
Old 04-21-2010, 07:04 PM   #2723
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
is there anyway someone could make an idiot's step by step on how to get mlbviewer working. just signed up for mlb.tv yesterday, flash is so crappy on linux, and i am very overwhelmed with trying to install mlbviewer, sifting thru this 182 page thread. is there a simple guide anywhere, or could someone copy/paste all the right steps. the requirements 2009 file is a bit over my head.
 
Old 04-21-2010, 07:05 PM   #2724
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
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.
 
Old 04-21-2010, 07:19 PM   #2725
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
but this is a linux forum?
 
Old 04-21-2010, 07:46 PM   #2726
ketchamc
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
I got mlbviewer working for the first time tonight, but I can't get the 1800k stream to work - every game says "no video." I don't know if it's just me, or are there just no games available at that bitrate today?
 
Old 04-21-2010, 08:39 PM   #2727
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by ketchamc View Post
I got mlbviewer working for the first time tonight, but I can't get the 1800k stream to work - every game says "no video." I don't know if it's just me, or are there just no games available at that bitrate today?
I checked the grid.xml file, the file used to generate the listings and there are no 1800K streams listed today. Perhaps they're experiencing/anticipating problems with those streams? 1200K looks available though. Sorry that 1800K isn't available on your first day of mlbviewer but glad at least that code to tell you so is working.
 
Old 04-21-2010, 09:01 PM   #2728
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by reefis View Post
is there anyway someone could make an idiot's step by step on how to get mlbviewer working. just signed up for mlb.tv yesterday, flash is so crappy on linux, and i am very overwhelmed with trying to install mlbviewer, sifting thru this 182 page thread. is there a simple guide anywhere, or could someone copy/paste all the right steps. the requirements 2009 file is a bit over my head.
Well, the requirements file is nearly definitive but let's see if I can sum it up for you.

Code:
$ sudo apt-get install subversion
$ sudo apt-get install python-setuptools
$ sudo easy_install pyxml
$ sudo easy_install suds
$ sudo easy_install simplejson
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-svn
$ cd mlbviewer-svn
$ python mlbviewer.py
$ cp MediaService.* ~/.mlb
Almost there. At this point, after running mlbviewer once, it will generate a config file at ~/.mlb/config (where ~/ is your home directory.) Edit that config file filling in your MLB.TV username and password in the user= and pass= lines.

You're still not quite there yet. You need rtmpdump to actually get the Flash video streams to mplayer.

This part might fail so I'm separating it from the rest.

Code:
$ svn co svn://svn.mplayerhq.hu/rtmpdump/trunk rtmpdump
$ cd rtmpdump
$ make posix
If this fails, first edit the Makefile and change this line:

Code:
LIB_OPENSSL=-lssl -lcrypto
to this:

Code:
LIB_OPENSSL=-ldl -lssl -lcrypto
And then re-run the "make posix".

If that works, do this:

Code:
$ sudo cp rtmpdump /usr/bin/rtmpdump
If that doesn't work, post the output of "make posix" here and we'll figure out what is still needed.

If you've gotten this far without any errors, you can now go back to mlbviewer and hopefully you'll be up and running:

Code:
$ cd ../mlbviewer-svn
$ python mlbviewer.py
If you're stuck, please post as much output as you can from the step that failed here so we can help get you going again.

(Hopefully we can skip the re-compile mplayer step but we'll figure that out when we get there.)

This whole process may take a few days between posting problems and getting solutions here. Please be patient. I've tried to make the installation process as easy as possible (using as few additional libraries as I can) but it's definitely not idiot proof. We'll get you through it though. I promise the users here are much more responsive and helpful than the MLB.TV support forums.
 
2 members found this post helpful.
Old 04-21-2010, 09:26 PM   #2729
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
Quote:
Originally Posted by reefis View Post
but this is a linux forum?
yeah that's true...

its somewhat related because you use a bash terminal in windows (cygwin) and a lot of various linux components to make it work... and as far as I know this is the only forum where mlbviewer is discussed.
 
Old 04-21-2010, 09:38 PM   #2730
reefis
LQ Newbie
 
Registered: Apr 2010
Posts: 27

Rep: Reputation: 15
thanks alot daftcat, i really appreciate it!
 
  


Reply

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 09:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration