Comment 6 for bug 824440

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

It seems we are on a good way.

I've also convert the .py files with 2to3, see attached log.

Trying with following code:

import pyexiv2

print ("pyexiv2 version: ", pyexiv2.version_info)

metadatas = pyexiv2.ImageMetadata('/home/vincent/magnifier_3/DSCN0502.JPG')
metadatas.read()
print ("Date:\t",metadatas['Exif.Image.DateTime'])
print ("ISO:\t",metadatas['Exif.Photo.IsoSpeedRatings'])
print ("Fnumber:\t",metadatas['Exif.Photo.FNumber'])

 I've this error:

[vincent@myhost magnifier_3]$ python metatest.py
pyexiv2 version: (0, 3, 0)
Traceback (most recent call last):
  File "metatest.py", line 13, in <module>
    metadatas.read()
  File "/usr/lib/python3.2/site-packages/pyexiv2/metadata.py", line 107, in read
    self.__image = self._instantiate_image(self.filename)
  File "/usr/lib/python3.2/site-packages/pyexiv2/metadata.py", line 79, in _instantiate_image
    return libexiv2python._Image(filename)
Boost.Python.ArgumentError: Python argument types in
    _Image.__init__(_Image, bytes)
did not match C++ signature:
    __init__(_object*, std::string, long)
    __init__(_object*, std::string)
[vincent@myhost magnifier_3]$