weslly / ColorPicker

Color picker for Sublime Text
http://weslly.github.io/ColorPicker
511 stars 108 forks source link

ColorPicker doesn't work (Linux/Arch/Sublime Text 2) #31

Closed Spheerys closed 10 years ago

Spheerys commented 11 years ago

Hi !

I can't launch ColorPicker. When I try, I have this on the log :

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./ColorPick.py", line 40, in run
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 1139, in _execute_child
OSError: [Errno 8] Erreur de format pour exec()

Any idea ?

ddoolin commented 11 years ago

Also getting this error, same environment.

THPubs commented 11 years ago

I think I got the issue fixed! Here's how I did it ...

First I installed pygtk (not sure whether this is necessary) and then python2. This script need python2 but Arch have python 3!

sudo pacman -S pygtk

Next, open 'linux_colorpicker.py' (~/.config/sublime-text-2/Packages/ColorPicker/lib/linux_colorpicker.py)

On the top of the file you'll see this ...

#!/usr/bin/env python

Change it to this...

#!/usr/bin/env python2

Simply make python... python2! Save it and restart Sublime!

Spheerys commented 11 years ago

Yes it works ! thanks :)

THPubs commented 11 years ago

@Spheerys You welcome :)

ddoolin commented 11 years ago

Thanks for posting your solution. Much appreciated.

nated0g commented 9 years ago

Thank you! This solved my problem : )