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]$
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') \t",metadatas[ 'Exif.Image. DateTime' ]) t",metadatas[ 'Exif.Photo. IsoSpeedRatings ']) \t",metadatas[ 'Exif.Photo. FNumber' ])
metadatas.read()
print ("Date:
print ("ISO:\
print ("Fnumber:
I've this error:
[vincent@myhost magnifier_3]$ python metatest.py read() python3. 2/site- packages/ pyexiv2/ metadata. py", line 107, in read te_image( self.filename) python3. 2/site- packages/ pyexiv2/ metadata. py", line 79, in _instantiate_image _Image( filename) ArgumentError: Python argument types in __init_ _(_Image, bytes) _(_object* , std::string, long) _(_object* , std::string)
pyexiv2 version: (0, 3, 0)
Traceback (most recent call last):
File "metatest.py", line 13, in <module>
metadatas.
File "/usr/lib/
self.__image = self._instantia
File "/usr/lib/
return libexiv2python.
Boost.Python.
_Image.
did not match C++ signature:
__init_
__init_
[vincent@myhost magnifier_3]$