Bug 1001710

Summary: libgexiv2-1: Gobject introspection does not work (in Python)
Product: [Fedora] Fedora Reporter: James Patterson <jamespatterson>
Component: libgexiv2Assignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: mcepl, mcepl, michel, rdieter, sanjay.ankur
Target Milestone: ---Keywords: Patch, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697204#32
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-27 20:42:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description James Patterson 2013-08-27 14:51:30 UTC
Description of problem:
TypeError: GObject.__init__() takes exactly 0 arguments (1 given)

Already fixed in Debian:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697204#32

Any chance of a patch?

Version-Release number of selected component (if applicable):
exiv2-0.23-4.fc19.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Rex Dieter 2013-08-27 15:05:48 UTC
Triaging to libgexiv2 component

Comment 2 Matěj Cepl 2013-08-27 20:42:28 UTC
(In reply to James Patterson from comment #0)
> Description of problem:
> TypeError: GObject.__init__() takes exactly 0 arguments (1 given)
> 
> Already fixed in Debian:
>  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697204#32
> 
> Any chance of a patch?

Actually, no. This is the same result but achieved by different means. Thank you for pointing me in the right direction. The problem is that the missing files for python support are in the separate package (libgexiv2-python2). Without this package you get error as shown above. However, when you install this package (and if no other application requires it is not installed by default), everything works as it should:

matej@wycliff: Vídeň$ ipython
Python 2.7.5 (default, Aug 20 2013, 06:42:55) 
Type "copyright", "credits" or "license" for more information.

IPython 0.13.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from gi.repository import GExiv2
In [2]: im = GExiv2.Metadata('p20021208_120000(5).jpg')
In [3]: dir(im)
Out[3]: 
[ ... very very long list of available methods deleted ...]

In [4]: type(im)
Out[4]: gi.overrides.GExiv2.Metadata

In [5]: 

I know that this is inconvenient, but unless we decide to have this python2 support installed per default (and I don't see the reason why we should), this is as they say a feature rather than a bug. I am sorry (I have been bitten by this myself).

Comment 3 James Patterson 2013-08-28 06:41:11 UTC
Thanks.