LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-15-2008, 09:29 AM   #361
quonset
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0

Quote:
Originally Posted by jkr View Post
could you try replacing that with

Code:
if hasattr(curses, 'use_default_colors'):
    try:
        curses.use_default_colors()
    except _curses.error:
        pass
and let me know if it just works? Thanks.
Adding that, I get:

Traceback (most recent call last):
File "mlbviewer.py", line 63, in <module>
except _curses.error:
NameError: name '_curses' is not defined
 
Old 04-15-2008, 09:46 AM   #362
astram
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
i downloaded the tarball last night, and was unable to get it working at around 9:30 pm PST; while the script was successfully launching mplayer, mplayer was not able to grab a stream.

however, this morning, i am able to watch archived games just fine.

one question though: is there support for the 1.2b feed? i tried putting "speed=1200" into my ~/.mlb/config, and the script wouldn't start up.
 
Old 04-15-2008, 09:55 AM   #363
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
quonset

Huh... weird. That's the error that it raised before, and it seems, from looking around, like a pretty standard way to deal with it.

You have python 2.5, right? What platform? Distribution?

If you just have 'except:' with no '_curses.error', what happens?



astram

No one was able to get live gimes last night. It sounds like, according to the Mosaic forums, that was mlb.com's fault. They had been slammed all day, so who knows? We'll see what happens today.

And 1200, it turns out, doesn't work. I think Theophile pointed this out, but it's not a straight download, but some sort of swarming thing that NexDef uses. Be cool if someone could figure it out, but it would take more than I know about network traffic, and it's not a high priority at the moment.

Last edited by jkr; 04-15-2008 at 10:03 AM.
 
Old 04-15-2008, 10:17 AM   #364
quonset
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by jkr View Post
Huh... weird. That's the error that it raised before, and it seems, from looking around, like a pretty standard way to deal with it.

You have python 2.5, right? What platform? Distribution?

If you just have with no '_curses.error', what happens?
It works with just 'except:'

I also saw 'except: curses:error:' somewhere else in mlbviewer.py, so I tried removing just the underscore, and that made it work as well.

I'm using Debian/unstable i386 with Python 2.5.2 (r252:60911, Mar 9 2008, 03:52:30)
 
Old 04-15-2008, 10:23 AM   #365
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Quote:
I also saw 'except: curses:error:' somewhere else in mlbviewer.py, so I tried removing just the underscore, and that made it work as well.
Wow, sometimes I guess I should just look at the code I wrote last week. Thanks for that. Okay -- version with no underscore now checked in.

Still odd that it doesn't work on sid, since it does work on my Ubuntu, which is sid from 5 months ago or so, and other people's etch machines (don't remember when that went stable). I wonder if a bug has been introduced into their python setup somewhere along the way. Oh well, in any case, mlbviewer should catch it now.

Thanks for working though this.
 
Old 04-15-2008, 11:36 AM   #366
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
I got the newest script working (kinda) but when I click a game it just gives me the url and then returns to the list of games....is this a known error?
 
Old 04-15-2008, 11:39 AM   #367
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Do you have debug turned on in your config?

Actually, could you post your config (with your email and passwd blanked of course)?
 
Old 04-15-2008, 12:32 PM   #368
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
134 RBIs!

Live works! At least for the screensaver prior to the Angels Rangers game.

Knock on wood, but it's quite possible that last night was just the battered servers trying to screw up our little testing party.

EDIT: Party. It works.

Last edited by jkr; 04-15-2008 at 01:12 PM.
 
Old 04-15-2008, 01:13 PM   #369
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
jkr
user = x
pass = x
speed = 400
video_player = mplayer
audio_player = det
blackout = det
show_player_command = True
debug = True
audio_follow = det


I don't need any Tigers jokes...LOL
 
Old 04-15-2008, 01:15 PM   #370
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
try turning debug off.

debug = False

Edit: Oh, and I think you mean audio_follow = det. audio_player should be the player: mplayer or xmms or whatever...

Last edited by jkr; 04-15-2008 at 01:16 PM.
 
Old 04-15-2008, 01:18 PM   #371
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
jkr brilliant
 
Old 04-15-2008, 01:26 PM   #372
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by jkr View Post
134 RBIs!

Live works! At least for the screensaver prior to the Angels Rangers game.

Knock on wood, but it's quite possible that last night was just the battered servers trying to screw up our little testing party.
As annoying as that screensaver is, it's part of the feed so you're in.

#42 just drove in #42 and #42 just flied out to #42 to strand #42 on base. We go to the bottom half of the inning and the lineup that #42 will be facing is #42, followed by #42, and #42 after him.

Gotta love Jackie Day.
 
Old 04-15-2008, 01:27 PM   #373
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Gotta love being able to see it without being shut out by errors.

Big round of applause for daftcat, everyone.
 
Old 04-15-2008, 01:31 PM   #374
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by hanophix View Post
jkr
user = x
pass = x
speed = 400
video_player = mplayer
audio_player = det
blackout = det
show_player_command = True
debug = True
audio_follow = det


I don't need any Tigers jokes...LOL
As long as the Tigers keep beating up Minnesota, I'm a fan! That was a heckuva comeback last night. I was able to catch that live stream in the last couple innings.

Yesterday was a good day for the Central. KC regained first and everyone but Detroit held ground or lost ground. I wish I could watch the ChiSox game today but I'm in the oak blackout region.

Go Royals!
 
Old 04-15-2008, 01:34 PM   #375
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Oh and yeah, as you figured out, debug is for figuring out errors getting that url. The application is not meant to run with debugging on.
 
  


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 07:23 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