You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The invenio_utilities_tuw doesn't work with invenio v11, installing it causes all CLI commands to fail with an import error ImportError: cannot import name 'gettext' from 'invenio_i18n' (/invenio_i18n/__init__.py).
I'm able to install the TUW utilities now after an update to that package but the change_owner script does not work due to an error with their set_record_owners method:
File ...site-packages/invenio_utilities_tuw/cli/utils.py:112, in set_record_owners(record, owners, commit)
106 """Set the record's owners, assuming an RDMRecord-like record object."""
107 parent = record.parent
--> 109 parent.access.owners.clear()
110 for owner in owners:
111 parent.access.owners.add(owner)
AttributeError: 'ParentRecordAccess' object has no attribute 'owners'
https://github.com/caltechlibrary/caltechdata/tree/main/scripts
"requires invenio_utilities_tuw" so will have to add that to Pipfile (but it's not listed in CalTech's Pipfile?)
https://gitlab.tuwien.ac.at/fairdata/invenio-utilities-tuw
Some of their other CLI scripts are likely going to be useful as well.
The text was updated successfully, but these errors were encountered: