arvydas / blinkstick-python

BlinkStick Python interface to control devices connected to the computer
Other
136 stars 53 forks source link

Can't install from pip on OSX #16

Closed bassdread closed 11 years ago

bassdread commented 11 years ago

On 10.8.4 I get the following error running the pip command:

$ sudo pip install blinkstick
Password:
Downloading/unpacking blinkstick
  Downloading BlinkStick-0.5.0.tar.gz
  Running setup.py egg_info for package blinkstick

Downloading/unpacking grapefruit (from blinkstick)
  Could not find a version that satisfies the requirement grapefruit (from blinkstick) (from versions: 0.1a3, 0.1a2, 0.1a1, 0.1a3)
Cleaning up...
No distributions matching the version for grapefruit (from blinkstick)
Storing complete log in /Users/<user>/Library/Logs/pip.log
$ blinkstick -h
-bash: blinkstick: command not found
arvydas commented 11 years ago

I'll look into this and will let you know tomorrow.

robberwick commented 11 years ago

Hi,

I have tested this on 10.8 running HomeBrew (http://brew.sh), and all seemed to install correctly. If you are not doing the same I would certainly recommend switching , as using the system provided python interpreter can be a source of all sorts of quirks and oddities.

Also, do you get a similar error message when trying to install grapefruit directly? i.e. sudo pip install grapefruit

bassdread commented 11 years ago

I have most things installed with brew but I tend to use pip a fair bit. I get the same error installing on Ubuntu:

$ sudo pip install blinkstick
Downloading/unpacking blinkstick
  Downloading BlinkStick-0.5.0.tar.gz
  Running setup.py egg_info for package blinkstick

Downloading/unpacking grapefruit (from blinkstick)
  Could not find a version that satisfies the requirement grapefruit (from blinkstick) (from versions: 0.1a3, 0.1a2, 0.1a1, 0.1a3)
Cleaning up...
No distributions matching the version for grapefruit (from blinkstick)
Storing complete log in /home/channam/.pip/pip.log

The issue is with grapefruit but it means I can't quickly pip install blinkstick any more :(

robberwick commented 11 years ago

Hi

I am finally up with you… I upgraded my pip to the latest version (1.4.1), uninstalled grapefruit and blinkstick, tried a pip install and … boom. Same error.

For now, the workaround is fairly trivial - install grapefruit, specifying a version (sudo pip install grapefruit==0.1a3), and then install blinkstick as before.

That cleared up the issue for me - hopefully you'll have similar results :-)

We will update the setup.py to make that change, so soon the one line blinkstick install will return…

Have a go and let me know how you get on.