LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2008, 11:30 AM   #526
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by Theophile View Post
I just pulled from svn and... nice! Top plays support = fabulous.

I'm able to see today's schedule, it's yesterday's (4/22) that I have problems with. It says "There was a parser problem with the listings page." Previous days work fine, though.

Thanks for all the great work on this!!
Ah, that's what I get for waking up early. ;-) It was the "if before 9am, show yesterday's listings". So that makes more sense. Perhaps whoever added the top plays last night forgot a comma somewhere.

Well, that's good news that you all can get today's games. Maybe when they figure out their error, you can view yesterday's top plays.
 
Old 04-23-2008, 12:02 PM   #527
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Hey all,

Long time no see.

Just wanted to let you know that I figured out the cause of yesterday's hiccup (their unwonted use of a double quote in a play description) and I'll have a fix up quite soon.

UPDATE: Fixed in svn.

Last edited by jkr; 04-23-2008 at 12:06 PM.
 
Old 04-23-2008, 12:10 PM   #528
turf212
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu, Centos and RedHat.
Posts: 9

Rep: Reputation: 0
Hmmm. Just pulled the latest svn. Getting a "there was a parser error with the listings page" followed by "No listings available for today". Tried going back a day and jumping to another day. No difference. Direct link to mlb listings as given earlier on the thread and I get something back. Putting it into debug mode didnt make any difference.

Thoughts?

*edit* This is on a laptop. I'll try it on my usual PC later.

Last edited by turf212; 04-23-2008 at 12:11 PM.
 
Old 04-23-2008, 12:39 PM   #529
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Quote:
Originally Posted by turf212 View Post
Hmmm. Just pulled the latest svn. Getting a "there was a parser error with the listings page" followed by "No listings available for today". Tried going back a day and jumping to another day. No difference. Direct link to mlb listings as given earlier on the thread and I get something back. Putting it into debug mode didnt make any difference.

Thoughts?
Don't know what to tell you. All days work here -- strange. Did you make some local changes (the hours bugfix, maybe?) so the update isn't overwriting?

Try doing a fresh pull into another directory:

Code:
svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-test
And run it in there.
 
Old 04-23-2008, 01:02 PM   #530
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
I can confirm the latest svn fixes the 4/22 bug for me.
 
Old 04-23-2008, 01:18 PM   #531
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by turf212 View Post
Hmmm. Just pulled the latest svn. Getting a "there was a parser error with the listings page" followed by "No listings available for today". Tried going back a day and jumping to another day. No difference. Direct link to mlb listings as given earlier on the thread and I get something back. Putting it into debug mode didnt make any difference.

Thoughts?

*edit* This is on a laptop. I'll try it on my usual PC later.
I'm guessing just based on the time difference between this post and jkr's that you just missed his check-in. Try checking it out again.

I'll see if I can re-raise the Exception when debug is enabled just in case we're masking something else. Debug is intended to let most errors drop through like a lead ball so we can find the "unknown" errors.
 
Old 04-23-2008, 01:22 PM   #532
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
I'm guessing just based on the time difference between this post and jkr's that you just missed his check-in. Try checking it out again.

I'll see if I can re-raise the Exception when debug is enabled just in case we're masking something else. Debug is intended to let most errors drop through like a lead ball so we can find the "unknown" errors.
Well, this particular error definitely came from the double quote. I ran the steps one at a time, and it gave me the particular place in the JSP that it barfed on (i.e., the character where the parsing got confused). There might be other errors masked there, but the one that was biting people yesterday came from that issue.
 
Old 04-23-2008, 01:46 PM   #533
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by jkr View Post
Well, this particular error definitely came from the double quote. I ran the steps one at a time, and it gave me the particular place in the JSP that it barfed on (i.e., the character where the parsing got confused). There might be other errors masked there, but the one that was biting people yesterday came from that issue.
No doubt.

If we get future Json errors, the commit I'm making will spit out the character information if debugging is enabled.

Code:
matthew@tango:~/mlbtv/svn/mlbviewer$ ./mlbviewer.py
Traceback (most recent call last):
  File "./mlbviewer.py", line 619, in ?
    curses.wrapper(mainloop, mycfg.data)
  File "curses/wrapper.py", line 44, in wrapper
  File "./mlbviewer.py", line 448, in mainloop
    raise Exception,detail
MLBviewer.mlbtv.MLBJsonError: Expecting , delimiter: line 1 column 66499 (char 66499)
This way if there are any other json error conditions we're missing, e.g. the "There was an error in parsing" message comes back, we can track it down easily by enabling debug.

EDIT: Verified with Debug enabled that parser error isn't raised so your fix is golden. Thanks a million!

Last edited by daftcat; 04-23-2008 at 01:51 PM.
 
Old 04-23-2008, 01:46 PM   #534
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
Quote:
Originally Posted by daftcat View Post
Can you update once more? I wonder if it's possible that you pulled before svn finished transmitting.

Or, can you grep MLBJsonError mlbviewer.py?

If that doesn't return at least half a dozen results, you pulled before I finished transmitting the fix.
Yep, I had an old version...grep didn't return anything. I upgraded and it's working now.

Thanks for the Daily Rewind support and keep up the good work you two!
 
