Installing webdl requirements under Bash on Ubuntu on Windows

Issue #55 resolved
Don Griffiths created an issue

Previously was able to run webdl on Bash for Windows 10. Grabbed the python3 version and had the following errors

 #include "Python.h"

                    ^

compilation terminated.

warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /root/webdl/.virtualenv/bin/python3 -c "import setuptools, tokenize;__file__='/root/webdl/.virtualenv/build/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-js2ejipz-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/webdl/.virtualenv/include/site/python3.4 failed with error code 1 in /root/webdl/.virtualenv/build/pycrypto
Storing debug log for failure in /root/.pip/pip.log
(.virtualenv)root@HARRIET:~/webdl# . .virtualenv/bin/activate
(.virtualenv)root@HARRIET:~/webdl# ./grabber.py
Traceback (most recent call last):
  File "./grabber.py", line 3, in <module>
    from common import load_root_node, natural_sort
  File "/root/webdl/common.py", line 5, in <module>
    import lxml.etree
ImportError: No module named 'lxml'
(.virtualenv)root@HARRIET:~/webdl#

Comments (7)

  1. delx repo owner
    • edited description

    To install using the virtualenv method you'll need the Python dev package.

    Alternatively since you had it working fine before you may find it easier to just apt-get install the necessary dependencies. I guess this works on the Windows/Ubuntu but I've never tried it myself.

    Please refer to the README for specific instructions, and let me know if it works :)

  2. Don Griffiths reporter

    Ok. Installing using apt-get results in python3-requests-cache and livestreamer not being found.

  3. delx repo owner

    I guess you're running an old version. Some googling suggests that in the past Windows used Ubuntu 14.04.

    So your options are to either: 1. Update to Ubuntu 16.04 and install the dependencies with apt-get 2. Install the Python dev package and use the virtualenv/pip method

  4. Don Griffiths reporter

    Manually installed livestreamer and python3-requests-cache and added ffmpeg ppa and it now works.

    On Thu, Apr 6, 2017 at 8:08 PM, Don Griffiths don.griffiths@gmail.com wrote:

    Ok. Installing using apt-get results in python3-requests-cache and livestreamer not being found.

  5. Don Griffiths reporter

    Also tried the virtualenv/pip method after installing Python dev package. Had to install zlib1g-dev manually. After this, pip install worked and could run in virtualenv

    On Thu, Apr 6, 2017 at 8:50 PM, Don Griffiths don.griffiths@gmail.com wrote:

    Manually installed livestreamer and python3-requests-cache and added ffmpeg ppa and it now works.

    On Thu, Apr 6, 2017 at 8:08 PM, Don Griffiths don.griffiths@gmail.com wrote:

    Ok. Installing using apt-get results in python3-requests-cache and livestreamer not being found.

  6. Log in to comment