rachmadaniHaryono / we-get

:icecream: Command-line tool for searching torrents.
MIT License
153 stars 26 forks source link

archlinux/python3.8: ImportError: cannot import name 'Token' from 'prompt_toolkit.token' #29

Closed binarytrails closed 3 years ago

binarytrails commented 3 years ago
$ python -m we_get -s Ubuntu -t all
# error:  'yts' - no results..
# error:  'eztv' - no results..
# error:  'the_pirate_bay' - no results..
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/mr/.local/lib/python3.8/site-packages/we_get/__main__.py", line 8, in <module>
    main()
  File "/home/mr/.local/lib/python3.8/site-packages/we_get/__init__.py", line 18, in main
    we_get.start() 
  File "/home/mr/.local/lib/python3.8/site-packages/we_get/core/we_get.py", line 199, in start
    sel.run()
  File "/home/mr/.local/lib/python3.8/site-packages/we_get/core/we_get.py", line 157, in run
    from we_get.core.shell import shell
  File "/home/mr/.local/lib/python3.8/site-packages/we_get/core/shell.py", line 16, in <module>
    from we_get.core.style import we_get_prompt_style
  File "/home/mr/.local/lib/python3.8/site-packages/we_get/core/style.py", line 8, in <module>
    from prompt_toolkit.token import Token
ImportError: cannot import name 'Token' from 'prompt_toolkit.token' (/usr/lib/python3.8/site-packages/prompt_toolkit/token.py)
$ python -m we_get -v
1.0
rachmadaniHaryono commented 3 years ago

can you print out the installed package with pip3 freeze?

e: ~also it seems the aur package is outdated~. there is new release v1.1.0 https://github.com/rachmadaniHaryono/we-get/releases/tag/1.1.0

the current token should be https://github.com/rachmadaniHaryono/we-get/blob/0991d15884e4955993763be90d4b9fdf2b6dda9c/we_get/core/style.py#L9-L12

binarytrails commented 3 years ago

@rachmadaniHaryono

mr $ python -m venv ENV
mr $ source ENV/bin/activate
(ENV) mr $ pip install we-get
Collecting we-get
  Using cached we-get-1.0.1.tar.gz (13 kB)
Collecting docopt
  Using cached docopt-0.6.2.tar.gz (25 kB)
Collecting prompt_toolkit
  Downloading prompt_toolkit-3.0.8-py3-none-any.whl (355 kB)
     |████████████████████████████████| 355 kB 1.8 MB/s 
Collecting colorama
  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Using legacy 'setup.py install' for we-get, since package 'wheel' is not installed.
Using legacy 'setup.py install' for docopt, since package 'wheel' is not installed.
Installing collected packages: docopt, wcwidth, prompt-toolkit, colorama, we-get
    Running setup.py install for docopt ... done
    Running setup.py install for we-get ... done
Successfully installed colorama-0.4.4 docopt-0.6.2 prompt-toolkit-3.0.8 wcwidth-0.2.5 we-get-1.0.1
WARNING: You are using pip version 20.2.1; however, version 20.2.4 is available.
You should consider upgrading via the '/home/mr/shit/ENV/bin/python -m pip install --upgrade pip' command.
(ENV) mr $ python -m we_get -s Ubuntu -t all
# error:  'yts' - no results..
# error:  'eztv' - no results..
# error:  'the_pirate_bay' - no results..
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/mr/shit/ENV/lib/python3.8/site-packages/we_get/__main__.py", line 8, in <module>
    main()
  File "/home/mr/shit/ENV/lib/python3.8/site-packages/we_get/__init__.py", line 18, in main
    we_get.start() 
  File "/home/mr/shit/ENV/lib/python3.8/site-packages/we_get/core/we_get.py", line 199, in start
    sel.run()
  File "/home/mr/shit/ENV/lib/python3.8/site-packages/we_get/core/we_get.py", line 157, in run
    from we_get.core.shell import shell
  File "/home/mr/shit/ENV/lib/python3.8/site-packages/we_get/core/shell.py", line 16, in <module>
    from we_get.core.style import we_get_prompt_style
  File "/home/mr/shit/ENV/lib/python3.8/site-packages/we_get/core/style.py", line 8, in <module>
    from prompt_toolkit.token import Token
ImportError: cannot import name 'Token' from 'prompt_toolkit.token' (/home/mr/shit/ENV/lib/python3.8/site-packages/prompt_toolkit/token.py)
(ENV) mr $ pip freeze
colorama==0.4.4
docopt==0.6.2
prompt-toolkit==3.0.8
wcwidth==0.2.5
we-get==1.0.1
rachmadaniHaryono commented 3 years ago

(ENV) mr $ pip install we-get

install from master zip to get recent commit pip install https://github.com/rachmadaniHaryono/we-get/archive/master.zip

e: if correct it should output following

$ we-get --version
1.1.0

also it seem aur package is not outdated because it will use latest master commit

binarytrails commented 3 years ago

@rachmadaniHaryono

(ENV) mr $ pip install https://github.com/rachmadaniHaryono/we-get/archive/master.zip 
Collecting https://github.com/rachmadaniHaryono/we-get/archive/master.zip
...
Installing collected packages: we-get
    Running setup.py install for we-get ... done
