GNOME Bugzilla – Bug 757965
hierarchicalSubject (python 3.4.3)
Last modified: 2018-05-22 12:34:43 UTC
Files that haven't been opened in lightroom give the error 'No namespace'. This is a bit strange since Exiv2 0.25 namspaces are automatically registered when you try to add values. Example: picture['Xmp.lr.hierarchicalSubject'] = 'name' Result: 'WARNING **: No namespace info available for XMP prefix `lr'' I tried to solve this by using: picture.register_xmp_namespace('http://ns.adobe.com/lightroom/1.0/', 'lr') But the problem is that it's only possible to add/change 'one value'. So let's say we add 'name' and then 'name2', this wont work. It will only replace 'name' with 'name2'. So I'm asuming that the value type is set to "Text" instead of "bag Text" by default. I've been trying to solve this with: picture.set_xmp_tag_struct() Result: 'AttributeError: 'Metadata' object has no attribute 'set_xmp_tag_struct' This feels a bit strange, I'm honestly unsure how to use 'set_xmp_tag_struct()' correctly but I can't figure it out since it doesn't seem to work at all. How I've been trying to use it: picture.set_xmp_tag_struct('Xmp.lr.hierarchicalSubject', BAG=21) picture.set_xmp_tag_struct('Xmp.lr.hierarchicalSubject', BAG) Feels like a bug, let me know, thanks.
The "lr" namespace is included by default in exiv2 0.25. http://www.exiv2.org/tags-xmp-lr.html So it's a bit strange that you are getting the "No namespace" warning. Others who have reported similar errors have had conflicting exiv2 library versions on their systems.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gexiv2/issues/19.