weslly / ColorPicker

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

Error opening 'linux_colorpicker.py' #91

Closed williamcanin closed 3 years ago

williamcanin commented 6 years ago

I'm having the error of opening Color Picker in Sublime Text 3, I already changed shortcut and nothing. Maybe it's some python conflict or even a missing dependency (but I do not think it's missing a package (I think)), because when I open the terminal, it looks like this:

$ python ~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py #ff0000

Traceback (most recent call last):
  File "/home/william/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py", line 6, in <module>
    from gi.repository import Gtk
  File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 145, in load_module
    importlib.import_module('gi.repository.' + dep.split("-")[0])
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 145, in load_module
    importlib.import_module('gi.repository.' + dep.split("-")[0])
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 146, in load_module
    dynamic_module = load_overrides(introspection_module)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/__init__.py", line 125, in load_overrides
    override_mod = importlib.import_module(override_package_name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gdk.py", line 180, in <module>
    Gdk.EventType._2BUTTON_PRESS = getattr(Gdk.EventType, "2BUTTON_PRESS")
AttributeError: type object 'EventType' has no attribute '2BUTTON_PRESS'

I have python 2 and 3 installed. I use the Fedora distro 27.