Old 04-23-2008, 02:01 PM   #535
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
I don't know if I am pulling the newest svn off correctly...I am not getting anything when I press J for jumping to a day....I am still getting traceback errors. How do I know whether I am picking up the latest version?
____________________________________________________________________
Newbie error....Got it situated!

Last edited by hanophix; 04-23-2008 at 02:06 PM.
 
Old 04-23-2008, 02:13 PM   #536
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by hanophix View Post
I don't know if I am pulling the newest svn off correctly...I am not getting anything when I press J for jumping to a day....I am still getting traceback errors. How do I know whether I am picking up the latest version?
You should see something like this:

Code:
matthew@tango:~$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer-test
A    mlbviewer-test/test
A    mlbviewer-test/test/mlbgameid.py
A    mlbviewer-test/LICENSE.txt
A    mlbviewer-test/mlbviewer.py
A    mlbviewer-test/INSTALL
A    mlbviewer-test/setup.py
A    mlbviewer-test/MLBviewer
A    mlbviewer-test/MLBviewer/LIRC.py
A    mlbviewer-test/MLBviewer/__init__.py
A    mlbviewer-test/MLBviewer/mlbtv.py
A    mlbviewer-test/MLBviewer/config.py
A    mlbviewer-test/README
Checked out revision 60.
matthew@tango:~$
jkr

Did you create a new branch (or tag)? What's with the "mlbviewer-test"?

How do you know if you have the latest?

Code:
matthew@tango:~$ cd mlbviewer-test/
matthew@tango:~/mlbviewer-test$ ls
INSTALL  LICENSE.txt  MLBviewer  mlbviewer.py  README  setup.py  test
matthew@tango:~/mlbviewer-test$ svn up
At revision 60.
matthew@tango:~/mlbviewer-test$
From within the directory,

svn up updates your copy if there are newer revisions in the repository

svn diff to see the changes between what's in the repository and any local changes you might have made

svn log to see the commit notes

And finally, you can always browse the repository online at:

http://mlbviewer.svn.sourceforge.net...bviewer/trunk/

Each file/directory has its own Rev. so you look for the highest Rev and the Age to see how recent the revision is. Browsing the repository online also lets you see the commit log and visual diff's which are easier to read than svn diff.

If you installed the package globally, (e.g. you ran setup.py install), you'll probably need to re-install the package you just checked out (or updated.)

Last edited by daftcat; 04-23-2008 at 02:40 PM.
 
Old 04-23-2008, 02:15 PM   #537
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by hanophix View Post
I don't know if I am pulling the newest svn off correctly...I am not getting anything when I press J for jumping to a day....I am still getting traceback errors. How do I know whether I am picking up the latest version?
____________________________________________________________________
Newbie error....Got it situated!
Glad to hear it.

I don't mind typing out the howto answers like I just did. It helps me later when someone asks the same question.

You have to have a manual first before you can tell someone to read the fine manual.
 
Old 04-23-2008, 02:17 PM   #538
hanophix
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
Daftcat-
Thanks! I didn't realize it was being put into a new folder, I have been looking at .mlb from the original origin. The svn put it in a mlbviewer-test folder within my home directory...I am sure you already know this, but I didn't and that was my problem... Everything works great, I love the options!
 
Old 04-23-2008, 02:34 PM   #539
jkr
Member
 
Registered: Apr 2008
Posts: 115

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post

Did you create a new branch (or tag)? What's with the "mlbviewer-test"?
Nope. You can call the target directory anything you want -- I just wanted to indicate putting it somewhere other than the directory he was probably running out of right now. Sometimes if somethig got screwy with my edit, I just pull down to a different folder with an arbitrary name (mlbviewer-i-fd-up) and run it out of there to compare.

Great writeup. One slight addition:

Quote:
Originally Posted by daftcat View Post
svn diff to see the changes between what you checked out and what's in the repository.
This actually shows the difference between what you last checked out (what was on the server) and the local changes you made to it. It doesn't show what changes have appeared on the server.

Advanced usage note: 'svn log' shows you all the changes. But you can actually pull down from any point -- svn keeps a complete history. So if any of you are real bug-hunting junkies, and you think a recent change might have screwed something up, you can just run 'svn -r #' up, where '#' is a change in the log, to roll back to here. Only for the curious, but the latest version will still always be there waiting for you if you screw up

And just to add on to what daftcat said about system installation. If that's how you run it, you can just run setup.py again. Each change will overwrite the old files.
 
Old 04-23-2008, 02:37 PM   #540
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Where Are Condensed Games?

Copied from the MLB Mosaic Forum (and in turn, copied from an email correspondence with one of the members of that forum):

Quote:
Thank you very much for your note to Mark Newman regarding your inability to get the Condensed Games. We apologize for the delay in providing you this content, but the product is not gone forever. Its launch this year was slightly delayed due to the several unforeseen factors around Opening Day. That being said, we fully expect the product to be available in May. In the interim, I would recommend you use our new video search page and watch the Rewind Recaps. We have them for every game, every day. Thanks for your patience and we look forward to providing you with the Condensed Games as soon as possible.



Best regards,

Matthew Gould

VP, Corporate Communications

MLB Advanced Media
When Condensed Games return, I'll be sure to add that to mlbviewer. For now, I support Rewind Recaps already.
 
  


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 03:37 AM.

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