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

Collection uploaded no decks are found #1

Open
yzhang1337 opened this issue Jan 21, 2022 · 1 comment
Open

Collection uploaded no decks are found #1

yzhang1337 opened this issue Jan 21, 2022 · 1 comment

Comments

@yzhang1337
Copy link

Hi there,

I followed the instructions as per the binder on both MacOS and Windows10 and am getting the following error.

`---------------------------------------------------------------------------
DBError Traceback (most recent call last)
/srv/conda/envs/notebook/lib/python3.7/site-packages/ipywidgets/widgets/widget_output.py in inner(*args, **kwargs)
101 self.clear_output(*clear_args, **clear_kwargs)
102 with self:
--> 103 return func(*args, **kwargs)
104 return inner
105 return capture_decorator

/tmp/ipykernel_75/1513846262.py in show_decks(change)
25 Path(collection_fname).write_bytes(change['new'][filename]['content'])
26
---> 27 collection = Collection(collection_fname, log=True)
28 select_deck.options=tuple(collection.decks.allNames())
29 collection.close()

/srv/conda/envs/notebook/lib/python3.7/site-packages/anki/collection.py in init(self, path, backend, server, log)
53 self.server = server
54 self.path = os.path.abspath(path)
---> 55 self.reopen()
56
57 self.log(self.path, anki.version)

/srv/conda/envs/notebook/lib/python3.7/site-packages/anki/collection.py in reopen(self, after_full_sync)
269 media_folder_path=media_dir,
270 media_db_path=media_db,
--> 271 log_path=log_path,
272 )
273 else:

/srv/conda/envs/notebook/lib/python3.7/site-packages/anki/rsbackend_gen.py in open_collection(self, collection_path, media_folder_path, media_db_path, log_path)
466 )
467 output = pb.Empty()
--> 468 output.ParseFromString(self._run_command(63, input))
469 return output
470

/srv/conda/envs/notebook/lib/python3.7/site-packages/anki/rsbackend.py in _run_command(self, method, input)
265 err = pb.BackendError()
266 err.ParseFromString(err_bytes)
--> 267 raise proto_exception_to_native(err)
268
269

DBError: DBError { info: "", kind: FileTooNew }`

@Stvad
Copy link
Owner

Stvad commented Jan 22, 2022

Was able to reproduce!
I think the issue here is that the library version used in the exporter does not support the DB from newer version of Anki. I need to look into updating it!

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

2 participants