Program does not start

Issue #39 invalid
Brendan Hanlon created an issue

Hi, I've installed livestreamer and its dependencies on Tahrpup a Puppy Linux variant based on Ubuntu Trusty. Running python ./grabber i get:

Choose> 5
INFO Downloading: The Golden Age Of Piracy Series 1 Ep 5 The Hidden Fortress.ts
Traceback (most recent call last):
  File "/usr/local/bin/livestreamer", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=1.0,<3.0
ERROR livestreamer exited with error code: 1
Press return to continue...

Could you help with this error code? Thanks

Comments (6)

  1. delx repo owner

    How did you install livestreamer? It looks like you have missed one of its dependencies. The error message is saying that you need requests>=1.0,<3.0.

    Normally if you install something like livestreamer all its dependencies will be installed automatically. Maybe this is an issue with your Linux distribution?

  2. Brendan Hanlon reporter

    Thanks for the reply. I'm using Puppy Linux and have had problems with running livestreamer as root. The error I'm now getting is: INFO Downloading: One Plus One Michael Caton.ts usage: livestreamer [OPTIONS] [URL] [STREAM] livestreamer: error: unrecognized arguments: hlsvariant://http://iviewmetered-vh.akamaihd.net/i/playback/definst/video/news_ONEs_Tx_1208,650000,500000,220000,60000,.mp4.csmil/master.m3u8?hdnea=st=1471316206~exp=1471326205~acl=/*~hmac=bdf5e200e5a18c890ed8e73857f13f3eb1d372adf661f89a54823d99ed791934 best ERROR livestreamer exited with error code: 2 Press return to continue... I posted the problem on the livestreamer github list. The replies indicated two problems. First, the link had expired. Secondly it seems livestreamer requires quotes around the URL. The livestreamer documentation does not have quotes around the URL, but any show I try to download (including recent ones) gives the above error message.

  3. delx repo owner

    Please don't run webdl or livestreamer as root. If you need to install dependencies with pip then you can use a python virtualenv to do so.

    When webdl calls livestreamer it does so using subprocess.Popen. The parameters never see a shell so quoting is not an issue. When webdl logs the command to the screen you'll see a Python list. If you want to execute this in a shell then yeah, you'll need to quote it.

    The links can expire quickly. Webdl will automatically fetch a fresh authentication token each time it tries to download something, so it should never have an expired link. However if you copy/paste that link it into a shell then it may expire depending on how long it takes for you to do this.

    Have you fixed your original DistributionNotFound error? If so could you please paste the complete output from running webdl? To make the comment readable you can wrap it inside a markdown code block by using triple backticks.

  4. Brendan Hanlon reporter

    Thanks again. I fixed all the distribution errors. The problem (I think) lies with the way Puppy Linux is structured to run as root. I ran the program using Linux Mint 18 and it works fine. This is the simplest fix. Thanks again for your help.

  5. Log in to comment