-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cant import from github #106
Comments
I can reproduce the error. I'll try to fix it asap. (Sorry for the issue and thanks for reporting!) |
That was blazing fast, thanks! :3 |
I think that this is likely an issue with I think that in your {
"__type__": "Deck",
"children": [],
"crowdanki_uuid": "8cc79fce-35d9-11ea-bf79-305a3a05e8e9",
"deck_config_uuid": "8cc79fcf-35d9-11ea-9a85-305a3a05e8e9",
"deck_configurations": [
{
"__type__": "DeckConfig",
"autoplay": true,
"crowdanki_uuid": "8cc79fcf-35d9-11ea-9a85-305a3a05e8e9", (I've tested this, and it allows import to proceed correctly, at least for me.) AFAICT the problem is caused by the fact that currently, the deck json specifies uuid: * when you were originally editing the deck, then that deck configuration must have been available in Anki, (though for some reason it wasn't exported by CrowdAnki), so you wouldn't have encountered the issue at the time. I'll try to dig into how/under what circumstances (FWIW downgrading to 2.1.26 and the associated version of CrowdAnki (using the CrowdAnki from git — it's not possible from AnkiWeb atm) does not solve the problem, without modifying the deck itself, so this issue isn't a regression.) |
I changed the UUID and now works, for posterity here is the commit ID that caused the problem in my deck before fixing it now I will update master to a working version of my deck. thanks! |
I'm glad that the solution worked! Also, thanks for pinpointing the commit that introduced the issue — it seems to be consistent with what I found. The general issueI can reproduce the export problem.
(Interestingly, it's not even necessary to start a fresh profile before 4! This is presumably because in AFAICT the issue is that when the deck options group is changed for the deck, in Anki, then the "deck's (In terms of underlying the database, at least in Anki 2.1.26, the JSON object in the I haven't looked at the code in detail, yet, (I had been postponing posting this until I did, but didn't get around to it), but it seems that we have three options:
All three are probably brittle in their own ways. |
We don't want the deck_config_uuid to be imported into the database, since it duplicates the information stored in the deck's `conf` and in the relevant deck config's `crowdanki_uuid`, but isn't updated when `conf` changes, resulting in potentially broken `deck.json`s on export. See Stvad#106, Stvad#116.
We don't want the deck_config_uuid to be imported into the database, since it duplicates the information stored in the deck's `conf` and in the relevant deck config's `crowdanki_uuid`, but isn't updated when `conf` changes, resulting in potentially broken `deck.json`s on export. See Stvad#106, Stvad#116.
We don't want the deck_config_uuid to be imported into the database, since it duplicates the information stored in the deck's `conf` and in the relevant deck config's `crowdanki_uuid`, but isn't updated when `conf` changes, resulting in potentially broken `deck.json`s on export. See Stvad#106, Stvad#116.
Hello!, I cant import the deck I last used 10 months ago (jan2020)
here is the repo:
https://github.com/joecabezas/k014_anki_deck_00_99_major_system_pegs
I just modified the repo so there is a single json with the same name of the repo (expecting this to fix my issue but not)
Anki version: 2.1.35 (latest)
repro steps:
it shows error:
I tried downgrading to 2.1.26 as stated in #96
Also tested with Anki 2.1.25, Anki 2.1.15 with no luck
I cant make it to work again, I want to at least recover the deck, which is a single one, what I am missing?
-Joe
The text was updated successfully, but these errors were encountered: