Using the latest version it seems it doesn't work. Could you specify what is the last version that it was actually working?
python3 metabase_export.py http://localhost:3200/api/ user password omega export
Traceback (most recent call last):
File "E:\NodeJS\python\metabase_export_import\metabase_export.py", line 20, in
ametabase.export_cards_to_json(metabase_base, metabase_exportdir)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 638, in export_cards_to_json
jsonfile.write(json.dumps(self.convert_ids2names(database_name, card, None), indent=2, sort_keys=True))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 581, in convert_ids2names
name = self.dashboard_id2name(database_name, id)
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 379, in dashboard_id2name
self.dashboard_name2id(database_name, "a")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 371, in dashboard_name2id
for d in self.get_dashboards(database_name):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 350, in get_dashboards
for c in res['ordered_cards']:
~~~^^^^^^^^^^^^^^^^^
KeyError: 'ordered_cards'
Using the latest version it seems it doesn't work. Could you specify what is the last version that it was actually working?
python3 metabase_export.py http://localhost:3200/api/ user password omega export
Traceback (most recent call last):
File "E:\NodeJS\python\metabase_export_import\metabase_export.py", line 20, in
ametabase.export_cards_to_json(metabase_base, metabase_exportdir)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 638, in export_cards_to_json
jsonfile.write(json.dumps(self.convert_ids2names(database_name, card, None), indent=2, sort_keys=True))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 581, in convert_ids2names
name = self.dashboard_id2name(database_name, id)
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 379, in dashboard_id2name
self.dashboard_name2id(database_name, "a")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 371, in dashboard_name2id
for d in self.get_dashboards(database_name):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "E:\NodeJS\python\metabase_export_import\metabase.py", line 350, in get_dashboards
for c in res['ordered_cards']:
~~~^^^^^^^^^^^^^^^^^
KeyError: 'ordered_cards'