-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pearson Reader+: StopIteration
at Extracting epub
#64
Comments
I pushed a temporary fix in 1a9c913 |
Thanks for quick fix, I pulled changes but unfortunately still: Traceback (most recent call last):
File "pdfgrabber/main.py", line 271, in <module>
main()
File "pdfgrabber/main.py", line 253, in main
downloadbook()
File "pdfgrabber/main.py", line 174, in downloadbook
pdfpath = utils.downloadbook(service, token, bookid, books[bookid], progressfun)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pdfgrabber/utils.py", line 42, in downloadbook
pdf = service.downloadbook(token, bookid, data, progress)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pdfgrabber/services/prs.py", line 366, in downloadbook
pdf = downloadrplusepub(data["url"], data["pwd"], progress)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pdfgrabber/services/prs.py", line 326, in downloadrplusepub
pagelistitem = next(i for i in tocfile.find("xhtml:body", ns).findall("xhtml:nav", ns) if i.get("{http://www.idpf.org/2007/ops}type") == "page-list")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration |
With Traceback (most recent call last):
File "pdfgrabber/main.py", line 271, in <module>
main()
File "pdfgrabber/main.py", line 253, in main
downloadbook()
File "pdfgrabber/main.py", line 174, in downloadbook
pdfpath = utils.downloadbook(service, token, bookid, books[bookid], progressfun)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pdfgrabber/utils.py", line 42, in downloadbook
pdf = service.downloadbook(token, bookid, data, progress)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pdfgrabber/services/prs.py", line 431, in downloadbook
pdf = downloadrplusepub(data["url"], data["pwd"], progress)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pdfgrabber/services/prs.py", line 391, in downloadrplusepub
pagelistitem = next(i for i in tocfile.find("xhtml:body", ns).findall("xhtml:nav", ns) if i.get("{http://www.idpf.org/2007/ops}type") == "page-list")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration |
You should contact me on telegram as this looks like an error specific to this book. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Thanks so much for this tool!
I encouraged an error while downloading coursebook from Pearson Reader+
Environment Info
ArchLinux
3.11.6
MuPDF
andchromium
installed from arch repod6e5631
commit latest at the time of writing issue (and at least one previous)Could you help me plz?
How should I debug it?
The text was updated successfully, but these errors were encountered: