assignment of fractions.Fraction to Exif.GPSInfo.GPSAltitude leads to backtrace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Released
|
Medium
|
Olivier Tilloy |
Bug Description
With this simple reproducer:
#!/usr/bin/env python
import pyexiv2, fractions
exif = pyexiv2.
exif.read()
exif['Exif.
on any JPG file, I get this backtrace:
jakoubek:tmp $ python test-pyexiv2-
Traceback (most recent call last):
File "test-pyexiv2-
exif[
File "/usr/lib64/
return getattr(self, '_set_%s_tag' % family)(key, tag_or_value)
File "/usr/lib64/
tag = ExifTag(key, tag_or_value)
File "/usr/lib64/
self.
File "/usr/lib64/
self.raw_value = self._convert_
File "/usr/lib64/
raise ExifValueError(
pyexiv2.
jakoubek:tmp $
When the script is modified to use
fraction = fractions.
exif['Exif.
instead, there is no backtrace.
Using exiv2-0.
Changed in pyexiv2: | |
assignee: | nobody → Olivier Tilloy (osomon) |
milestone: | none → 0.3 |
status: | Confirmed → In Progress |
Changed in pyexiv2: | |
status: | Fix Committed → Fix Released |
This might be duplicate of https:/ /bugs.launchpad .net/pyexiv2/ +bug/514415