[Edit book]: Crash exporting image

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

Bug Description

Whenever I try to export an image (jpgs) through Right-click on Files Browser > "Export whatever.jpg" I get something like this:

calibre, version 1.29.0
ERROR: Unhandled exception: <b>UnicodeDecodeError</b>:'utf8' codec can't decode byte 0xed in position 12: invalid continuation byte

calibre 1.29* [64bit] isfrozen: True is64bit: True
Windows-Vista-6.0.6002-SP2 Windows ('64bit', 'WindowsPE')
('Windows', 'Vista', '6.0.6002')
Python 2.7.5
Windows: ('Vista', '6.0.6002', 'SP2', 'Multiprocessor Free')
Traceback (most recent call last):
  File "M:\DVD Personal 55\Calibre\SourceCode\src\calibre\gui2\tweak_book\file_list.py", line 648, in export
  File "M:\DVD Personal 55\Calibre\SourceCode\src\calibre\gui2\__init__.py", line 757, in choose_save_file
  File "M:\DVD Personal 55\Calibre\SourceCode\src\calibre\gui2\__init__.py", line 638, in __init__
  File "ntpath.py", line 108, in join
UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 12: invalid continuation byte

Editor trying to read a jpg as an unicode txt?

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 Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
arspr (arspr) wrote :

Hi Kovid, either I was really stupid and didn't test properly or this error has resurfaced:

calibre, version 1.37.0
ERROR: Unhandled exception: <b>UnicodeDecodeError</b>:'utf8' codec can't decode byte 0xed in position 12: invalid continuation byte

calibre 1.37* [64bit] isfrozen: True is64bit: True
Windows-Vista-6.0.6002-SP2 Windows ('64bit', 'WindowsPE')
('Windows', 'Vista', '6.0.6002')
Python 2.7.5
Windows: ('Vista', '6.0.6002', 'SP2', 'Multiprocessor Free')
Traceback (most recent call last):
  File "M:\DVD Personal 55\Calibre\SourceCode\src\calibre\gui2\tweak_book\file_list.py", line 616, in export
  File "M:\DVD Personal 55\Calibre\SourceCode\src\calibre\gui2\__init__.py", line 760, in choose_save_file
  File "M:\DVD Personal 55\Calibre\SourceCode\src\calibre\gui2\__init__.py", line 635, in __init__
  File "ntpath.py", line 301, in expanduser
UnicodeDecodeError: 'utf8' codec can't decode byte 0xed in position 12: invalid continuation byte

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1298071

Sigh. Python's library functions on windows are all totally broken. I
have committed a fix.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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