Successfully installed we-get-1.1.1
WARNING: You are using pip version 20.2.1; however, version 20.2.4 is available.
You should consider upgrading via the '/home/mr/shit/ENV/bin/python -m pip install --upgrade pip' command.
(ENV) mr $ python -m we_get -s Ubuntu -t all 
/home/mr/shit/ENV/bin/python: No module named we_get.__main__; 'we_get' is a package and cannot be directly executed
rachmadaniHaryono commented 3 years ago

i fix that in latest dev branch. it seem if you install from pypi you can use python -m we_get but not if you install it from master zip

current solution is to use we-get instead of python -m we_get on your virtualenv

binarytrails commented 3 years ago

@rachmadaniHaryono I don't think the module is we-get since it is an invalid python module name, see the folder at master containing the package called we_get https://github.com/rachmadaniHaryono/we-get/tree/master/we_get and the log:

(ENV) mr $ pip install https://github.com/rachmadaniHaryono/we-get/archive/master.zip  --force
Collecting https://github.com/rachmadaniHaryono/we-get/archive/master.zip
  Downloading https://github.com/rachmadaniHaryono/we-get/archive/master.zip
     \ 205 kB 1.2 MB/s
Collecting colorama
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting docopt
  Using cached docopt-0.6.2.tar.gz (25 kB)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting prompt-toolkit>=3.0.5
  Using cached prompt_toolkit-3.0.8-py3-none-any.whl (355 kB)
Collecting Pygments>=2.6.1
  Using cached Pygments-2.7.2-py3-none-any.whl (948 kB)
Collecting soupsieve>1.2; python_version >= "3.0"
  Using cached soupsieve-2.0.1-py3-none-any.whl (32 kB)
Collecting wcwidth
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Using legacy 'setup.py install' for we-get, since package 'wheel' is not installed.
Using legacy 'setup.py install' for docopt, since package 'wheel' is not installed.
Installing collected packages: colorama, docopt, soupsieve, beautifulsoup4, wcwidth, prompt-toolkit, Pygments, we-get
  Attempting uninstall: colorama
    Found existing installation: colorama 0.4.4
    Uninstalling colorama-0.4.4:
      Successfully uninstalled colorama-0.4.4
  Attempting uninstall: docopt
    Found existing installation: docopt 0.6.2
    Uninstalling docopt-0.6.2:
      Successfully uninstalled docopt-0.6.2
    Running setup.py install for docopt ... done
  Attempting uninstall: soupsieve
    Found existing installation: soupsieve 2.0.1
    Uninstalling soupsieve-2.0.1:
      Successfully uninstalled soupsieve-2.0.1
  Attempting uninstall: beautifulsoup4
    Found existing installation: beautifulsoup4 4.9.3
    Uninstalling beautifulsoup4-4.9.3:
      Successfully uninstalled beautifulsoup4-4.9.3
  Attempting uninstall: wcwidth
    Found existing installation: wcwidth 0.2.5
    Uninstalling wcwidth-0.2.5:
      Successfully uninstalled wcwidth-0.2.5
  Attempting uninstall: prompt-toolkit
    Found existing installation: prompt-toolkit 3.0.8
    Uninstalling prompt-toolkit-3.0.8:
      Successfully uninstalled prompt-toolkit-3.0.8
  Attempting uninstall: Pygments
    Found existing installation: Pygments 2.7.2
    Uninstalling Pygments-2.7.2:
      Successfully uninstalled Pygments-2.7.2
  Attempting uninstall: we-get
    Found existing installation: we-get 1.1.1
    Uninstalling we-get-1.1.1:
      Successfully uninstalled we-get-1.1.1
    Running setup.py install for we-get ... done
Successfully installed Pygments-2.7.2 beautifulsoup4-4.9.3 colorama-0.4.4 docopt-0.6.2 prompt-toolkit-3.0.8 soupsieve-2.0.1 wcwidth-0.2.5 we-get-1.1.1
WARNING: You are using pip version 20.2.1; however, version 20.2.4 is available.
You should consider upgrading via the '/home/mr/shit/ENV/bin/python -m pip install --upgrade pip' command.
(ENV) mr $ python -m we-get -s Ubuntu -t all 
/home/mr/shit/ENV/bin/python: No module named we-get
rachmadaniHaryono commented 3 years ago

we-get since it is an invalid python module name, see the folder at master containing the package called we_get

the module is not we-get but afaik if you install from pip there should be executable called we-get (but maybe not happen on all os/distro)

other thing you can do is to install from dev branch

pip3 install https://github.com/rachmadaniHaryono/we-get/archive/dev.zip

binarytrails commented 3 years ago

@rachmadaniHaryono Here is also the log if I clone it manually and install in edit mod, you can see the Location: /home/mr/git/fork/we-get which points to where I am:

