LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-07-2008, 08:02 AM   #121
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15

Daftcat,

That's at the very beginning of the script... Did you change the PLAYER settings or the the SPEED settings and not close a quote? (or open with a single quote and close with a double?)

In the next version I'll be moving the configuration to the .mlbtv file, as Theophile suggested. I can't guess where that's coming from otherwise.

Adding it to the howto would be cool, when you solve the issue, but please wait a day or two till I post the official 0.1 version, which will have a different configuration procedure, and ir support.

Let me know if you can solve the issues...
 
Old 04-07-2008, 09:40 AM   #122
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
Newbie here and I have no idea how to do any of this. LOL...I would love to have mlb.tv back but you guys are out of my league with this one....Any hope for me?
 
Old 04-07-2008, 09:44 AM   #123
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
See post #99. jkr has made this very easy now!
 
Old 04-07-2008, 10:25 AM   #124
nantes
LQ Newbie
 
Registered: Aug 2007
Distribution: Ubuntu Gutsy
Posts: 1

Rep: Reputation: 0
Not really a patch, but useful

So,this isn't really a patch per se, but I find it useful:

325c323
< subprocess.call(PLAYER +' "'+ u + '" &',shell=True)
---
> subprocess.call(PLAYER+' "'+ u + '"',shell=True)


Adding the ampersand allows mlbviewer.py to not block while the stream is playing. Meaning . . . you can watch multiple streams at once. Assuming your connection handles it.

Enjoy,

Jason
 
Old 04-07-2008, 10:51 AM   #125
Fugazi
Member
 
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jkr View Post
Did you just place it in the directory or did you install it? I.e. did you follow the instructions in the INSTALL file? (This is one of the parts that I will be rewriting sooner or later, so you won't need to install this file in the future. But that rewrite might not be till a bit later.)
No, I installed it using the rpm. I removed it using my package manager, then went and got the tarball and installed it again. Now it's working.

Thanks, you guys rock.
 
Old 04-07-2008, 01:15 PM   #126
dmandell
Member
 
Registered: Apr 2008
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by TrisMcC View Post
I just hacked up your brilliant mlbviewer.py script to deal with gameday audio. I did just enough to make it work....away streams only.

One difference is that the text section of the JSON just has the radio station call letters.
Thank you so much for this, if only MLB would make it this easy to listen to the game! It'd be nice to have the ability to have home and away streams in the same script (though I'm not talented enough to do it), but it's plenty easy to run an "mlbaudiohome" script when I know the Cubbies are at home.

Thanks again for everybody's contributions,

d
 
Old 04-07-2008, 02:42 PM   #127
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
I got it working! But I cannot resize my mplayer....it just goes full screen
 
Old 04-07-2008, 02:56 PM   #128
Hoth
LQ Newbie
 
Registered: Jan 2007
Location: Northern California
Distribution: Kubuntu 8.10
Posts: 26

Rep: Reputation: 15
Press 'f' to toggle fullscreen.
 
Old 04-07-2008, 04:50 PM   #129
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
I wrote a blog post about this topic, including screenshots. If everyone could digg it (or otherwise), it would help to spread the word. I plan to update it as jkr revises the script.

http://www.monopedilos.com/article.p...80407134922418

Thanks again for this!
 
Old 04-07-2008, 05:25 PM   #130
dmandell
Member
 
Registered: Apr 2008
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by Theophile View Post
I wrote a blog post about this topic, including screenshots. If everyone could digg it (or otherwise), it would help to spread the word. I plan to update it as jkr revises the script.

http://www.monopedilos.com/article.p...80407134922418

Thanks again for this!
I don't want to speak for jkr, but he did say this back in his original post:

Quote:
6. Because it's very preliminary, I wanted to give it to the baseball fans here to play around with and offer suggestions on, but I'd prefer if you didn't send it around all that much right now. If you make improvements, feel free to send those out, or back to me, but I don't want to be responsible for a wide circle of folks having to deal with any problems that might come out of this.
Maybe you can wait a few days, or until he gives the green light?
 
Old 04-07-2008, 05:32 PM   #131
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by jkr View Post
Daftcat,

