After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757965 - hierarchicalSubject (python 3.4.3)
hierarchicalSubject (python 3.4.3)
Status: RESOLVED OBSOLETE
Product: gexiv2
Classification: Other
Component: bindings
0.10.x
Other Linux
: Normal normal
: ---
Assigned To: Gexiv2 Maintainers
Gexiv2 Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-11 21:34 UTC by Victor
Modified: 2018-05-22 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Victor 2015-11-11 21:34:10 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.
Comment 1 Alan Pater 2016-04-21 13:26:19 UTC
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.
Comment 2 GNOME Infrastructure Team 2018-05-22 12:34:43 UTC
-- 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.