weslly / ColorPicker

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

Not working on Kubuntu 20.04 #104

Open Chowih opened 4 years ago

Chowih commented 4 years ago

The plugin don't work in SublimeText (3211) with the Ctrl + Shift + C shortcut. I have 2 PCs with this OS and SublimeText Version. Both have the same issue.

gatti2602 commented 4 years ago

Same happens here, ver. 3211 and running ubuntu 20.4

Darkle commented 4 years ago

I believe its because the gtk libraries arent installed. If you try to run linux_colorpicker.py on its own you should see the error.

This is the error that I got: https://www.google.com/search?q=import+gtk+as+Gtk+ImportError%3A+No+module+named+gtk

lapega commented 2 years ago

Since version 22.04 there's not an easy way to install python2-gtk (was the fix used in ubuntu 20.04).

The fix I found is edit the first line of the file ~/.config/sublime-text/Packages/ColorPicker/lib/linux_colorpicker.py

and change the first line, from #!/usr/bin/env python to #!/usr/bin/env python3

That fixes my problem in ubuntu 22.04.