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
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
05-28-2018, 04:05 PM
#5221
LQ Newbie
Registered: May 2018
Posts: 6
Rep:
Quote:
Originally Posted by
mkomko
I'm at my wits' end, sorry I couldn't be of more help. I'm sure someone else will help you.
No worries! Thanks for all of your help.
Current Issue
Code:
:~/.local/bin$ python mlbplay stl
Traceback (most recent call last):
File "mlbplay", line 11, in <module>
sys.exit(main())
File "/home/andrew/.local/lib/python2.7/site-packages/mlbstreamer/play.py", line 337, in main
output = options.save_stream,
File "/home/andrew/.local/lib/python2.7/site-packages/mlbstreamer/play.py", line 211, in play_stream
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Last edited by Acook3; 05-28-2018 at 04:10 PM .
07-11-2018, 04:02 PM
#5223
LQ Newbie
Registered: Jul 2018
Posts: 1
Rep:
mlbstreamer question
I was hoping if you anyone can help me out. I am trying to download archived games to a mp4 from mlb.tv using mlbstreamer. Is that possible?
07-18-2018, 06:14 PM
#5224
Member
Registered: Jan 2007
Posts: 195
Rep:
mlbplay for All-Star Game?
Hi folks,
I'm wondering how to use mlbplay to watch the archived All-Star Game -- at the moment I can't get anywhere since a (real) team code is required. Any suggestions? Or is this unsupported?
07-18-2018, 06:21 PM
#5225
Member
Registered: Jan 2007
Posts: 195
Rep:
Quote:
Originally Posted by
chgoljc
I was hoping if you anyone can help me out. I am trying to download archived games to a mp4 from mlb.tv using mlbstreamer. Is that possible?
And while I'm here, I can probably answer this question: mlbplay can save the stream as a Transport Stream (.ts) file, as described at
https://github.com/tonycpsu/mlbstreamer . I believe (without much expertise) that TS and MP4 files simply use different wrappers around the same content: you can use a tool like ffmpeg to re-mux it -- that is, to unwrap the content of the TS file and re-wrap it as an MP4 -- as described at
https://stackoverflow.com/questions/...ner-in-ios-app .
Hope that helps
07-18-2018, 08:13 PM
#5226
Member
Registered: Jan 2007
Posts: 195
Rep:
All-Star Game
...and, to answer my own question: I managed to fish the game ID (530856) out of mlbstreamer's verbose output and to use this instead of a team code. It might be nice if the game IDs were a little easier to discover, but otherwise all works great with this software as usual!
07-20-2018, 02:20 PM
#5227
Member
Registered: Aug 2010
Posts: 548
streamlink
A heads up for anyway recently installing or upgrading mlbstreamer via pip.
The version of streamlink currently supplied by pip (version 0.14.2) has a bug which prevents mlbstreamer's '-b' option working with live games (it works with archived games). I resolved this by cloning the streamlink git repository, checking out streamlink at version 0.12.1 and installing that in place of the one installed by pip. That seems to work fine. I chose version 0.12.1 because I knew it worked; no doubt other versions do as well, but 0.14.2 doesn't.
02-22-2019, 09:22 PM
#5228
LQ Newbie
Registered: Jun 2014
Posts: 21
Rep:
Not too sure what is going on this time. Had to replace the HDD so I had to install everything again. Couldn't figure out this error. I'm using cygwin btw
Code:
$ pip install mlbstreamer
Collecting mlbstreamer
Using cached https://files.pythonhosted.org/packages/e4/39/a0a88bfb21331168a8b0f8a7a076a4ad062e46496b85bdf29084d53f2ab8/mlbstreamer-0.0.10.tar.gz
Requirement already satisfied: six in /usr/lib/python3.7/site-packages (from mlbstreamer) (1.12.0)
Requirement already satisfied: requests in /usr/lib/python3.7/site-packages (from mlbstreamer) (2.21.0)
Collecting lxml (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/0f/bd/bb1464d1f363dbd805862c8a1ea258b9a4f4d2049c376d1c4790b6545691/lxml-4.3.1.tar.gz
Collecting pytz (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl
Collecting tzlocal (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/cb/89/e3687d3ed99bc882793f82634e9824e62499fdfdc4b1ae39e211c5b05017/tzlocal-1.5.1.tar.gz
Collecting pymemoize (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/f9/31/9c561a845c929ba60c8df2b70be47bd0c0aadb3a55ddfa0cecd244bb6c6f/PyMemoize-1.0.3.tar.gz
Collecting orderedattrdict (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/bc/9b/c21552f4b779e394b8906c8517e795a6ccd6522b10aca5aaac480d6f4756/orderedattrdict-1.5-py2.py3-none-any.whl
Collecting pyyaml (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz
Collecting py-dateutil (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/73/30/e9e22e80fc592803edb23d89588ccaa184f14bb67d9c321f705edbfdd95b/py-dateutil-2.2.tar.gz
Collecting streamlink>=0.11.0 (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/65/c2/07da2836739da1b878ebe86a5a534bbb4548d149ef98d50d58963c497af8/streamlink-1.0.0-py2.py3-none-any.whl
Collecting prompt_toolkit (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/f7/a7/9b1dd14ef45345f186ef69d175bdd2491c40ab1dfa4b2b3e4352df719ed7/prompt_toolkit-2.0.9-py3-none-any.whl
Collecting urwid (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/c7/90/415728875c230fafd13d118512bde3184d810d7bf798a631abc05fac09d0/urwid-2.0.1.tar.gz
Collecting urwid_utils>=0.1.2 (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/21/37/5902ff4d539ec5f7aeccd24f14d88aa2cb899fe8086608d7f67da531d2e2/urwid_utils-0.1.2.tar.gz
Collecting panwid>=0.2.4 (from mlbstreamer)
Using cached https://files.pythonhosted.org/packages/a4/eb/57a3320109ed6498ce718b9573dc856f94849187baebf8c6f8f799766344/panwid-0.2.5.tar.gz
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.7/site-packages (from requests->mlbstreamer) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.7/site-packages (from requests->mlbstreamer) (2018.11.29)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3.7/site-packages (from requests->mlbstreamer) (1.24.1)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/lib/python3.7/site-packages (from requests->mlbstreamer) (2.8)
Collecting iso3166 (from streamlink>=0.11.0->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/f2/f6/985e5b174786e93aff77ec055a4b7ba55ebc95a3f8b5880f845d7bbd253e/iso3166-0.9.tar.gz
Collecting iso-639 (from streamlink>=0.11.0->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/5a/8d/27969852f4e664525c3d070e44b2b719bc195f4d18c311c52e57bb93614e/iso-639-0.4.5.tar.gz
Collecting websocket-client (from streamlink>=0.11.0->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/26/2d/f749a5c82f6192d77ed061a38e02001afcba55fe8477336d26a950ab17ce/websocket_client-0.54.0-py2.py3-none-any.whl
Collecting isodate (from streamlink>=0.11.0->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl
Collecting PySocks!=1.5.7,>=1.5.6 (from streamlink>=0.11.0->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/53/12/6bf1d764f128636cef7408e8156b7235b150ea31650d0260969215bb8e7d/PySocks-1.6.8.tar.gz
Collecting pycryptodome<4,>=3.4.3 (from streamlink>=0.11.0->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/c7/ff/1ca71a40eb69c89778396a30d399639d41473b09c36aff2b700d80dd94b9/pycryptodome-3.7.3.tar.gz
Collecting wcwidth (from prompt_toolkit->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting raccoon==2.1.5 (from panwid>=0.2.4->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/3d/e9/ef3b0e47c835928939a964fdd0d015f125069b4173b900f7f88284ac52e3/raccoon-2.1.5-py2.py3-none-any.whl
Collecting blist (from panwid>=0.2.4->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/6b/a8/dca5224abe81ccf8db81f8a2ca3d63e7a5fa7a86adc198d4e268c67ce884/blist-1.3.6.tar.gz
Collecting tabulate (from raccoon==2.1.5->panwid>=0.2.4->mlbstreamer)
Using cached https://files.pythonhosted.org/packages/c2/fd/202954b3f0eb896c53b7b6f07390851b1fd2ca84aa95880d7ae4f434c4ac/tabulate-0.8.3.tar.gz
Installing collected packages: lxml, pytz, tzlocal, pymemoize, orderedattrdict, pyyaml, py-dateutil, iso3166, iso-639, websocket-client, isodate, PySocks, pycryptodome, streamlink, wcwidth, prompt-toolkit, urwid, urwid-utils, tabulate, blist, raccoon, panwid, mlbstreamer
Running setup.py install for lxml ... error
Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2tt6qj24/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zherpn5r/install-record.txt --single-version-externally-managed --compile:
Building lxml version 4.3.1.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /usr/lib
running install
running build
running build_py
creating build
creating build/lib.cygwin-3.0.1-x86_64-3.7
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/builder.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/cssselect.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/sax.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/usedoctest.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/_elementpath.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/__init__.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/html
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/etree_api.h -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/lxml.etree.h -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml
copying src/lxml/includes/c14n.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/includes
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/rng
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl
creating build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.cygwin-3.0.1-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.cygwin-3.0.1-x86_64-3.7
creating build/temp.cygwin-3.0.1-x86_64-3.7/src
creating build/temp.cygwin-3.0.1-x86_64-3.7/src/lxml
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/usr/src/ports/python37/python37-3.7.2-1.x86_64/build=/usr/src/debug/python37-3.7.2-1 -fdebug-prefix-map=/usr/src/ports/python37/python37-3.7.2-1.x86_64/src/Python-3.7.2=/usr/src/debug/python37-3.7.2-1 -ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fdebug-prefix-map=/usr/src/ports/python37/python37-3.7.2-1.x86_64/build=/usr/src/debug/python37-3.7.2-1 -fdebug-prefix-map=/usr/src/ports/python37/python37-3.7.2-1.x86_64/src/Python-3.7.2=/usr/src/debug/python37-3.7.2-1 -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.7m -c src/lxml/etree.c -o build/temp.cygwin-3.0.1-x86_64-3.7/src/lxml/etree.o -w
In file included from src/lxml/etree.c:97:0:
/usr/include/python3.7m/Python.h:39:10: fatal error: crypt.h: No such file or directory
#include <crypt.h>
^~~~~~~~~
compilation terminated.
Compile failed: command 'gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitz1pndp4d.c -o tmp/xmlXPathInitz1pndp4d.o
/tmp/xmlXPathInitz1pndp4d.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^~~~
cc tmp/xmlXPathInitz1pndp4d.o -L/usr/lib -lxml2 -o a.out.exe
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2tt6qj24/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zherpn5r/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-2tt6qj24/lxml/
All times are GMT -5. The time now is 11:13 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News