ColorPicker icon indicating copy to clipboard operation
ColorPicker copied to clipboard

Color Picker not working Ubuntu 18.04

Open ultraUser76 opened this issue 7 years ago • 7 comments

Hello. Color picker doesn't work.

Testing ###ColorPickApiIsAvailableCommand = True Testing ###ColorPickApiGetColorCommand = None

Try to change kebinding didn't work either.

What else can I do? Is there a dependency missing or something? Any other information that can I provide for you?

Thanks.

ultraUser76 avatar Jun 27 '18 13:06 ultraUser76

Yeap. ok ... Dependency missing python-gtk2 Working fine.

ultraUser76 avatar Jun 27 '18 13:06 ultraUser76

After you install the python-gtk2 you have to change the following line:

just edit ~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py, look at this line:

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

Replace with:

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

Save and reopen your sublime text 3. I hope it will work.

CarlosMartins01 avatar Apr 10 '20 19:04 CarlosMartins01

Same problem on Ubuntu 20.04, but there is no installation candidate for python-gtk2, there is another way? (I prefer to not install a package outside of repositories)

lapega avatar May 20 '20 16:05 lapega

I can open it by typing $ python Packages/ColorPicker/lib/linux_colorpicker.py

But it won't open in Sublime. (by shortcut or launched through ctrl+shift+p)

lapega avatar Aug 05 '20 14:08 lapega

I can open it by typing $ python Packages/ColorPicker/lib/linux_colorpicker.py

But it won't open in Sublime. (by shortcut or launched through ctrl+shift+p)

Found the solution: The plugin needs the python-gtk package. But since Ubuntu 20.04 that package is not in repositories, so I have to add this with a ppa:

sudo add-apt-repository ppa:nrbrtx/python2-stuff
sudo apt-get install python-gtk2

lapega avatar Aug 05 '20 14:08 lapega

Ya, it doesn't work on UBUNTU 20.04 also. But running these two commands will make it run -

sudo add-apt-repository ppa:nrbrtx/python2-stuff
sudo apt-get install python-gtk2

Actually it needs python package gtk2, which is not installed on ubuntu, you have two install it manually. My problem solved, most probably yours will too.

3xp11i avatar Jan 20 '21 09:01 3xp11i

I can open it by typing $ python Packages/ColorPicker/lib/linux_colorpicker.py But it won't open in Sublime. (by shortcut or launched through ctrl+shift+p)

Found the solution: The plugin needs the python-gtk package. But since Ubuntu 20.04 that package is not in repositories, so I have to add this with a ppa:

sudo add-apt-repository ppa:nrbrtx/python2-stuff
sudo apt-get install python-gtk2

Thanks , It Works! 😊😊

Go-India101 avatar May 27 '21 07:05 Go-India101