View Single Post
Old 03-07-2022, 01:36 PM   #20
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,450
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I went back to the epub I was editing when I noticed the problem. Ran CSSRemoveUnusedSelectors and the error was still present:

Spoiler:
Code:
Status: failed

Python version:  3.9.9 (tags/v3.9.9:ccb0e6a, Nov 15 2021, 18:08:50) [MSC v.1929 64 bit (AMD64)] 

Running ConvertAbs2RelCSSValues...Please wait

 -- Write to work dir...C:\Users\David\AppData\Local\Temp\tmp4jdqw_ez\SBsignup.css
 -- Write to work dir...C:\Users\David\AppData\Local\Temp\tmp4jdqw_ez\idGeneratedStyles.css

 >>> ask yesno - convert to long form...False

 -- Processing automatic tasks...
 -- Convert absolute values to relative em values in the CSS
In convertAbs2RelCSSValues()...
 -- Convert absolute to relative values in the CSS
In convertAbs2RelCSSValues()...
 -- Convert absolute to relative values in the CSS
>>>IN INCHES TO EM CALCULATION....
Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\David\AppData\Local\sigil-ebook\sigil\plugins\ConvertAbs2RelCSSValues\plugin.py", line 102, in run
    processAllTasks(bk, WDIR, s_ids, s_fnames)
  File "C:\Users\David\AppData\Local\sigil-ebook\sigil\plugins\ConvertAbs2RelCSSValues\cutils.py", line 29, in processAllTasks
    convertAbs2RelCSSValues(wdir, file)
  File "C:\Users\David\AppData\Local\sigil-ebook\sigil\plugins\ConvertAbs2RelCSSValues\cutils.py", line 182, in convertAbs2RelCSSValues
    points = float(point)
ValueError: could not convert string to float: ' conta'
Error: could not convert string to float: ' conta'


I've attached a scrambled and simplified copy of the epub where I ran into this issue.
Attached Files
File Type: epub scrambled.epub (169.9 KB, 358 views)
DNSB is online now   Reply With Quote