Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues when creating a XMP sidecar file from zero #89

Open
mateusfmcota opened this issue Aug 3, 2021 · 3 comments
Open

Issues when creating a XMP sidecar file from zero #89

mateusfmcota opened this issue Aug 3, 2021 · 3 comments

Comments

@mateusfmcota
Copy link

Hi, I'm having an issue when I'm trying to create an XMP sidecar file from scratch with xmp toolkit

I tried to do something like this

        xmpfile = XMPFiles( file_path=xmpFilename, open_forupdate=True)
        xmp = xmpfile.get_xmp()
        
        xmp.set_property(consts.XMP_NS_DC, u'creator', post['source'])

but it throws this error:
AttributeError: 'NoneType' object has no attribute 'set_property'

Can anyone help me?

@zougloub
Copy link
Contributor

zougloub commented Jan 8, 2024

Hi @mateusfmcota, and happy 2024, I could reproduce your issue (it would have been better if you provided a self-contained example as well as a traceback).

I get a segfault when running the equivalent exempi command-line:

exempi -w test.xmp -s dc:creator -v me

So it looks like an upstream issue.

@zougloub
Copy link
Contributor

(segfault issue had been reported here: https://gitlab.freedesktop.org/libopenraw/exempi/-/issues/31)

@zougloub
Copy link
Contributor

The segfault has been fixed, but in the same way that it's possible to write a sidecar file using exiftool with eg.:

exiftool -creator=me test.xmp

One would expect exempi to support the analogous:

exempi -w test.xmp -s dc:creator -v me

But it currently doesn't work, as the exempi CLI attempts to read the file.

I haven't checked whether this a limitation of the Adobe SDK or exempi, yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants