blinkstick-python icon indicating copy to clipboard operation
blinkstick-python copied to clipboard

sudo command not found

Open kennetheversole opened this issue 3 years ago • 2 comments

I have followed the instructions to install blinkstick sitck

sudo pip3 install blinkstick

but I am getting whenever I try to test it

sudo blinkstick --pulse red
sudo: blinkstick: command not found

OS: ubuntu 20.04 Python: 3.8

kennetheversole avatar May 28 '21 02:05 kennetheversole

Ran into the same issue. Here's how I fixed it...

  • Install dos2unix
sudo apt-get install dos2unix
  • run dos2unix on blinkstick
sudo dos2unix /usr/local/bin/blinkstick
  • Install pyusb
sudo pip install pyusb
  • Make blinkstick cli executable
sudo chmod +x /usr/local/bin/blinkstick
  • Update first line of blinkstick, change...

#!/usr/bin/env python to #!/usr/bin/env python3

chriskacerguis avatar Jun 13 '21 00:06 chriskacerguis

Unable to fix here with @chriskacerguis solution, /usr/local/bin/blinkstick doesn't exist after pip installing blinkstick

edit: I fixed it by pip installing it on the system python 2.7 (ubuntu 20.04) which created it correctly and then afterwards doing @chriskacerguis 's solution to get it running with python3

RugnirViking avatar Oct 28 '22 13:10 RugnirViking