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.
The short story is that unless you're on the nexdef branch, you're not getting nexdef. As for the state of the branch and whether or not you want to use it, that's up to you. I think the posts about the nexdef branch are back about 40 posts or so...
Thanks for the direction mchapter, got it worked out now.
Same problem as others "problems locating the stream"
in Nexdef and Standard rev250.
Getting an error that I can't quite track down. To get the following dump, I push d for debug, then select a game.
Code:
Traceback (most recent call last):
File "mlbviewer.py", line 1545, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1237, in mainloop
u = g.soapurl()
File "/home/keith/mlbviewer/trunk/MLBviewer/mlbtv.py", line 1340, in soapurl
reply = client.service.find(**soapd)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 539, in __call__
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 598, in invoke
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 627, in send
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 659, in succeeded
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/bindings/binding.py", line 151, in get_reply
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/bindings/binding.py", line 208, in replycomposite
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/typed.py", line 66, in process
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 48, in process
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 61, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/typed.py", line 80, in start
suds.TypeNotFound: Type not found: 'cdn'
Traceback (most recent call last):
File "/home/corey/mlbviewer/mlbviewer.py", line 1545, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/home/corey/mlbviewer/mlbviewer.py", line 1237, in mainloop
u = g.soapurl()
File "/home/corey/mlbviewer/MLBviewer/mlbtv.py", line 1340, in soapurl
reply = client.service.find(**soapd)
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 539, in __call__
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 598, in invoke
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 627, in send
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/client.py", line 659, in succeeded
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/bindings/binding.py", line 151, in get_reply
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/bindings/binding.py", line 208, in replycomposite
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/typed.py", line 66, in process
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 48, in process
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 63, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 140, in append_children
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/core.py", line 61, in append
File "/usr/local/lib/python2.6/dist-packages/suds-0.3.9-py2.6.egg/suds/umx/typed.py", line 80, in start
suds.TypeNotFound: Type not found: 'cdn'
I guess maybe I should try the nexdef branch? Maybe once I'm sober.
You are all experiencing the same error. In this case, it's the last line of the traceback:
Quote:
suds.TypeNotFound: Type not found: 'cdn'
Basically, their servers are sending back bad XML.
What is normally:
Code:
<cdn>AKAMAI_FLASH_WHATEVER</cdn>
is now being sent as:
Code:
<cdn><cdn>WHATEVER</cdn></cdn>
The xsd file ("decoder ring") says <cdn> is type string while in this case it is both a string (the inside <cdn>) and a complex type (the outside <cdn>.)
Why don't you all hang tight for a day or two while I look into a few options to fix this:
Quote:
1. Hopefully MLB.com will have fixed it themselves.
2. In the meantime, I'll contact the suds developer and see if there is a way to define cdn as both a string and a complex type.
3. While I'm waiting for his response (and he's usually prompt), I'll sniff the official player and see what they are doing differently, e.g. why they aren't affected.
I don't want to do anything tonight (except the second option) because I'm tired and I have work tomorrow. I can't look into option 3 until tomorrow night.
SVN revision 252: soap issue may be fixed on nexdef branch
Hi guys,
So I got a response back from the suds developer and a fix for the SOAP issue that was bugging everyone out yesterday.
In addition to the SOAP mess, it looks like they also made the <url> element a list. So I've changed the parser code for this. This means I'll need everyone to test all kinds of media (audio, video, condensed game, highlights, nexdef/non-nexdef, etc.)
I checked these fixes into the nexdef2010 branch. Once I'm satisfied that everything is working correctly, I'll update the main branch too.
You'll need to copy the updated MediaService.xsd file to ~/.mlb and clear the suds cache:
Code:
$ cp MediaService.xsd ~/.mlb
$ rm -r /tmp/suds/*
Give that a go and tell me if you're still having problems connecting to games.
3. While I'm waiting for his response (and he's usually prompt), I'll sniff the official player and see what they are doing differently, e.g. why they aren't affected.
My guess, since the official player is never affected when they change their XML, is that they don't validate the XML. If they did, then we wouldn't need to use a modified copy of the .xsd file.
So I got a response back from the suds developer and a fix for the SOAP issue that was bugging everyone out yesterday.
In addition to the SOAP mess, it looks like they also made the <url> element a list. So I've changed the parser code for this. This means I'll need everyone to test all kinds of media (audio, video, condensed game, highlights, nexdef/non-nexdef, etc.)
I checked these fixes into the nexdef2010 branch. Once I'm satisfied that everything is working correctly, I'll update the main branch too.
You'll need to copy the updated MediaService.xsd file to ~/.mlb and clear the suds cache:
Code:
$ cp MediaService.xsd ~/.mlb
$ rm -r /tmp/suds/*
Give that a go and tell me if you're still having problems connecting to games.
daftcat:
The MediaService.xsd - how do I update this - do I need to reinstall mblviewer? Sorry for not being the brightest on this - still learning.
keith@cob:~/mlbviewer$ svn up
U branches/nexdef2010/test/nexdef.py
U branches/nexdef2010/test/soapevent.py
U branches/nexdef2010/MLBviewer/mlbtv.py
U branches/nexdef2010/MediaService.xsd
U branches/nexdef2010/mlblistings.py
Updated to revision 252.
keith@cob:~/mlbviewer$ cd branches/nexdef2010/
keith@cob:~/mlbviewer/branches/nexdef2010$ cp MediaService.* ~/.mlb/
keith@cob:~/mlbviewer/branches/nexdef2010$ rm -r /tmp/suds/*
keith@cob:~/mlbviewer/branches/nexdef2010$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1492, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1181, in mainloop
u = g.url()
File "/home/keith/mlbviewer/branches/nexdef2010/MLBviewer/mlbtv.py", line 1281, in url
return self.flash_url(game_url)
File "/home/keith/mlbviewer/branches/nexdef2010/MLBviewer/mlbtv.py", line 1473, in flash_url
raise Exception,e
TypeError: expected string or buffer
Everything seems to be A-okay again, guru. I haven't found anything that doesn't work so far and I've tried live games, archived, condensed games, etc. Audio works too. I don't mess with nexdef because of not enough bandwidth, so I don't know if that is relevant or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.