(ENV) mr we-get $ pip install -e .
Obtaining file:///home/mr/git/fork/we-get
Requirement already satisfied: colorama in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (0.4.4)
Requirement already satisfied: docopt in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (0.6.2)
Requirement already satisfied: beautifulsoup4 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (4.9.3)
Requirement already satisfied: prompt-toolkit>=3.0.5 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (3.0.8)
Requirement already satisfied: Pygments>=2.6.1 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (2.7.2)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in /home/mr/shit/ENV/lib/python3.8/site-packages (from beautifulsoup4->we-get==1.1.1) (2.0.1)
Requirement already satisfied: wcwidth in /home/mr/shit/ENV/lib/python3.8/site-packages (from prompt-toolkit>=3.0.5->we-get==1.1.1) (0.2.5)
Installing collected packages: we-get
  Running setup.py develop for we-get
Successfully installed we-get
WARNING: You are using pip version 20.2.1; however, version 20.2.4 is available.
You should consider upgrading via the '/home/mr/shit/ENV/bin/python -m pip install --upgrade pip' command.
(ENV) mr we-get $ python -m we-get
/home/mr/shit/ENV/bin/python: No module named we-get
(ENV) mr we-get $ python -m we_get
/home/mr/shit/ENV/bin/python: No module named we_get.__main__; 'we_get' is a package and cannot be directly executed
(ENV) mr we-get $ python -m we-get
/home/mr/shit/ENV/bin/python: No module named we-get
(ENV) mr we-get $ ls
changelog.rst  CODE_OF_CONDUCT.md  config.cfg  CONTRIBUTING.md  LICENSE  PULL_REQUEST_TEMPLATE.md  README.rst  requirements-dev.txt  res  setup.cfg  setup.py  tests  tools  we_get  we_get.egg-info
(ENV) mr we-get $ pip show we-get
Name: we-get
Version: 1.1.1
Summary: Search torrents from the command-line
Home-page: https://github.com/rachmadaniHaryono/we-get
Author: Levi Sabah
Author-email: 0xl3vi@gmail.com
License: MIT
Location: /home/mr/git/fork/we-get
Requires: colorama, docopt, beautifulsoup4, prompt-toolkit, Pygments
Required-by: 
(ENV) mr we-get $ python -m we_get
/home/mr/shit/ENV/bin/python: No module named we_get.__main__; 'we_get' is a package and cannot be directly executed
(ENV) mr we-get $ python -m we-get
/home/mr/shit/ENV/bin/python: No module named we-get

Now, if I do you dev branch now both we-get and we_get modules are broken:

(ENV) mr we-get $ pip install https://github.com/rachmadaniHaryono/we-get/archive/dev.zip
Collecting https://github.com/rachmadaniHaryono/we-get/archive/dev.zip
  Using cached https://github.com/rachmadaniHaryono/we-get/archive/dev.zip
Requirement already satisfied: colorama in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (0.4.4)
Requirement already satisfied: docopt in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (0.6.2)
Requirement already satisfied: beautifulsoup4 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (4.9.3)
Requirement already satisfied: prompt-toolkit>=3.0.5 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (3.0.8)
Requirement already satisfied: Pygments>=2.6.1 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (2.7.2)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in /home/mr/shit/ENV/lib/python3.8/site-packages (from beautifulsoup4->we-get==1.1.1) (2.0.1)
Requirement already satisfied: wcwidth in /home/mr/shit/ENV/lib/python3.8/site-packages (from prompt-toolkit>=3.0.5->we-get==1.1.1) (0.2.5)
Using legacy 'setup.py install' for we-get, since package 'wheel' is not installed.
Installing collected packages: we-get
    Running setup.py install for we-get ... done
Successfully installed we-get-1.1.1
(ENV) mr we-get $ pip show we-get
Name: we-get
Version: 1.1.1
Summary: Search torrents from the command-line
Home-page: https://github.com/rachmadaniHaryono/we-get
Author: Levi Sabah
Author-email: 0xl3vi@gmail.com
License: MIT
Location: /home/mr/shit/ENV/lib/python3.8/site-packages
Requires: colorama, docopt, beautifulsoup4, prompt-toolkit, Pygments
Required-by: 
(ENV) mr we-get $ python -m we_get -s Ubuntu -t all
/home/mr/shit/ENV/bin/python: No module named we_get.__main__; 'we_get' is a package and cannot be directly executed
(ENV) mr we-get $ python -m we-get -s Ubuntu -t all
/home/mr/shit/ENV/bin/python: No module named we-get

I think trying to force the we-get module name in the setup might have broken entirely your packet invocation in master and dev. Can you please provide a detailed log of how you run it from scratch?

rachmadaniHaryono commented 3 years ago
we-get(dev) ✗: mkvirtualenv $(basename $(pwd))
created virtual environment CPython3.8.6.final.0-64 in 571ms
  creator CPython3Posix(dest=/home/r3r/envs/we-get, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/r3r/.local/share/virtualenv)
    added seed packages: pip==20.2.4, setuptools==50.3.2, wheel==0.35.1
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
virtualenvwrapper.user_scripts creating /home/r3r/envs/we-get/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/r3r/envs/we-get/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/r3r/envs/we-get/bin/preactivate
virtualenvwrapper.user_scripts creating /home/r3r/envs/we-get/bin/postactivate
virtualenvwrapper.user_scripts creating /home/r3r/envs/we-get/bin/get_env_details
(we-get) we-get(dev) ✗: pip install -e .
Obtaining file:///home/r3r/git/we-get
Collecting colorama
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Processing /home/r3r/.cache/pip/wheels/56/ea/58/ead137b087d9e326852a851351d1debf4ada529b6ac0ec4e8c/docopt-0.6.2-py2.py3-none-any.whl
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting prompt-toolkit>=3.0.5
  Using cached prompt_toolkit-3.0.8-py3-none-any.whl (355 kB)
