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.
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.
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?
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.
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.
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.
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.
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.
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?
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. :-(
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.
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
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.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.