r0oth3x49 / lynda-dl

A cross-platform python based utility to download courses from lynda.com for personal offline use.
MIT License
295 stars 95 forks source link

installation error #74

Closed hereisderek closed 4 years ago

hereisderek commented 4 years ago

this is a noob question and probably been asked before (although I couldn't find any)

when trying to install lynda-dl, I'm getting the following error

the old script wrapper happens cuz I upgraded pip3 with sudo (which I probably shouldn't do), however the installation failed for the exactly same reason before I've done the upgrade

➜  lynda-dl git:(master) ✗ python3 -V
Python 3.7.3
➜  lynda-dl git:(master) ✗ npm -v
6.14.1
➜  lynda-dl git:(master) ✗ pip3 -V
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 20.0.2 from /usr/local/lib/python3.7/dist-packages/pip (python 3.7)
➜  lynda-dl git:(master) ✗ pip3 install ./
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /srv/dev-disk-by-label-data/app/lynda-dl
Requirement already satisfied: requests[security] in /usr/lib/python3/dist-packages (from lynda-dl==0.3) (2.21.0)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from lynda-dl==0.3) (1.12.0)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from lynda-dl==0.3) (0.3.7)
Requirement already satisfied: unidecode in /usr/local/lib/python3.7/dist-packages (from lynda-dl==0.3) (1.1.1)
Requirement already satisfied: pyOpenSSL in /usr/local/lib/python3.7/dist-packages (from lynda-dl==0.3) (19.1.0)
Requirement already satisfied: cryptography>=1.3.4 in /usr/local/lib/python3.7/dist-packages (from requests[security]->lynda-dl==0.3) (2.8)
Requirement already satisfied: idna>=2.0.0 in /usr/lib/python3/dist-packages (from requests[security]->lynda-dl==0.3) (2.6)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.7/dist-packages (from cryptography>=1.3.4->requests[security]->lynda-dl==0.3) (1.14.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.3.4->requests[security]->lynda-dl==0.3) (2.19)
Building wheels for collected packages: lynda-dl
  Building wheel for lynda-dl (setup.py) ... done
  Created wheel for lynda-dl: filename=lynda_dl-0.3-py3-none-any.whl size=27440 sha256=aaef9c6d27b56789de52876ab3fec170537e6d7df9b171747fe342809dd725b5
  Stored in directory: /home/pi/.cache/pip/wheels/21/d9/19/dac31d42fa5a4baff1e20122b8d657cc9d16f653da56e9a9e5
Successfully built lynda-dl
Installing collected packages: lynda-dl
  Attempting uninstall: lynda-dl
    Found existing installation: lynda-dl 0.3
    Uninstalling lynda-dl-0.3:
      Successfully uninstalled lynda-dl-0.3
  WARNING: The script lynda-dl is installed in '/home/pi/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed lynda-dl-0.3
➜  lynda-dl git:(master) ✗ /home/pi/.local/bin/lynda-dl
Traceback (most recent call last):
  File "/home/pi/.local/bin/lynda-dl", line 5, in <module>
    from lynda.lynda_dl import main
ModuleNotFoundError: No module named 'lynda.lynda_dl'

however if I do directly run it by python3 ./lynda-dl.py, it does work

➜  lynda-dl git:(master) ✗ python3 ./lynda-dl.py

 oooo                                .o8                      .o8  oooo
 `888                               "888                     "888  `888
  888  oooo    ooo ooo. .oo.    .oooo888   .oooo.        .oooo888   888
  888   `88.  .8'  `888P"Y88b  d88' `888  `P  )88b      d88' `888   888
  888    `88..8'    888   888  888   888   .oP"888 8888 888   888   888
  888     `888'     888   888  888   888  d8(  888      888   888   888
 o888o     .8'     o888o o888o `Y8bod88P" `Y888""8o     `Y8bod88P" o888o
       .o..P'
       `Y8P'                            Version : 0.3
                                        Author  : Nasir Khan (r0ot h3x49)
                                        Github  : https://github.com/r0oth3x49

usage: lynda-dl.py [-h] [-v] [-k] [-u] [-p] [-o] [-d] [-q] [--info]
                   [--sub-only] [--skip-sub]
                   course
lynda-dl.py: error: the following arguments are required: course