This same bug is occurring for me on yakkety. This is the package I have
installed:

moorepants@garuda:~$ aptitude show gir1.2-gexiv2-0.10 
Package: gir1.2-gexiv2-0.10              
Version: 0.10.4-1~jensge1~yakkety3
State: installed
Automatically installed: no
Priority: extra
Section: introspection
Maintainer: Jens Georg <m...@jensge.org>
Architecture: amd64
Uncompressed Size: 25.6 k
Conflicts: gir1.2-gexiv2-0.10, gir1.2-gexiv2-0.10:i386, gir1.2-gexiv2-0.10:i386
Replaces: gir1.2-gexiv2-0.10, gir1.2-gexiv2-0.10:i386
Description: GObject introspection data for the GExiv2 library.
 This package contains introspection data for GExiV2. 
 
 It can be used by packages using the GIRepository format to generate dynamic 
bindings.

moorepants@garuda:~$ /usr/bin/ipython
Python 2.7.12+ (default, Sep 17 2016, 12:08:02) 
Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- 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 [2]: from gi.repository import GExiv2
/usr/bin/ipython:1: PyGIWarning: GExiv2 was imported without specifying a 
version first. Use gi.require_version('GExiv2', '0.10') before import to ensure 
that the right version gets loaded.
  #! /usr/bin/python

In [3]: GExiv2.get_version()
Out[3]: 1004

In [4]: GExiv2.MAJOR_VERSION
Out[4]: 0

In [5]: GExiv2.MICRO_VERSION
Out[5]: 4

In [6]: GExiv2.MINOR_VERSION
Out[6]: 10

In [7]: m = GExiv2.Metadata('/home/moorepants/Pictures/2017/02/19/')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-7-2accd458efa5> in <module>()
----> 1 m = GExiv2.Metadata('/home/moorepants/Pictures/2017/02/19/')

TypeError: GObject.__init__() takes exactly 0 arguments (1 given)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gexiv2 in Ubuntu.
https://bugs.launchpad.net/bugs/1312457

Title:
  Python bindings broken due to changes in GObject overrides API

Status in gexiv2:
  Fix Released
Status in gexiv2 package in Ubuntu:
  Fix Released
Status in gexiv2 source package in Trusty:
  Fix Released

Bug description:
  [Impact]

   * GExiv2 python bindings are not functional, this means that python
  applications trying to use GExiv2 do not work.

   * This worked in Saucy but regressed in Trusty.

   * The upload fixes the bug by updating GExiv2.py to the new GObject
  override API.

  [Test Case]

  1. Get an application that uses the python bindings to GExiv2, such as
  GottenGeography

  2. Try to open a photo.

  Expected behavior: The photo opens.

  Actual behavior: the program crashes.

  [Regression Potential]

  Very little, the changes are confined to GExiv2.py, which is already
  completely broken. This change can't possibly break it any worse than
  it already is.

  [Other Info]
   
  I've reported the bug upstream with patch here:

  https://bugzilla.gnome.org/show_bug.cgi?id=728909

To manage notifications about this bug go to:
https://bugs.launchpad.net/gexiv2/+bug/1312457/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to