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

Running ./schemer.py fails #2

Open
PQCraft opened this issue Feb 19, 2023 · 1 comment
Open

Running ./schemer.py fails #2

PQCraft opened this issue Feb 19, 2023 · 1 comment

Comments

@PQCraft
Copy link

PQCraft commented Feb 19, 2023

/home/pqcraft/Documents/GtkSourceSchemer/./schemer.py:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf, Gdk, GtkSource
/home/pqcraft/Documents/GtkSourceSchemer/./schemer.py:27: PyGIWarning: GtkSource was imported without specifying a version first. Use gi.require_version('GtkSource', '5') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GdkPixbuf, Gdk, GtkSource
Traceback (most recent call last):
  File "/home/pqcraft/Documents/GtkSourceSchemer/./schemer.py", line 688, in <module>
    sys.exit(main())
  File "/home/pqcraft/Documents/GtkSourceSchemer/./schemer.py", line 684, in main
    GUI(fromFile)
  File "/home/pqcraft/Documents/GtkSourceSchemer/./schemer.py", line 69, in __init__
    self.colorBlack = Gdk.color_parse('#000000');
  File "/usr/lib/python3.10/site-packages/gi/overrides/__init__.py", line 32, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3.10/site-packages/gi/module.py", line 123, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Gdk' object has no attribute 'color_parse'
@PQCraft
Copy link
Author

PQCraft commented Feb 21, 2023

Here's a version I made a few "just get it working" patches to
schemer.zip

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

1 participant