Bug 1001710 - libgexiv2-1: Gobject introspection does not work (in Python)
Summary: libgexiv2-1: Gobject introspection does not work (in Python)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libgexiv2
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-27 14:51 UTC by James Patterson
Modified: 2018-04-11 19:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-27 20:42:28 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 697204 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.