Plucker code Python 2 issues

Bug #1929465 reported by Silvara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Plucker support code is not compatible with Python 3.

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 197, in main
  File "<string>", line 1, in <module>
  File "calibre\srv\render_book.py", line 824, in viewer_main
  File "calibre\srv\render_book.py", line 815, in render_for_viewer
  File "calibre\srv\render_book.py", line 792, 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 34, in convert
  File "calibre\ebooks\pdb\plucker\reader.py", line 324, in __init__
  File "calibre\ebooks\pdb\plucker\reader.py", line 150, in __init__
TypeError: a bytes-like object is required, not 'int'

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
Revision history for this message
Silvara (mistresssilvara) wrote :

There are others.

  File "calibre\ebooks\pdb\plucker\reader.py", line 374, in extract_content
AttributeError: 'str' object has no attribute 'decode'

Changed in calibre:
status: Fix Released → Confirmed
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1929465

Attach a PDB file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: Confirmed → Incomplete
Revision history for this message
Silvara (mistresssilvara) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote :

Converts fine for me with calibre 5.20 (released in an hour or so)

 status fixreleased

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

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.