-
Notifications
You must be signed in to change notification settings - Fork 16
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
Unregistering breaks all commands #48
Milestone
Comments
Happened to me as well ❯ gto unregister oded v0.0.1
Unregistered oded version v0.0.1
❯ gto audit all
=== Registration audit trail ===
Traceback (most recent call last):
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/bin/gto", line 8, in <module>
sys.exit(cli())
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/cli.py", line 214, in audit
click.echo(gto.api.audit_registration(repo, dataframe=True))
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/api.py", line 139, in audit_registration
for o in reg.state.objects.values()
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/registry.py", line 60, in state
state = self.env_manager.update_state(state, index)
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/tag.py", line 185, in update_state
state.objects[tag.name] = index_tag(state.objects[tag.name], tag.tag)
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/tag.py", line 165, in index_tag
obj.labels.append(label_from_tag(tag, obj))
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/tag.py", line 148, in label_from_tag
version=obj.find_version(
File "/Users/oded/.local/share/virtualenvs/gto-example-8a8TDK3V/lib/python3.9/site-packages/gto/base.py", line 103, in find_version
raise GTOException(
gto.exceptions.GTOException: 0 versions of object oded found, skipping unregistered |
Merged
Thanks, fixed this in #72 , will merge soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After running
showcase.sh
in the example repo and then unregistering a model, all commands seem to throw errors:The text was updated successfully, but these errors were encountered: