weslly / ColorPicker

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

not working on st3 linux 64bit #45

Closed darkogerguric closed 9 years ago

darkogerguric commented 10 years ago

Plugin is not working on st3 on linux 64bit, on 32bit works fine

redrbrt commented 10 years ago

Same problem

weslly commented 10 years ago

Does the console (ctrl+`) shows any error message?

thomporter commented 10 years ago

I'm having the same issue. Installed via Package Control. No errors in the console for me.

I did get it to come up once using the command pallet and searching for it... But since then, it will not come up that way, or using ctrl+shift+c (which I had to setup manually... Didn't see a keymap file in the ColorPicker folder in Packages..)

I'm running Ubuntu 14.04, 64bit as well...

darkogerguric commented 10 years ago

@thomporter : Exactly same here, Arch linux 64bit

thomporter commented 10 years ago

It is mysteriously working now... Both the keyboard shortcut and the command pallet options work fine. I got another issue I'm gonna open a new ticket on, but for now, I'm able to get the color picker up.

I did nothing to in ST other than edit files, haven't even restarted it since my first post... (sorry @dare023 (and others...) Wish I had a proper solution.

kbjr commented 10 years ago

Same problem here; Ubuntu 13.10 64-bit. Tried ctrl+shift+c, nothing. Tried it from command pallet, nothing. No errors in sublime console, either.

paulikt commented 10 years ago

Same here but it 32bit Ubuntu 12.04 Nothing in the console. I tried starting linux_colorpicker.py (on its own) from the terminal. It starts fine without arguments, BUT

$ ./linux_colorpicker.py "#0000FF"
Traceback (most recent call last):
  File "./linux_colorpicker.py", line 9, in <module>
    if Gtk.gdk.Color(sys.argv[1]):
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 243, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 105, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk'

A barely know anything about python, but I don't think that this is the expected behaviour :)
wmh commented 10 years ago

Same problem here with my ST3 on ubuntu 14.04 64bit.

I can run color picker from command palette (ctrl-shift-p), but can't find any key binding for it. So I add my key binding manually, and now it's working. Preferences -> Key Bindings - User

[
    { "keys": ["ctrl+shift+c"], "command": "color_pick" }
]
darkogerguric commented 10 years ago

Nope, not working here in any case.

redrbrt commented 10 years ago

wmh, the solution for custom binding key works for me! thanks

selwynorren commented 9 years ago

Hi Guys,

On Ubuntu Gnome 64 bit I solved this issue by installing the following module: sudo apt-get install libQt5Widgets5

Now the color picker works very well.

kbjr commented 9 years ago

My machine says libQt5Widgets5 is already installed, so not a fix for me.

rafaelcanovas commented 9 years ago

Can confirm @paulikt, not working here either. Running Linux Mint and ST3. Running manually linux_colorpicker.py without arguments works, but if I run passing an initial color it throws:

Traceback (most recent call last):
  File "linux_colorpicker.py", line 9, in <module>
    if Gtk.gdk.Color(sys.argv[1]):
  File "/usr/lib/python3/dist-packages/gi/module.py", line 320, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3/dist-packages/gi/module.py", line 139, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk'
paulikt commented 9 years ago

Maybe it is related to the version of the Qt library. On my Ubuntu 12.04 the highest (stock repo) available Qt is Qt4. Unfortunately I don't have the time to compile Qt5 and test my idea.

rafaelcanovas commented 9 years ago

It's related to the GDK library being moved to its own namespace on newest GTK versions, I got a working version, working on a PR right now.

rafaelcanovas commented 9 years ago

Can someone test for me on older versions of GTK? color_parse should be available on both GTK 2 and 3 according to the docs, but we all know the docs aren't always the truth.