Your message dated Sat, 3 Sep 2016 16:29:20 +0200
with message-id <[email protected]>
and subject line Re: Bug#826067: python-gi: module gi._gi_cairo not found
has caused the Debian Bug report #826067,
regarding python-gi: module gi._gi_cairo not found
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
826067: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826067
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-gi
Version: 3.20.1-1
Severity: important

The module files installed in /usr/lib/python2.7/dist-packages/gi don't
include a non-debug version for _gi_cairo.

There is a version compiled with pydebug enabled that is installed. This
one is named _gi_cairo.i386-linux-gnu_d.so, with "_d" meaning pydebug is
enabled. Since python2 is compiled without pydebug, that makes it unable
to find this shared library.

In the attached test case, this module is tentatively loaded from the
function pygi_struct_foreign_load_module at gi/pygi-foreign.c:70 to
convert arguments to a callback python function. The failure to find a
suitable "foreign struct converter" is not shown to the user.

This bug seriously undermines the ability to use Gtk3 from python2.


Best regards,
Celelibi

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.10.11 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages python-gi depends on:
ii  gir1.2-glib-2.0        1.48.0-2
ii  libc6                  2.22-7
ii  libffi6                3.2.1-4
ii  libgirepository-1.0-1  1.48.0-2
ii  libglib2.0-0           2.48.1-1
ii  python                 2.7.11-1
pn  python:any             <none>

python-gi recommends no packages.

Versions of packages python-gi suggests:
pn  python-gi-cairo  <none>

-- no debconf information
#!/usr/bin/python

import sys

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
import cairo
import math

def OnDraw(w, cr):
    print("OnDraw")
    cr.set_source_rgb(1, 1, 0)
    cr.arc(320,240,100, 0, 2*math.pi)
    cr.fill_preserve()

    cr.set_source_rgb(0, 0, 0)
    cr.stroke()

    cr.arc(280,210,20, 0, 2*math.pi)
    cr.arc(360,210,20, 0, 2*math.pi)
    cr.fill()

    cr.set_line_width(10)
    cr.set_line_cap(cairo.LINE_CAP_ROUND)
    cr.arc(320, 240, 60, math.pi/4, math.pi*3/4)
    cr.stroke()

w = Gtk.Window()
w.set_default_size(640, 480)
a = Gtk.DrawingArea()
w.add(a)

w.connect('destroy', Gtk.main_quit)
a.connect('draw', OnDraw)

w.show_all()

Gtk.main()

--- End Message ---
--- Begin Message ---
On Thu, 2 Jun 2016 16:58:55 +0200 Celelibi <[email protected]> wrote:
> 2016-06-02 11:10 UTC+02:00, Michael Biebl <[email protected]>:
> > Am 02.06.2016 um 02:14 schrieb Celelibi:
> >> Package: python-gi
> >> Version: 3.20.1-1
> >> Severity: important
> >>
> >> The module files installed in /usr/lib/python2.7/dist-packages/gi don't
> >> include a non-debug version for _gi_cairo.
> >>
> >> There is a version compiled with pydebug enabled that is installed. This
> >> one is named _gi_cairo.i386-linux-gnu_d.so, with "_d" meaning pydebug is
> >> enabled. Since python2 is compiled without pydebug, that makes it unable
> >> to find this shared library.
> >>
> >> In the attached test case, this module is tentatively loaded from the
> >> function pygi_struct_foreign_load_module at gi/pygi-foreign.c:70 to
> >> convert arguments to a callback python function. The failure to find a
> >> suitable "foreign struct converter" is not shown to the user.
> >>
> >> This bug seriously undermines the ability to use Gtk3 from python2.
> >
> > Have you tried installing python-gi-cairo?
> > It ships here
> > python-gi-cairo:
> > /usr/lib/python2.7/dist-packages/gi/_gi_cairo.x86_64-linux-gnu.so
> 
> Oh my bad, I even forgot to search which package installed
> /usr/lib/python2.7/dist-packages/gi/_gi_cairo.i386-linux-gnu_d.so.
> It's python-gi-dbg.
> 
> Then this bug should be marked as minor and be only about the missing
> error message.
> python-gi-cairo is only "suggested" by python-gi and the failure to
> load the module produce no message whatsoever.
> 
> I see the code kinda talks about a TypeError exception. But it looks
> like it's never raised.
> 
> Or maybe this bug should be maked as invalid and I report another one?

Yeah, let's close this one.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to