[Bugs] #4965 Sugar HIGH: GdkX11 import should be versioned

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Jul 6 22:51:53 EDT 2016


#4965: GdkX11 import should be versioned
----------------------------+--------------------------------
       Reporter:  davelab6  |       Owner:
           Type:  defect    |      Status:  new
       Priority:  High      |   Milestone:  Unspecified
      Component:  Sugar     |     Version:  Git as of bugdate
       Severity:  Major     |    Keywords:
Distribution/OS:            |  Bug Status:  New
----------------------------+--------------------------------
 When I run the current edit-fonts-activity code in a VM of Fedora-Live-
 SoaS-x86_64-23-10.iso, I see this error:

 {{{
 /usr/lib/python2.7/site-packages/sugar3/graphics/window.py:26:
 PyGIWarning: GdkX11 was imported without specifying a version first. Use
 gi.require_version('GdkX11', '3.0') before import to ensure that the right
 version gets loaded.
   from gi.repository import GdkX11
 }}}

 A similar issue was fixed in https://github.com/sugarlabs/sugar-toolkit-
 gtk3/commit/aea65408f06ec930696b14bc9c2c452ceaaf6853 but it looks like
 this one has not been fixed, because the plain import


 {{{
   from gi.repository import GdkX11
 }}}


 occurs a lot:

 https://github.com/search?utf8=%E2%9C%93&q=org%3Asugarlabs+++from+gi.repository+import+GdkX11&type=Code&ref=searchresults

 but the versioned one,

 {{{
 gi.require_version('GdkX11', '3.0')
 }}}

 does not occur anywhere.

 https://github.com/search?utf8=✓&q=org%3Asugarlabs+++gi.require_version%28%27GdkX11%27%2C+%273.0%27%29&type=Code&ref=searchresults

--
Ticket URL: <https://bugs.sugarlabs.org/ticket/4965>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list