blinkstick-python
blinkstick-python copied to clipboard
sudo command not found
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
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
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