Collecting Pygments>=2.6.1
  Using cached Pygments-2.7.2-py3-none-any.whl (948 kB)
Collecting soupsieve>1.2; python_version >= "3.0"
  Using cached soupsieve-2.0.1-py3-none-any.whl (32 kB)
Collecting wcwidth
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Installing collected packages: colorama, docopt, soupsieve, beautifulsoup4, wcwidth, prompt-toolkit, Pygments, we-get
  Running setup.py develop for we-get
Successfully installed Pygments-2.7.2 beautifulsoup4-4.9.3 colorama-0.4.4 docopt-0.6.2 prompt-toolkit-3.0.8 soupsieve-2.0.1 wcwidth-0.2.5 we-get
(we-get) we-get(dev) ✗: python -m we_get --version
1.1.0
binarytrails commented 3 years ago

@rachmadaniHaryono can you execute python -m we_get -s Ubuntu -t all?

rachmadaniHaryono commented 3 years ago
(we-get) we-get(dev) ✗: python -m we_get --version
1.1.0
(we-get) we-get(dev) ✗: python -m we_get -s Ubuntu -t all
# error:  'yts' - no results..
# Fetching data from '1337x' ..._bay' ...
eztv His Dark Materials S02E04 1080p HDTV x264-wAm[eztv.re].mkv[eztv] [634/?]
1337x Ubuntu.MATE.16.04.2.[MATE][armhf][img.xz][Uzerus] [260/2]
eztv Formula1 2020 Bahrain Grand Prix Race 1080p50 HDTV DD5.1 x264-wAm[eztv.re].mkv[eztv] [127/?]
1337x A.Practical.Guide.to.Ubuntu.Linux,.3rd.Edition.(PDF) [81/3]
1337x Ubuntu.Unleashed.2019.Edition [71/2]
1337x Ubuntu.16.04.1.LTS.Desktop.64-bit [55/2]
eztv WWE.Friday.Night.Smackdown.2020.11.27.720p.HEVC.x265-MeGusta[eztv.re].mkv[eztv] [52/?]
1337x Ubuntu.20.04.User.Guide [51/6]
eztv Love.That.Girl.S02E03.Will.You.Be.There.1080p.HDTV.x264-CRiMSON[eztv.re].mkv[eztv] [46/?]
the_pirate_bay Ubuntu desktop 19.04 (64bit) [42/4] vip
1337x Udemy.-.The.Complete.Ubuntu.Linux.Server.Administration.Course [42/12]
eztv Murder.on.Middle.Beach.S01E02.1080p.WEB.h264-KOGi[eztv.re].mkv[eztv] [35/?]
1337x Ubuntu.16.10.LTS.[Yakkety.Yak][Unity][x32.i386][Desktop][ISO][Uzerus] [34/2]
1337x Ubuntu.Unleashed.2019.Edition:.Covering.18.04,.18.10,.19.04.(13th.Edition).[FTU] [32/4]
the_pirate_bay Udemy - The Complete Ubuntu Linux Server Administration Course [30/2]
1337x BDM&rsquo;s.Series:.The.Complete.Ubuntu.Manual,.Vol.10.2018 [24/2]
1337x The.Official.Ubuntu.Book.(8th.Edition) [22/0]
the_pirate_bay Ubuntu 18.04.1 Desktop 64 bit [14/2]
the_pirate_bay A Practical Guide to Ubuntu Linux, 3rd Edition (PDF) [10/1]
the_pirate_bay Linux Ubuntu 18.04.02 [10/0]
the_pirate_bay Ubuntu Unleashed 2019 Edition [10/0]
the_pirate_bay LINUX UBUNTU 16.10 32X64 [9/0]
the_pirate_bay Ubuntu 16.04.1 LTS Desktop 64-bit [9/0]
the_pirate_bay Ubuntu 20.04 User Guide [9/0]
the_pirate_bay Ubuntu 18.04 Essentials - (BookRAR) [8/0]
the_pirate_bay Udemy - Ubuntu Linux Server Troubleshooting [7/1]
the_pirate_bay Ubuntu 14.10 desktop  x64 [6/0]
the_pirate_bay Infiniteskills - Learning Ubuntu Linux [5/1] vip
the_pirate_bay Udemy - Ubuntu Linux - Go from Beginner to Power User [5/1] vip
the_pirate_bay ubuntu-17.04-desktop-amd64.iso [5/0]
the_pirate_bay Aerial Africa Series 1 2of6 Spirit of Ubuntu 1080p x264 AAC HDTV [5/1] vip
the_pirate_bay Ubuntu Linux (6 Ebook 2006) [PDF CHM Eng] TNT Village [4/0] vip
the_pirate_bay ASI MULTIBOOT USB 1.1 (7-XP-2008,Hirens,Acronis,Wifiway,Ubuntu,W [3/0]
the_pirate_bay CBT Nuggets - Ubuntu [3/1]
the_pirate_bay Ubuntu 15.04 Desktop Amd64, [Iso - MultiLang] [TNTVillage] [3/0]
the_pirate_bay Ubuntu 16.04 LTS [Linux i386/amd64] [TNT Village] [3/2]
the_pirate_bay Ubuntu Unleashed 2017 Edition, 12th Edition by Matthew Helmke -  [3/0] vip
the_pirate_bay Ubuntu Server Essentials - 6685 [ECLiPSE] [3/0]
the_pirate_bay CodeWeavers.Crossover.15.0.1. crack. for ubuntu.fedora.linux [3/0]
the_pirate_bay Ubuntu 18.04.1 Server 64 bit [3/0]
the_pirate_bay Ubuntu MATE 18.04.4 LTS i386 (32-bit) [3/0]
the_pirate_bay Linux Ubuntu-7.10-(Gutsy)-Desktop-i386 [2/0]
the_pirate_bay Ubuntu Ultimate 1.4 DVD (eng)  by http://bestzooom. [2/1]
the_pirate_bay Ubuntu Linux Bible[Ebook][ENG-PDF]ST [2/0]
the_pirate_bay Ubuntu Server 14.04 LTS 64-bit [2/0]
the_pirate_bay Ubuntu Desktop GNU/Linux 14.04.1 Trusty Tahr LTS x64 64bit amd64 [2/0]
the_pirate_bay Ubuntu Server 14.04.1 x64 [2/0]
the_pirate_bay Ubuntu 16.04, The Complete Manual - 2016 [2/0]
the_pirate_bay Lynda -  Learning Ubuntu Desktop [2/0]
the_pirate_bay Ubuntu MATE 16.04.6 LTS desktop i386 [2/0]
the_pirate_bay Ubuntu MATE 18.04.4 LTS amd64 (64-bit) [2/0]
the_pirate_bay ubuntu-6.10-desktop-i386.iso [1/0]
the_pirate_bay Ubuntu Linux 6.06.1 [1/0]
the_pirate_bay Icon Pack [500.000 icone Windows Vista, XP, Linux, Ubuntu, Mac,  [1/0]
the_pirate_bay Wiley.Ubuntu.Linux.Toolbox.1000.plus.Commands.for.Ubuntu.and.Deb [1/0]
the_pirate_bay EXPLORADOR PARA LINUX Y UBUNTU DESDE WINDOWS [1/0]
the_pirate_bay Linux Ubuntu 8.04 Desktop i386 Hardy Heron [1/0]
the_pirate_bay Ubuntu Linux - Bible [2007]-Graxor [1/0]
the_pirate_bay ubuntu-8.10-desktop-i386.iso [1/0]
the_pirate_bay Ubuntu 8.10 (Intrepid Ibex) 64-bit PC (AMD64) install/live DVD [1/0]
the_pirate_bay cd2usb 0.4.3 (Ubuntu Live USB Creator for Windows) [1/0]
the_pirate_bay Portable-Ubuntu [1/0]
the_pirate_bay VTC Ubuntu Certification [1/1]
the_pirate_bay ubuntu-9.10-desktop-i386.iso [1/0]
the_pirate_bay Ubuntu 9.10 AMD64 Alternate [1/0]
the_pirate_bay Ubuntu 9.10 I386 Alternate [1/0]
the_pirate_bay Ubuntu 9.10 AMD64 Standard Install [1/0]
the_pirate_bay Ubuntu 9.10 I386 Netbook Remix [1/0]
the_pirate_bay Ubuntu 9.10 I386 Server [1/0]
the_pirate_bay Ubuntu Server 9.10 | Fast Seed [1/0]
the_pirate_bay ubuntu wsn edition [1/0]
the_pirate_bay ubuntu wsn edition zipped for her pleasure [1/0]
the_pirate_bay Ubuntu 8 [1/0]
the_pirate_bay Ubuntu 8.04-3 Server I386 [1/0]
the_pirate_bay Videotutorial Ubuntu-Spanish (Por Gucho) [1/0]
the_pirate_bay Ubuntu 9.04 Desktop Edition [1/0]
the_pirate_bay virtualbox-3.1_3.1.4-57640_Ubuntu_karmic_i386.deb [1/0]
the_pirate_bay kronictokr_noob_ubuntu_karmic_1.0.2_64_bit [1/0]
the_pirate_bay Ubuntu 10.04 LTS x32 [1/0]
the_pirate_bay Getting Started with Ubuntu 10.04 [1/0]
the_pirate_bay Ubuntu 10.04 Lucid Lynx - LTS - \"Slim\" remix 32bits [1/0]
the_pirate_bay Ubuntu 10.04 LTS amd64.iso [1/0]
the_pirate_bay ubuntu-10.04-server-amd64.iso [1/0]
the_pirate_bay Ubuntu restricted extras offline installer 10.04 for Ubuntu 10.0 [1/0]
the_pirate_bay Ubuntu 10.04 LTS =Latest= [2010] [GuruFuel] [1/0]
the_pirate_bay Ubuntu Books [1/0]
the_pirate_bay 10 Ubuntu Books All You Need [1/0]
the_pirate_bay Ubuntu em Português [1/0]
the_pirate_bay Ubuntu 10.10 Alpha 2 i386 [1/0]
the_pirate_bay Ubuntu 10.10 Alpha 2 amd64 [1/0]
the_pirate_bay Ubuntu Linux Full Circle Magazine Issues 0-41 [1/0]
the_pirate_bay ubuntu desktop 10.10 i386 [1/0]
the_pirate_bay ubuntu 10_4 manual [1/0]
the_pirate_bay VTC.Computer.Software.Training - Ubuntu Linux Video Tutorial [1/0]
the_pirate_bay Ubuntu for Non-Geeks A Pain-Free, Get-Things-Done Guide, 4th Edi [1/0]
the_pirate_bay Ubuntu for Toshiba AC100 [1/0]
the_pirate_bay ubuntu-10.04.4-desktop-i386.iso [1/0]
the_pirate_bay Ubuntu 11.10 Desktop (32-bit) [1/0]
the_pirate_bay Ubuntu 12.04 Beta 1 Desktop 64-bit [1/0]
the_pirate_bay Ubuntu 12.04 Beta 1 Desktop 32-bit [1/0]
the_pirate_bay Ubuntu 12.04 Beta 1 DVD 64-bit [1/0]
the_pirate_bay Ubuntu 12.04 Beta 1 Server 64-bit [1/0]
the_pirate_bay Ubuntu 12.04 Beta 1 Server 32-bit [1/0]
the_pirate_bay ubuntu-10.04.4-desktop-amd64.iso [1/0]
the_pirate_bay ubuntu-10.04.4-alternate-i386.iso [1/0]
the_pirate_bay ubuntu-10.04.4-server-i386.iso [1/0]
the_pirate_bay ubuntu-10.04.4-server-amd64.iso [1/0]
the_pirate_bay ubuntu-8.04.4-desktop-i386.iso [1/0]
the_pirate_bay BEGINNING.UBUNTU.LINUX.6th.EDITION.PAPU [1/0]
the_pirate_bay Linux.Ubuntu.v11.10-i386.with.Virtualbox.v4.1.10.and.INSTALLATIO [1/0]
the_pirate_bay ubuntu-11.10-server-amd64.iso [1/0]
the_pirate_bay ubuntu-11.10-desktop-i386_2 [Untouched] [By krushed18] [1/0]
the_pirate_bay Ubuntu 12.04 desktop-amd64 [1/0]
we-get >

that is the continuation from above logs

what i can do for you now is release another version with __main__.py included

binarytrails commented 3 years ago

@rachmadaniHaryono ok if I clone manually and then checkout the dev branch it works! which means pip install master or dev does not work as well as the pip package but manually cloning the dev branch yes! Yes, adding a main would be great, thank you! see the log:

(ENV) mr we-get $ git checkout dev
Switched to branch 'dev'
Your branch is up to date with 'origin/dev'.
(ENV) mr we-get $ pip install -e .
Obtaining file:///home/mr/git/fork/we-get
Requirement already satisfied: colorama in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (0.4.4)
Requirement already satisfied: docopt in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (0.6.2)
Requirement already satisfied: beautifulsoup4 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (4.9.3)
Requirement already satisfied: prompt-toolkit>=3.0.5 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (3.0.8)
Requirement already satisfied: Pygments>=2.6.1 in /home/mr/shit/ENV/lib/python3.8/site-packages (from we-get==1.1.1) (2.7.2)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in /home/mr/shit/ENV/lib/python3.8/site-packages (from beautifulsoup4->we-get==1.1.1) (2.0.1)
Requirement already satisfied: wcwidth in /home/mr/shit/ENV/lib/python3.8/site-packages (from prompt-toolkit>=3.0.5->we-get==1.1.1) (0.2.5)
Installing collected packages: we-get
  Running setup.py develop for we-get
Successfully installed we-get
(ENV) mr we-get $ python -m we_get -s Ubuntu -t all
# error:  'yts' - no results..
# Fetching data from '1337x' ..._bay' ...
eztv His Dark Materials S02E04 1080p HDTV x264-wAm[eztv.re].mkv[eztv] [634/?] 
1337x Ubuntu.MATE.16.04.2.[MATE][armhf][img.xz][Uzerus] [260/2] 
eztv Formula1 2020 Bahrain Grand Prix Race 1080p50 HDTV DD5.1 x264-wAm[eztv.re].mkv[eztv] [127/?] 
1337x A.Practical.Guide.to.Ubuntu.Linux,.3rd.Edition.(PDF) [81/3] 
1337x Ubuntu.Unleashed.2019.Edition [71/2] 
1337x Ubuntu.16.04.1.LTS.Desktop.64-bit [55/2] 
eztv WWE.Friday.Night.Smackdown.2020.11.27.720p.HEVC.x265-MeGusta[eztv.re].mkv[eztv] [52/?] 
1337x Ubuntu.20.04.User.Guide [51/6] 
eztv Love.That.Girl.S02E03.Will.You.Be.There.1080p.HDTV.x264-CRiMSON[eztv.re].mkv[eztv] [46/?] 
the_pirate_bay Ubuntu desktop 19.04 (64bit) [42/4] vip
1337x Udemy.-.The.Complete.Ubuntu.Linux.Server.Administration.Course [42/12] 
eztv Murder.on.Middle.Beach.S01E02.1080p.WEB.h264-KOGi[eztv.re].mkv[eztv] [35/?] 
1337x Ubuntu.16.10.LTS.[Yakkety.Yak][Unity][x32.i386][Desktop][ISO][Uzerus] [34/2] 
1337x Ubuntu.Unleashed.2019.Edition:.Covering.18.04,.18.10,.19.04.(13th.Edition).[FTU] [32/4] 
the_pirate_bay Udemy - The Complete Ubuntu Linux Server Administration Course [30/2] 
1337x BDM&rsquo;s.Series:.The.Complete.Ubuntu.Manual,.Vol.10.2018 [24/2] 
1337x The.Official.Ubuntu.Book.(8th.Edition) [22/0] 
the_pirate_bay Ubuntu 18.04.1 Desktop 64 bit [14/2] 
the_pirate_bay A Practical Guide to Ubuntu Linux, 3rd Edition (PDF) [10/1] 
the_pirate_bay Linux Ubuntu 18.04.02 [10/0] 
the_pirate_bay Ubuntu Unleashed 2019 Edition [10/0] 
the_pirate_bay LINUX UBUNTU 16.10 32X64 [9/0] 
the_pirate_bay Ubuntu 16.04.1 LTS Desktop 64-bit [9/0] 
the_pirate_bay Ubuntu 20.04 User Guide [9/0] 
the_pirate_bay Ubuntu 18.04 Essentials - (BookRAR) [8/0] 
the_pirate_bay Udemy - Ubuntu Linux Server Troubleshooting [7/1] 
the_pirate_bay Ubuntu 14.10 desktop  x64 [6/0] 
the_pirate_bay Infiniteskills - Learning Ubuntu Linux [5/1] vip
the_pirate_bay Udemy - Ubuntu Linux - Go from Beginner to Power User [5/1] vip
the_pirate_bay ubuntu-17.04-desktop-amd64.iso [5/0] 
the_pirate_bay Aerial Africa Series 1 2of6 Spirit of Ubuntu 1080p x264 AAC HDTV [5/1] vip
the_pirate_bay Ubuntu Linux (6 Ebook 2006) [PDF CHM Eng] TNT Village [4/0] vip
the_pirate_bay ASI MULTIBOOT USB 1.1 (7-XP-2008,Hirens,Acronis,Wifiway,Ubuntu,W [3/0] 
the_pirate_bay CBT Nuggets - Ubuntu [3/1] 
the_pirate_bay Ubuntu 15.04 Desktop Amd64, [Iso - MultiLang] [TNTVillage] [3/0] 
the_pirate_bay Ubuntu 16.04 LTS [Linux i386/amd64] [TNT Village] [3/2] 
the_pirate_bay Ubuntu Unleashed 2017 Edition, 12th Edition by Matthew Helmke -  [3/0] vip
the_pirate_bay Ubuntu Server Essentials - 6685 [ECLiPSE] [3/0] 
the_pirate_bay CodeWeavers.Crossover.15.0.1. crack. for ubuntu.fedora.linux [3/0] 
the_pirate_bay Ubuntu 18.04.1 Server 64 bit [3/0] 
the_pirate_bay Ubuntu MATE 18.04.4 LTS i386 (32-bit) [3/0] 
the_pirate_bay Linux Ubuntu-7.10-(Gutsy)-Desktop-i386 [2/0] 
the_pirate_bay Ubuntu Ultimate 1.4 DVD (eng)  by http://bestzooom. [2/1] 
the_pirate_bay Ubuntu Linux Bible[Ebook][ENG-PDF]ST [2/0] 
the_pirate_bay Ubuntu Server 14.04 LTS 64-bit [2/0] 
the_pirate_bay Ubuntu Desktop GNU/Linux 14.04.1 Trusty Tahr LTS x64 64bit amd64 [2/0] 
the_pirate_bay Ubuntu Server 14.04.1 x64 [2/0] 
the_pirate_bay Ubuntu 16.04, The Complete Manual - 2016 [2/0] 
the_pirate_bay Lynda -  Learning Ubuntu Desktop [2/0] 
the_pirate_bay Ubuntu MATE 16.04.6 LTS desktop i386 [2/0] 
the_pirate_bay Ubuntu MATE 18.04.4 LTS amd64 (64-bit) [2/0] 
the_pirate_bay ubuntu-6.10-desktop-i386.iso [1/0] 
the_pirate_bay Ubuntu Linux 6.06.1 [1/0] 
the_pirate_bay Icon Pack [500.000 icone Windows Vista, XP, Linux, Ubuntu, Mac,  [1/0] 
the_pirate_bay Wiley.Ubuntu.Linux.Toolbox.1000.plus.Commands.for.Ubuntu.and.Deb [1/0] 
the_pirate_bay EXPLORADOR PARA LINUX Y UBUNTU DESDE WINDOWS [1/0] 
the_pirate_bay Linux Ubuntu 8.04 Desktop i386 Hardy Heron [1/0] 
the_pirate_bay Ubuntu Linux - Bible [2007]-Graxor [1/0] 
the_pirate_bay ubuntu-8.10-desktop-i386.iso [1/0] 
the_pirate_bay Ubuntu 8.10 (Intrepid Ibex) 64-bit PC (AMD64) install/live DVD [1/0] 
the_pirate_bay cd2usb 0.4.3 (Ubuntu Live USB Creator for Windows) [1/0] 
the_pirate_bay Portable-Ubuntu [1/0] 
the_pirate_bay VTC Ubuntu Certification [1/1] 
the_pirate_bay ubuntu-9.10-desktop-i386.iso [1/0] 
the_pirate_bay Ubuntu 9.10 AMD64 Alternate [1/0] 
the_pirate_bay Ubuntu 9.10 I386 Alternate [1/0] 
the_pirate_bay Ubuntu 9.10 AMD64 Standard Install [1/0] 
the_pirate_bay Ubuntu 9.10 I386 Netbook Remix [1/0] 
the_pirate_bay Ubuntu 9.10 I386 Server [1/0] 
the_pirate_bay Ubuntu Server 9.10 | Fast Seed [1/0] 
the_pirate_bay ubuntu wsn edition [1/0] 
the_pirate_bay ubuntu wsn edition zipped for her pleasure [1/0] 
the_pirate_bay Ubuntu 8 [1/0] 
the_pirate_bay Ubuntu 8.04-3 Server I386 [1/0] 
the_pirate_bay Videotutorial Ubuntu-Spanish (Por Gucho) [1/0] 
the_pirate_bay Ubuntu 9.04 Desktop Edition [1/0] 
the_pirate_bay virtualbox-3.1_3.1.4-57640_Ubuntu_karmic_i386.deb [1/0] 
the_pirate_bay kronictokr_noob_ubuntu_karmic_1.0.2_64_bit [1/0] 
the_pirate_bay Ubuntu 10.04 LTS x32 [1/0] 
the_pirate_bay Getting Started with Ubuntu 10.04 [1/0] 
the_pirate_bay Ubuntu 10.04 Lucid Lynx - LTS - \"Slim\" remix 32bits [1/0] 
the_pirate_bay Ubuntu 10.04 LTS amd64.iso [1/0] 
the_pirate_bay ubuntu-10.04-server-amd64.iso [1/0] 
the_pirate_bay Ubuntu restricted extras offline installer 10.04 for Ubuntu 10.0 [1/0] 
the_pirate_bay Ubuntu 10.04 LTS =Latest= [2010] [GuruFuel] [1/0] 
the_pirate_bay Ubuntu Books [1/0] 
the_pirate_bay 10 Ubuntu Books All You Need [1/0] 
the_pirate_bay Ubuntu em Português [1/0] 
the_pirate_bay Ubuntu 10.10 Alpha 2 i386 [1/0] 
the_pirate_bay Ubuntu 10.10 Alpha 2 amd64 [1/0] 
the_pirate_bay Ubuntu Linux Full Circle Magazine Issues 0-41 [1/0] 
the_pirate_bay ubuntu desktop 10.10 i386 [1/0] 
the_pirate_bay ubuntu 10_4 manual [1/0] 
the_pirate_bay VTC.Computer.Software.Training - Ubuntu Linux Video Tutorial [1/0] 
the_pirate_bay Ubuntu for Non-Geeks A Pain-Free, Get-Things-Done Guide, 4th Edi [1/0] 
the_pirate_bay Ubuntu for Toshiba AC100 [1/0] 
the_pirate_bay ubuntu-10.04.4-desktop-i386.iso [1/0] 
the_pirate_bay Ubuntu 11.10 Desktop (32-bit) [1/0] 
the_pirate_bay Ubuntu 12.04 Beta 1 Desktop 64-bit [1/0] 
the_pirate_bay Ubuntu 12.04 Beta 1 Desktop 32-bit [1/0] 
the_pirate_bay Ubuntu 12.04 Beta 1 DVD 64-bit [1/0] 
the_pirate_bay Ubuntu 12.04 Beta 1 Server 64-bit [1/0] 
the_pirate_bay Ubuntu 12.04 Beta 1 Server 32-bit [1/0] 
the_pirate_bay ubuntu-10.04.4-desktop-amd64.iso [1/0] 
the_pirate_bay ubuntu-10.04.4-alternate-i386.iso [1/0] 
the_pirate_bay ubuntu-10.04.4-server-i386.iso [1/0] 
the_pirate_bay ubuntu-10.04.4-server-amd64.iso [1/0] 
the_pirate_bay ubuntu-8.04.4-desktop-i386.iso [1/0] 
the_pirate_bay BEGINNING.UBUNTU.LINUX.6th.EDITION.PAPU [1/0] 
the_pirate_bay Linux.Ubuntu.v11.10-i386.with.Virtualbox.v4.1.10.and.INSTALLATIO [1/0] 
the_pirate_bay ubuntu-11.10-server-amd64.iso [1/0] 
the_pirate_bay ubuntu-11.10-desktop-i386_2 [Untouched] [By krushed18] [1/0] 
the_pirate_bay Ubuntu 12.04 desktop-amd64 [1/0] 
we-get > exit