E-book viewer: can't open a .pdb file

Bug #1901957 reported by etc205
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

E-book viewer doesn't open a .pdb file (attached) emitting en error, the details are as follows: (username changed to ***):

---
calibre, version 5.3.0
ERROR: Loading book failed: Failed to open the book at C:\Users\***\Downloads\alice30p.pdb. Click "Show details" for more info.

Failed to convert book: C:\Users\***\Downloads\alice30p.pdb with error:
InputFormatPlugin: PDB Input running
on C:\Users\***\Downloads\alice30p.pdb
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, in _run_code
  File "site.py", line 82, in <module>
  File "site.py", line 77, in main
  File "site.py", line 49, in run_entry_point
  File "calibre\utils\ipc\worker.py", line 195, in main
  File "<string>", line 1, in <module>
  File "calibre\srv\render_book.py", line 871, in viewer_main
  File "calibre\srv\render_book.py", line 862, in render_for_viewer
  File "calibre\srv\render_book.py", line 839, in render
  File "calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
  File "calibre\customize\conversion.py", line 245, in __call__
  File "calibre\ebooks\conversion\plugins\pdb_input.py", line 35, in convert
  File "calibre\ebooks\pdb\ereader\reader.py", line 31, in extract_content
  File "calibre\ebooks\pdb\ereader\reader202.py", line 124, in extract_content
  File "calibre\ebooks\pdb\ereader\reader202.py", line 135, in create_opf
  File "ntpath.py", line 117, in join
  File "genericpath.py", line 155, in _check_arg_types
TypeError: Can't mix strings and bytes in path components
---

The book is "Alice's Adventures in Wonderland" by Lewis Carroll, taken from the Project Gutenberg site (https://www.gutenberg.org/files/11/old/alice30p.pdb).

Calibre version: 5.3,
OS: Windows 10 Home 1803.

Revision history for this message
etc205 (etc205) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments