[Bug 1032564] New: several GExiv2.Metadata introspection bugs when using python
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564 Bug ID: 1032564 Summary: several GExiv2.Metadata introspection bugs when using python Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: openSUSE 42.2 Status: NEW Severity: Normal Priority: P5 - None Component: GNOME Assignee: bnc-team-gnome@forge.provo.novell.com Reporter: damonlynch@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- On openSUSE Leap 42.2 and Tumbleweed, the following problems exist with the gobject introspection access to Gexiv2 from Python: 1. Cannot pass a file name to the __init__ method of GExiv2.Metadata 2. Cannot access tags via __getitem__ special method, e.g. assuming m is an instance of GExiv2.Metadata, should be able to access tags like this: m["Exif.Photo.FNumber"] 3. The values returned by GExiv2.Metadata.get_exif_tag_rational() cannot be accessed via the attributes 'numerator' and 'denominator'; instead they must be accessed via the attributes 'nom' and 'den'. On other distributions of Linux including Debian, Fedora, and Arch, these problems are not present. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c1
Bjørn Lie
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c2
--- Comment #2 from Bjørn Lie
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c3
--- Comment #3 from Damon Lynch
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c4
Bjørn Lie
I apologise if the bug report was not clear enough with respect to the version. The problems are present in both Leap 42.2 and Tumbleweed. I didn't try 42.1.
The error is on my side, had I read your bug comment properly, I should have understood. In that case, I currently have no idea why we differ here :-/ Waiting for other gnome maintainers to chime in. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c5
Dominique Leuenberger
#!/usr/bin/python3
import gi gi.require_version('GExiv2', '0.10') from gi.repository import GExiv2
img=GExiv2.Metadata('/home/dimstar/Pictures/CIMG9220.JPG')
print(img["Exif.Photo.FNumber"])
===> ./test-gexiv2.py 36/10 so, I used init with a file path and accessed a tag directly my packages: S | Name | Type | Version | Arch | Repository ---+-------------------------+---------+-------------+--------+----------- i+ | libgexiv2-2 | package | 0.10.4-47.6 | x86_64 | GNOME:Apps i+ | python3-gexiv2 | package | 0.10.4-47.6 | x86_64 | GNOME:Apps i | typelib-1_0-GExiv2-0_10 | package | 0.10.4-47.6 | x86_64 | GNOME:Apps -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c6
--- Comment #6 from Damon Lynch
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564
http://bugzilla.opensuse.org/show_bug.cgi?id=1032564#c7
Dominique Leuenberger
participants (1)
-
bugzilla_noreply@novell.com