problem in pyexiv2

I have a problem with pyexiv2.
i am trying to apply xmp file to image:

import pyexiv2
# Upload image
image = pyexiv2.Image('image.jpg')
# Load XMP data from preset file
xmp_data = open('filtered.xmp', 'r').read()
# Apply XMP data to image

but i get this error :
AttributeError: ‘Image’ object has no attribute ‘write’

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.