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.
This was working great yesterday and before. Today, I'm getting this:
Traceback (most recent call last):
File "./mlbtv.sh", line 574, in <module>
datadct['blackout'])
File "curses/wrapper.py", line 44, in wrapper
File "./mlbtv.sh", line 513, in mainloop
g.logout()
File "./mlbtv.sh", line 266, in logout
urllib2.urlopen(LOGOUT_URL)
File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.5/urllib2.py", line 381, in open
response = self._open(req, data)
File "/usr/lib/python2.5/urllib2.py", line 399, in _open
'_open', req)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 1115, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (104, 'Connection reset by peer')>
I can't make much out of that. Any suggestions? Keep in mind I'm an idiot.
This was working great yesterday and before. Today, I'm getting this:
Traceback (most recent call last):
File "./mlbtv.sh", line 574, in <module>
datadct['blackout'])
File "curses/wrapper.py", line 44, in wrapper
File "./mlbtv.sh", line 513, in mainloop
g.logout()
File "./mlbtv.sh", line 266, in logout
urllib2.urlopen(LOGOUT_URL)
File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.5/urllib2.py", line 381, in open
response = self._open(req, data)
File "/usr/lib/python2.5/urllib2.py", line 399, in _open
'_open', req)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 1115, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (104, 'Connection reset by peer')>
I can't make much out of that. Any suggestions? Keep in mind I'm an idiot.
They're running a free preview night so everyone and their dog with a high speed connection is trying to watch a game tonight. What you're seeing is the script having trouble logging into mlb.com. The newer version that will be released either tonight or tomorrow will handle this much more gracefully. I'm still having a hard time connecting to their service but at least I see a message that tells me what's going on.
Tonight may be frustrating for most, but this is a good baking session for all my new code changes and additions the past few days. I'm doing the best I can to eliminate all vague and unhelpful errors. Unfortunately, on a night like this, all you'd get is a more friendly message telling you that you're still S.O.L.
You can keep trying or you can wait for the traffic to die down (maybe when the East Coast games finish?)
PLEASE READ BEFORE DOWNLOADING: This is just for testing. It's not a real honest-to-goodness release. The docs need to be cleaned up. There are likely some rough edges. But we wanted you to have a go at it.
First thing you MUST know: configuration is now in a new place. Make a directory ~/.mlb and copy your existing config to it. This will happen automatically soon, so if you don't feel like going through the trouble, just wait a few days and it will do it for you.
Once you unpack it you have two options. You can either just run python mlbviewer.py in the directory or you can do a system install. To install system-wide, just run 'setup.py install'. This will install the libraries in a place where python can read them, and mlbivewer.py in /usr/bin/.
I will be looking into releasing a .deb soon, but for now this is easy enough to install and, if need be, to remove.
Things are as you know them, but better. Audio works, with 'a'. It defaults to home audio, but there is an audio_follow option. Also, you can select your audio_player in the options. Experiment, and let us know which players work well for you.
I've been following this thread pretty closely... thank you guys so much for your efforts.
I'm not sure if I've messed up; using 0.1alpha5, this is what I get:
Traceback (most recent call last):
File "/usr/bin/mlbviewer.py", line 311, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/bin/mlbviewer.py", line 58, in mainloop
curses.use_default_colors()
_curses.error: use_default_colors() returned ERR
Edit: and this is my config (I only have a Gameday Audio subscription):
I've been following this thread pretty closely... thank you guys so much for your efforts.
I'm not sure if I've messed up; using 0.1alpha5, this is what I get:
Traceback (most recent call last):
File "/usr/bin/mlbviewer.py", line 311, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/bin/mlbviewer.py", line 58, in mainloop
curses.use_default_colors()
_curses.error: use_default_colors() returned ERR
Oh this is so annoying! Some streams mplayer is just not happy with:
Code:
The game url parsed is:
mms://a32.v108690.c10869.g.vm.akamaistream.net/7/32/10869/v0004/mlb.download.akamai.com/10869/reflector:55911?ct5=14-Apr-08&ct1=&ct3=12263517&ct7=645343&ct4=mlb&ct6=67.188.205.133&ct8=1
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Playing mms://a32.v108690.c10869.g.vm.akamaistream.net/7/32/10869/v0004/mlb.download.akamai.com/10869/reflector:55911?ct5=14-Apr-08&ct1=&ct3=12263517&ct7=645343&ct4=mlb&ct6=67.188.205.133&ct8=1.
STREAM_ASF, URL: mms://a32.v108690.c10869.g.vm.akamaistream.net/7/32/10869/v0004/mlb.download.akamai.com/10869/reflector:55911?ct5=14-Apr-08&ct1=&ct3=12263517&ct7=645343&ct4=mlb&ct6=67.188.205.133&ct8=1
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a32.v108690.c10869.g.vm.akamaistream.net
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET...
Connecting to server a32.v108690.c10869.g.vm.akamaistream.net[216.151.132.78]: 1755...
Connected
read error:: Operation now in progress
pre-header read failed
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a32.v108690.c10869.g.vm.akamaistream.net
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET...
Connecting to server a32.v108690.c10869.g.vm.akamaistream.net[216.151.132.77]: 80...
unknown ASF streaming type
Failed, exiting.
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a32.v108690.c10869.g.vm.akamaistream.net
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET...
Connecting to server a32.v108690.c10869.g.vm.akamaistream.net[12.190.48.15]: 80...
Cache size set to 4096 KBytes
Cache fill: 0.01% (400 bytes)
Exiting... (End of file)
Is anyone able to connect to the Kansas City game? I had the same problem with the Oakland archive yesterday.
Sometimes it seems to be just one game that gives me trouble (usually the one I most want to see!)
Oh this is so annoying! Some streams mplayer is just not happy with:
Code:
The game url parsed is:
mms://a32.v108690.c10869.g.vm.akamaistream.net/7/32/10869/v0004/mlb.download.akamai.com/10869/reflector:55911?ct5=14-Apr-08&ct1=&ct3=12263517&ct7=645343&ct4=mlb&ct6=67.188.205.133&ct8=1
MPlayer dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Playing mms://a32.v108690.c10869.g.vm.akamaistream.net/7/32/10869/v0004/mlb.download.akamai.com/10869/reflector:55911?ct5=14-Apr-08&ct1=&ct3=12263517&ct7=645343&ct4=mlb&ct6=67.188.205.133&ct8=1.
STREAM_ASF, URL: mms://a32.v108690.c10869.g.vm.akamaistream.net/7/32/10869/v0004/mlb.download.akamai.com/10869/reflector:55911?ct5=14-Apr-08&ct1=&ct3=12263517&ct7=645343&ct4=mlb&ct6=67.188.205.133&ct8=1
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a32.v108690.c10869.g.vm.akamaistream.net
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET...
Connecting to server a32.v108690.c10869.g.vm.akamaistream.net[216.151.132.78]: 1755...
Connected
read error:: Operation now in progress
pre-header read failed
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a32.v108690.c10869.g.vm.akamaistream.net
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET...
Connecting to server a32.v108690.c10869.g.vm.akamaistream.net[216.151.132.77]: 80...
unknown ASF streaming type
Failed, exiting.
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET6...
Couldn't resolve name for AF_INET6: a32.v108690.c10869.g.vm.akamaistream.net
Resolving a32.v108690.c10869.g.vm.akamaistream.net for AF_INET...
Connecting to server a32.v108690.c10869.g.vm.akamaistream.net[12.190.48.15]: 80...
Cache size set to 4096 KBytes
Cache fill: 0.01% (400 bytes)
Exiting... (End of file)
Is anyone able to connect to the Kansas City game? I had the same problem with the Oakland archive yesterday.
Sometimes it seems to be just one game that gives me trouble (usually the one I most want to see!)
I'm seeing that for pretty much every game, though a few games give login errors. It's happening in the old version of the script too, so it's not a strictly a problem with the new version.
I'm seeing that for pretty much every game, though a few games give login errors. It's happening in the old version of the script too, so it's not a strictly a problem with the new version.
The old firebug method worked like a charm. I know the firebug method uses a different page. I'm going to see what it takes to query that page instead. Well, I have a pretty good idea of what it takes.
If you get frustrated with mlbviewer and you want to try the firebug method, refer to my mlbplay script and mini-HOWTO at:
I know we do things differently than firefox so I'm going to look at how we can become identical to the firebug method.
jkr
What will it take for GameStream to have full access to the listings, e.g., all the entries in a listing instead of just the gameid. Is it possible to pass an MLBSchedule object to GameStream or is there an easier way? Basically, I want to query the same page Firefox hits which means I have to construct a URL with most of the entries from the listing. This would also let us construct a proper Referrer which brings us one step closer to being network identical to Firefox.
use_default_colors() isn't strictly necessary, but it makes it look a lot nicer, it can have transparent terminals, etc. I know it's a relatively new feature in the python curses implementation. If you're getting that error, what version are you using?
daftcat -- GameStream can have access to everything in the JSP file. Here's a sample game from today's schedule. But there's a lot of information. That's why we have the trimList step -- get the parts that are helpful. Of course, more can be added at that stage (as with audio), it will still be trimmer.
the weird thing is that when I turn on show_player_command and cut and paste it, it plays fine. So the command this is running seems to be okay... I have no idea why it's doing this. Some sort of timing issue?
And, as you said, it still works on old games, and old versions are affected as well. So it seems like, in response to their bandwidth troubles, they did something that made it harder for this script to do its work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.