vikstrous / pirate-get

A command line interface for The Pirate Bay
GNU Affero General Public License v3.0
337 stars 53 forks source link

system can't find pirate-get #93

Closed cesarpachon closed 7 years ago

cesarpachon commented 7 years ago

hi! python's noob question.. I installed pirate-get successfully: pip3 list | grep pirate-get pirate-get (0.2.8) but if I try to execute it, it says "pirate-get: command not found" in what other way can I launch the program? maybe some argument to python executable? thanks! (ubuntu 16, phython 3.4.3+)

rnhmjoj commented 7 years ago

Strange, maybe you are missing some entry in the PATH. You could try to run it by loading main() in a REPL:

from pirate.pirate import main
main()
cesarpachon commented 7 years ago

no look.. I discovered that the file was installed in ~/.local/bin, running from that dir works without any issue. thanks!

vikstrous commented 7 years ago

What distro are you using? This sounds very strange.

cesarpachon commented 7 years ago

distro info: Ubuntu 15.04 wily Linux pc-ubuntu 4.2.0-42-generic #49-Ubuntu SMP Tue Jun 28 21:26:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

rnhmjoj commented 7 years ago

It looks like PEP 370. Did you install pirate-get with pip install --user? Or maybe your command is an alias.

cesarpachon commented 7 years ago

I used 'pip3 install pirate-get' (no sudo, I think). the command doesn't looks like an alias: which pip3 /usr/bin/pip3 maybe this is also relevant: :~ : which pip /usr/bin/pip :~ : pip --version pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7) :~ : pip3 --version pip 1.5.6 from /usr/lib/python3/dist-packages (python 3.4)

morhook commented 3 years ago

Same thing happened on Ubuntu 18.04. Installed pip3 with

sudo apt install python3-pip

(and used already installed python3 3.6.9)