-
Notifications
You must be signed in to change notification settings - Fork 8
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
Having trouble importing epub #37
Comments
Do you have some example epub files that you can share? Ideally, at least 1 success and 1 failure file. Also, it'd be great if you can share your Anki and addon versions. Go to About Anki > Copy Debug Info. |
Anki 24.11 (87ccd24e) (ao) ===Add-ons (active)=== ===IDs of active AnkiWeb add-ons=== ===Add-ons (inactive)=== |
I just did some investigation and suspect that the addon was looking at the wrong drive (see how the path doesn't include a drive letter?). Q: Does it successfully import a any articles/chapter in the failure file or did it just fail immediately? |
Perhaps you're right; the plugin might be making a mistake in path recognition. When I import the bug file, the plugin first provides a list of split chapters, but no matter what I select, it ultimately results in an error after I click confirm. |
Did any of the selected chapters get successfully imported? |
Never managed to successfully import the selected chapters; after the bug appeared, the entire Anki interaction interface froze, and I had to use the Windows Task Manager to close Anki. I carefully considered the path issue you mentioned and recalled that I had once changed my Win10 system's Documents directory from the C drive to the same path under a different drive letter. Perhaps this is the reason for the bug? |
Yeah, that could be related. I think this has something to do with the default drive that the add-on assumes, and the drive where the content of the epub is extracted. (related: On Windows, the directories C:\TEMP, C:\TMP, \TEMP, and \TMP, in that order.) Also, the fact that you couldn't import any chapters means that the problem is likely at the folder level and not a per-file problem. I have an idea for a fix that I can try in the next release. It might fix your problem (can't confirm as I can't reproduce). |
This is my attempt to fix #37 I can't reproduce the issue so just making a best guess.
@nashihang777 I tried to fix this in 4.12.1. If you can try it out and let me know how it goes, that'd be appreciated! |
It's unfortunate that an error still occurred, and the error message is exactly the same as before. As a result, I can only close Anki through the Windows Task Manager. Anki 24.11 (87ccd24e) (ao) ===Add-ons (active)=== ===IDs of active AnkiWeb add-ons=== ===Add-ons (inactive)=== |
Hm.. how comfortable are you with using a terminal to launch Anki and make changes to Anki add-on code (or I can send you a zip file as well)? I think I need some logs to debug this further. |
I can try to launch Anki from the terminal and send you the log. Do you have WeChat? It would make our communication more convenient. |
I encountered a "not exist" error when importing some epub files, while other epub files did not report an error. i don't konw why
The text was updated successfully, but these errors were encountered: