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

deepcopy collections give error: if item['model'] == 'collection': TypeError: string indices must be integers #22

Closed
janwadebock opened this issue Jul 30, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@janwadebock
Copy link

Traceback (most recent call last):
File "metabase.py", line 42, in
mb.copy_collection(source_collection_id=17, destination_parent_collection_id=8, destination_collection_name='Vlaanderen_copy', deepcopy_dashboards=True, verbose=True)
File "C:\Users\janwa\AppData\Local\Programs\Python\Python37\lib\site-packages\metabase_api\metabase_api.py", line 761, in copy_collection
if item['model'] == 'collection':
TypeError: string indices must be integers

@vvaezian
Copy link
Owner

@janwadebock Thanks for the feedback.
Which version of Metabase are you using? This may be related to recent changes Metabase made in their API

@vvaezian vvaezian added the bug Something isn't working label Jul 30, 2021
@janwadebock
Copy link
Author

janwadebock commented Jul 30, 2021 via email

@vvaezian
Copy link
Owner

vvaezian commented Aug 3, 2021

@janwadebock It should work fine now.
Please upgrade to the new version (pip install --upgrade metabase_api) and test it out.
Also check the release notes regarding the changes to copy_collection function.

@janwadebock
Copy link
Author

janwadebock commented Aug 3, 2021 via email

@vvaezian vvaezian closed this as completed Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants