weslly / ColorPicker

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

Not working in Ubuntu 16.04 LTS #82

Open vajahath opened 8 years ago

vajahath commented 8 years ago

Hi I just had a fresh installation Ubuntu 16.04 LTS version, then installed sublime-text 3 (build 3103) and ColorPicker tool.

I can access the ColorPicker tool using Ctrl+Shift+C, select a color, but the selected color does not appear on the window. ie. After selecting a particular color and clicking ok does do nothing except closing the window. The color hashcode does not appear nor replace existing color value. It was working fine in my previous 14.04 version.

ianfebriyanto commented 8 years ago

just edit ~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py, search this line if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.OK): change to if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType): and save. hope it's help

dipengrg commented 8 years ago

@ianfebriyanto Thank you! very much, it's working now. I was having the same problem as @vajahath since last months.

vajahath commented 8 years ago

@ianfebriyanto Thank you very much.. @dipengrg :+1:

Sschumac commented 8 years ago

id also like to add that if you run the file: ~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py and you are still getting gtk import errors, you need to install the gtk package with: sudo apt-get install python-gtk2

vajahath commented 8 years ago

@dipengrg @ianfebriyanto @ianfebriyanto. It seems like after some updates the

if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType):

configuration wont work. We've to change it back to:

if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.OK):
ericvipo commented 7 years ago

@Sschumac thanks bro!!!' :D

vajahath commented 7 years ago

It seems like the latest commit to this project is before 2 years. Is this still an active project?

3RM commented 7 years ago

@ianfebriyanto Thank you!

CarlosMartins01 commented 4 years ago

It works for Sublime Text 3 in Ubuntu 18.04 as well, but I have to install the dependency python-gtk2.