weslly / ColorPicker

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

Color Picker not working Ubuntu 18.04 #93

Open ultraUser76 opened 6 years ago

ultraUser76 commented 6 years ago

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 commented 6 years ago

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

CarlosMartins01 commented 4 years ago

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.

lapega commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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
prakhartiwari0 commented 3 years ago

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.

Go-India101 commented 3 years ago

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! 😊😊