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

Migrate script hit error for media without section #45

Open
ermbutler opened this issue Nov 19, 2021 · 0 comments
Open

Migrate script hit error for media without section #45

ermbutler opened this issue Nov 19, 2021 · 0 comments

Comments

@ermbutler
Copy link
Member

ermbutler commented Nov 19, 2021

The migrate script appears to be having an issue handling media without a section.

When attempting to migrate I hit this error, and then was able to bypass it by moving all the project media into sections:

14 memberships will be created (1 already exist).
1 sections will be created (0 already exist).
3 versions will be created (1 already exist).
1 media types will be created (0 already exist).
3 localization types will be created (0 already exist).
2 state types will be created (0 already exist).
0 leaf types will be created (0 already exist).
Traceback (most recent call last):
  File "examples/migrate.py", line 657, in <module>
    media, media_mapping = find_media(args, src_api, dest_api, dest_project)
  File "examples/migrate.py", line 345, in find_media
    key = (m.name, src_section_names[get_tator_user_sections(m)])
KeyError: ''
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

1 participant