subset all embedded fonts > colect_font_stats error

Bug #1316533 reported by Ar't
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

polish book> subset all embedded fonts:

calibre, version 1.35.0 (win32, isfrozen: True)
Conversion Error: Failed: Polish Klatka pełna aniołów

Polish Klatka pełna aniołów
Failed to collect font stats from: Klatka_pelna_aniolow_split_000.html
Traceback (most recent call last):
  File "site-packages\calibre\ebooks\oeb\polish\stats.py", line 211, in collect
  File "site-packages\calibre\ebooks\oeb\polish\stats.py", line 257, in collect_font_stats
AttributeError: 'NoneType' object has no attribute 'propertyValue'

Python function terminated unexpectedly
  Failed to gather statistics from book, see log for details (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
  File "site-packages\calibre\ebooks\oeb\polish\main.py", line 229, in gui_polish
  File "site-packages\calibre\ebooks\oeb\polish\main.py", line 209, in polish
  File "site-packages\calibre\ebooks\oeb\polish\main.py", line 138, in polish_one
  File "site-packages\calibre\ebooks\oeb\polish\stats.py", line 187, in __init__
Exception: Failed to gather statistics from book, see log for details

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

Attach the EPUB/AZW3 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 lock icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: New → Incomplete
Revision history for this message
Ar't (artiip) wrote :

epub with problem

Revision history for this message
Kovid Goyal (kovid) wrote :

I cannot replicate tis. Running Polish Books on the attached epub with only subset embedded fonts selected results in no errors, see attached subset file.

Changed in calibre:
status: Incomplete → Invalid
Revision history for this message
Ar't (artiip) wrote :

My windows user name have character '

set temp
TEMP=C:\Users\A'bc\AppData\Local\Temp

if i change temp/tmp to name witchout ' , I don't get this error

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: Invalid → Fix Released
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.