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.
Thanks for the information! I'm looking forward to the upcoming season .
Will the World Baseball Classic be supported?
The good news is that I figured out where they are hiding the WBC listings. The bad news is that at least for the next week (I haven't looked much further than that), there is no audio or video available. There will be some media available for WBC vs MLB exhibition games, though. Looks like the first of them is 5-Mar WBC Dominican Republic vs Philadelphia Phillies. That one will show up in mlbviewer without any changes on my end.
If you're curious, change grid.xml in MLBviewer/mlbtv.py to grid_int.xml (first occurrence, line 307 in SVN rev375.)
I did a reinstall on my laptop last year so I'm trying to install mlbviewer again from git but when I try to install PyXML with sudo easy_install pyxml I get an error:
Code:
$ sudo easy_install pyxml
Searching for pyxml
Reading http://pypi.python.org/simple/pyxml/
Reading http://www.python.org/sigs/xml-sig/
Best match: PyXML 0.8.4
Downloading http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0
Processing PyXML-0.8.4.tar.gz
Running PyXML-0.8.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nolH77/PyXML-0.8.4/egg-dist-tmp-LIHQk2
warning: no files found matching '*.html' under directory 'extensions/expat'
warning: no files found matching '*Makefile' under directory 'extensions/expat'
warning: no files found matching '*.dsp' under directory 'extensions/expat'
warning: no previously-included files matching '*/CVS/*' found anywhere in distribution
extensions/pyexpat.c:5:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
$
Is there something I'm missing? I'm using the tutorial I wrote last year for my site and I have no clue what I need to do to get PyXML installed anymore.
I did a reinstall on my laptop last year so I'm trying to install mlbviewer again from git but when I try to install PyXML with sudo easy_install pyxml I get an error:
Code:
$ sudo easy_install pyxml
Searching for pyxml
Reading http://pypi.python.org/simple/pyxml/
Reading http://www.python.org/sigs/xml-sig/
Best match: PyXML 0.8.4
Downloading http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0
Processing PyXML-0.8.4.tar.gz
Running PyXML-0.8.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nolH77/PyXML-0.8.4/egg-dist-tmp-LIHQk2
warning: no files found matching '*.html' under directory 'extensions/expat'
warning: no files found matching '*Makefile' under directory 'extensions/expat'
warning: no files found matching '*.dsp' under directory 'extensions/expat'
warning: no previously-included files matching '*/CVS/*' found anywhere in distribution
extensions/pyexpat.c:5:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
$
Is there something I'm missing? I'm using the tutorial I wrote last year for my site and I have no clue what I need to do to get PyXML installed anymore.
I don't think it's explicitly required anymore. It is either a standard part of python or it is installed by default by many distributions. I have recently reinstalled both Debian and Linux Mint (Debian Edition.) In both cases, I did not install anything other than mplayer2, rtmpdump, and/or mlbhls. Try skipping the pyxml step in the tutorial.
By the way, I'm not sure what the point of commenting out the sys.exit() line in mlbplay.py. mlbviewer.py and mlbplay.py are two different implementations (interfaces) of the MLBviewer library. One uses curses and one does not. But mlbviewer does not use mlbplay (or vice versa.)
I notice that for about the last week nexdef/mlbhls mode no longer works. I get the message:
"An error occurred in locating the game stream:
Stream URL not found in reply. Stream may not be available yet".
This has also affected last year's archives, which I can no longer reach in nexdef mode. The standard non-nexdef mode still seems to work fine however.
The nexdef stream is still being transmitted by MLBTV: it works on pre-season games (including with selectable audio channels) with the google chrome flash browser plugin and the 2012 nexdef.jar java binary.
Something in the nexdef stream selection formatting seems to have changed. I have a basic MLBTV subscription, rather than premium subscription, if that makes any difference.
I don't think it's explicitly required anymore. It is either a standard part of python or it is installed by default by many distributions. I have recently reinstalled both Debian and Linux Mint (Debian Edition.) In both cases, I did not install anything other than mplayer2, rtmpdump, and/or mlbhls. Try skipping the pyxml step in the tutorial.
By the way, I'm not sure what the point of commenting out the sys.exit() line in mlbplay.py. mlbviewer.py and mlbplay.py are two different implementations (interfaces) of the MLBviewer library. One uses curses and one does not. But mlbviewer does not use mlbplay (or vice versa.)
Thnaks, I'm able to run mlbviewer2013 without PyXML. I have noticed two things though. When I first fired up mlbviewer I had the config file set to use VLC but after going into the config file and switching to either mplayer or mplayer2 it still uses VLC for playing videos.
I also hit H to call up the help screen (I forgot what the hotkeys were and didn't want to open the README file to check them but as soon as I hit H mlbviewer crashed with this in the terminal:
Code:
$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1637, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 986, in mainloop
myscr.addstr(n,0,k)
_curses.error: addstr() returned ERR
$
Thnaks, I'm able to run mlbviewer2013 without PyXML. I have noticed two things though. When I first fired up mlbviewer I had the config file set to use VLC but after going into the config file and switching to either mplayer or mplayer2 it still uses VLC for playing videos.
I also hit H to call up the help screen (I forgot what the hotkeys were and didn't want to open the README file to check them but as soon as I hit H mlbviewer crashed with this in the terminal:
Code:
$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1637, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 986, in mainloop
myscr.addstr(n,0,k)
_curses.error: addstr() returned ERR
$
Am I missing something?
Check both video_player and audio_player.
vlc is not the default player in mlbviewer so you are picking it up somewhere. Try removing/renaming the config file and let it auto-generate a new one.
The help error occurs when there are either more lines or more columns of text to print than your terminal supports. Sorry, I just haven't implemented truncation or scrolling in all my addstr()'s. Then again, the help screen is formatted for a standard 80x24 terminal.
I notice that for about the last week nexdef/mlbhls mode no longer works. I get the message:
"An error occurred in locating the game stream:
Stream URL not found in reply. Stream may not be available yet".
This has also affected last year's archives, which I can no longer reach in nexdef mode. The standard non-nexdef mode still seems to work fine however.
The nexdef stream is still being transmitted by MLBTV: it works on pre-season games (including with selectable audio channels) with the google chrome flash browser plugin and the 2012 nexdef.jar java binary.
Something in the nexdef stream selection formatting seems to have changed. I have a basic MLBTV subscription, rather than premium subscription, if that makes any difference.
Please post day and game for the games that aren't working. Today's St Louis-New York and yesterday's Boston-Tampa work just fine. Don't have the time to go looking for broken ones.
Please read the instructions in the TOOLS file for providing a debug trace using test/nexdef.py. Post the entire log to pastebin.com and the pastebin url here. We can see if there's something not quite right in the xml response back to you.
How strange. Assuming that you meant the Boston-Miami game, neither that nor the St Louis-New York game is given a tag by mlblistings.py, so I cannot get a debug trace for those.
However, both these games play fine as archives in non-nexdef mode.
I obtained the output of nexdefdl.py for the LA Angels/Cleveland Indians game at http://pastebin.com/iK9BWDB7 . I think the game was still in progress then, but not sure. I will try in a few minutes with the late game.
The late game is not on video, but the LA Angels/Cleveland Indians is now archived and I got a more complete result at http://pastebin.com/N4DV5GuZ. It plays OK in non-nexdef mode.
Sorry this is getting very confusing. The last paste was for the non-televised Minnesota v Tampa game. Here is the real paste for the archive of LA/Cleveland: http://pastebin.com/eNXBVp56 .
You're getting a notAuthorizedStatus in the reply. Not sure why yet. Those XML replies are a beast to sort through. I'll look deeper into this later tonight.
BTW, you can use 'z' key in mlbviewer to get event-id's in Spring Training where not all the media is available. I think mlblistings.py is not getting the event-id from the right tuple which is why St Louis-New York shows no event-id yet in mlbviewer, it has video but not audio.
I modified the test tools to print a decoded version of the XML rather than the raw XML itself. This should make it much easier for me look at these logs. Maybe one day I'll implement some kind of GUI tree for these responses.
If that works for you, I can make a change in mlbviewer code. I'll probably make it a configuration file override temporarily to get you up and running and give me some time to look into it further.
If that works for you, I can make a change in mlbviewer code. I'll probably make it a configuration file override temporarily to get you up and running and give me some time to look into it further.
You sleuthing has not diminished in the off season. With HTTP_CLOUD_WIRED_WEB, nexdefdl.py completed successfully, to the lines:
[MLB] Get (1237): 19/55/01.ts (bw: 500000, time: 1.14s) [Avg. D/L Rate of last 3 chunks: 2.77 Mbps]
[MLB] Get (1239): 19/55/06.ts (bw: 500000, time: 0.54s) [Avg. D/L Rate of last 3 chunks: 5.26 Mbps]
and so on.
Doing a textual search and replace of HTTP_CLOUD_WIRED_WEB for HTTP_CLOUD_WIRED in mlbtv.py, and mlbviewer now works fine for me in nexdef mode.
Maybe this is at the moment only affecting basic MLBTV subscribers or international subscribers. Maybe it will be applied to premium users in due course. Who knows. Anyway it resolves the problem for me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.