That's at the very beginning of the script... Did you change the PLAYER settings or the the SPEED settings and not close a quote? (or open with a single quote and close with a double?)

In the next version I'll be moving the configuration to the .mlbtv file, as Theophile suggested. I can't guess where that's coming from otherwise.

Adding it to the howto would be cool, when you solve the issue, but please wait a day or two till I post the official 0.1 version, which will have a different configuration procedure, and ir support.

Let me know if you can solve the issues...
No luck.

I even tried using an unmodified version of your script changing only the .mlbtv file, and got the same error. :-(
 
Old 04-07-2008, 05:34 PM   #132
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Meh, good point. That's what I get for not reading carefully.

Okay, taken down until such time as it's ready for public consumption. Sorry if I caused any problems.
 
Old 04-07-2008, 06:57 PM   #133
dash5
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
daftcat,

I am also running debian and got the same error message.

Change the line from: class MLBSchedule():
To: class MLBSchedule:

and it should run OK.

When I looked up the python class definition, it does not show the use of () before the colon.

Hope this helps.
 
Old 04-07-2008, 07:26 PM   #134
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
dash5, daftcat --

Oops. Yeah, I had it new-style (class Whatever(object)) and then changed it to oldstyle. Sorry about that. Just made the minor change online. Shouldn't be a problem anymore. Thanks for tracking the problem down.

Theophile --

Thanks for the thought, and no worries. On the whole, I would prefer if you waited until (a) I release the 0.1 version sometime this week, and (b) everyone here tests it and plays around with it a bit. I'd prefer to deal with suggestions like yours about the configuration or the above about the mistyped class name in this small circle if possible Also, there will be a slight change in the libraries.

When it's done and tested, though, by all means, repost.

Best,
Jesse

Last edited by jkr; 04-07-2008 at 07:42 PM.
 
Old 04-08-2008, 01:30 AM   #135
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

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

I am also running debian and got the same error message.

Change the line from: class MLBSchedule():
To: class MLBSchedule:

and it should run OK.

When I looked up the python class definition, it does not show the use of () before the colon.

Hope this helps.
Got past this, but now I'm getting:

Code:
matthew@tango:~$ ./mlbviewer.py
Traceback (most recent call last):
  File "./mlbviewer.py", line 358, in ?
    curses.wrapper(mainloop,datadct['user'],datadct['pass'])
  File "curses/wrapper.py", line 44, in wrapper
  File "./mlbviewer.py", line 337, in mainloop
    u = g.url()
  File "./mlbviewer.py", line 221, in url
    game_url = re.search(pattern, self.__getInfo()).groups()[1]
  File "./mlbviewer.py", line 198, in __getInfo
    forms = ClientForm.ParseResponse(fp)
  File "/usr/lib/python2.4/site-packages/ClientForm.py", line 929, in ParseResponse
    encoding,
  File "/usr/lib/python2.4/site-packages/ClientForm.py", line 959, in ParseFile
    fp.feed(data)
  File "/usr/lib/python2.4/sgmllib.py", line 95, in feed
    self.goahead(0)
  File "/usr/lib/python2.4/sgmllib.py", line 129, in goahead
    k = self.parse_starttag(i)
  File "/usr/lib/python2.4/sgmllib.py", line 283, in parse_starttag
    self.finish_starttag(tag, attrs)
  File "/usr/lib/python2.4/sgmllib.py", line 317, in finish_starttag
    self.handle_starttag(tag, method, attrs)
  File "/usr/lib/python2.4/sgmllib.py", line 357, in handle_starttag
    method(attrs)
  File "/usr/lib/python2.4/site-packages/ClientForm.py", line 698, in do_input
    raise ParseError("start of INPUT before start of FORM")
ClientForm.ParseError: start of INPUT before start of FORM
According to this thread, http://lists.idyll.org/pipermail/twi...ry/000175.html
it's because of 1) bad html, and 2) an ungraceful handling of bad html in ClientForm.

I replaced the ParseError() exception at line 698 of ClientForm.py with a return and commented out the "raise ParseError" line and now it's working great for me. I have no idea what the ramifications of this might be, but mlbviewer.py is perhaps the only python app I use (that I know of.)
 
  


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 07:18 PM.

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