Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this working on the latest Ubuntu? #55

Open
matheo opened this issue Jun 13, 2019 · 5 comments
Open

Is this working on the latest Ubuntu? #55

matheo opened this issue Jun 13, 2019 · 5 comments

Comments

@matheo
Copy link

matheo commented Jun 13, 2019

After upgrading my system, the color picker freezes the screen when I press "Pick".

I've tried to compile from the source, but I got this error after a successful install:

$ pick-colour-picker 
/usr/local/lib/python3.7/dist-packages/pick_colour_picker-1.0-py3.7.egg/pick/__main__.py:5: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
Traceback (most recent call last):
  File "/usr/local/bin/pick-colour-picker", line 11, in <module>
    load_entry_point('pick-colour-picker==1.0', 'gui_scripts', 'pick-colour-picker')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/pick_colour_picker-1.0-py3.7.egg/pick/__main__.py", line 15, in <module>
ModuleNotFoundError: No module named 'colours'

compile instructions in the README would be nice tho.
Thanks!

@stuartlangridge
Copy link
Owner

Ah, the setup.py may need updating; thank you for that. I would suggest you install it from the snap store, though, which is the version I myself use so you know it'll work. I'll take a look at the manual setup when I get a chance, though; thank you for the pointer.

@stuartlangridge
Copy link
Owner

stuartlangridge commented Jun 14, 2019

OK, short answer: someone who knows about setup.py files would doubtless easily be able to fix this bug, but that seemingly isn't me; as far as I'm aware, it ought to work and it isn't, so hopefully someone else will know what I need to add to setup.py to pick up the new files in pick, colours.py and snark.py, as well as __main__.py. I don't know why it's freezing for you, but you should be able to run pick from its checkout folder without installing it, with python -m pick, which may help debug the issue?

@matheo
Copy link
Author

matheo commented Jun 15, 2019

I ran it with python -m pick and I got these warnings:

/pick/__main__.py:5: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Unity

(__main__.py:12997): Gtk-WARNING **: 14:36:09.448: Theme parsing error: <data>:12:31: The :focused pseudo-class is deprecated. Use :focus instead.

when I close it:

(__main__.py:12997): Gtk-CRITICAL **: 14:36:56.671: gtk_main_quit: assertion 'main_loops != NULL' failed

and when I try to pick a color with the Pick button, my computer just freezes with no chance to log the exception output :(

Update

With the snap version I get:

/usr/lib/python2.7/dist-packages/pick/__main__.py:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gdk, GLib, GdkPixbuf, Gio
/usr/lib/python2.7/dist-packages/pick/__main__.py:3: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Unity

(pick-colour-picker:10307): Gtk-WARNING **: 14:53:25.618: Theme parsing error: <data>:12:31: The :focused pseudo-class is deprecated. Use :focus instead.

and my Gnome still freezes, something is wrong with my desktop manager after the upgrade maybe

Thanks @stuartlangridge!

@flexiondotorg
Copy link
Contributor

  • Unity was imported without specifying a version first. is fixed via ed77b4b
  • The :focused pseudo-class is deprecated. Use :focus instead. is fixed via acf08bb

@matheo
Copy link
Author

matheo commented Jun 20, 2019

Thank you so much @flexiondotorg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants