View Single Post
Old 05-26-2018, 10:34 PM   #41
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 734
Karma: 18718471
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
I have used the plugin on over 100 books since your last amendment. It works very well and I find it very useful.

There is however one minor nuisance which I have been meaning to tell you about for a long time . Sometimes when I run the plugin it fails (about one in twenty times). When I check the Details I get something like that below.

Spoiler:
Status: failed

Python version: 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]

Running CustomCleanerPlus...

-- Copy to work dir...titlepage.xhtml
-- Copy to work dir...Rankin__Robert_-_Brentford_1_-_The_Antipope__Ver._3.0__rtf.htm
-- Copy to work dir...Section0001.xhtml
-- Copy to work dir...Section0002.xhtml
-- Copy to work dir...Section0003.xhtml
-- Copy to work dir...Section0004.xhtml
-- Copy to work dir...Section0005.xhtml
-- Copy to work dir...Section0006.xhtml
-- Copy to work dir...Section0007.xhtml
-- Copy to work dir...Section0008.xhtml
-- Copy to work dir...Section0009.xhtml
-- Copy to work dir...Section0010.xhtml
-- Copy to work dir...Section0011.xhtml
-- Copy to work dir...Section0012.xhtml
-- Copy to work dir...Section0013.xhtml
-- Copy to work dir...Section0014.xhtml
-- Copy to work dir...Section0015.xhtml
-- Copy to work dir...Section0016.xhtml
-- Copy to work dir...Section0017.xhtml
-- Copy to work dir...Section0018.xhtml
-- Copy to work dir...Section0019.xhtml
-- Copy to work dir...Section0020.xhtml
-- Copy to work dir...Section0021.xhtml
-- Copy to work dir...Section0022.xhtml
-- Copy to work dir...Section0023.xhtml
-- Copy to work dir...Section0024.xhtml
-- Copy to work dir...Section0025.xhtml
-- Copy to work dir...Section0026.xhtml
-- Write to work dir...C:\Users\JOHNRU~1\AppData\Local\Temp\tmp1sjv ybd0\stylesheet.css
-- Write to work dir...C:\Users\JOHNRU~1\AppData\Local\Temp\tmp1sjv ybd0\page_styles.css

-- Copy images to work dir...C:\Users\JOHNRU~1\AppData\Local\Temp\tmp1sjv ybd0\cover.jpeg

-- Processing automatic tasks...
-- Clean and reformat the html

>>> File type is: EPUB
>>> Doctype is: Epub

-- Processing file...titlepage.xhtml
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...

-- In removeUnusedBookmarks2()...
-- Reformat smaller images

-- Processing file...Rankin__Robert_-_Brentford_1_-_The_Antipope__Ver._3.0__rtf.htm
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...

-- In removeUnusedBookmarks2()...
-- Reformat smaller images

-- Processing file...Section0001.xhtml
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...

-- In removeUnusedBookmarks2()...
-- Reformat smaller images

-- Processing file...Section0002.xhtml
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...

-- In removeUnusedBookmarks2()...
-- Reformat smaller images

-- Processing file...Section0003.xhtml
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...

-- In removeUnusedBookmarks2()...
-- Reformat smaller images

-- Processing file...Section0004.xhtml
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...

-- In removeUnusedBookmarks2()...
-- Reformat smaller images

-- Processing file...Section0005.xhtml
-- Remove empty tags
-- Remove tabs and spaces
-- Remove or change redundant or non-compliant html code
-- Remove or change non-compliant attributes
-- Remove all ids
-- Remove all internal links
-- Remove all internet links
-- Remove all div tags

>>> Check xhtml file ids and hrefs...

>>> In repositionAnchorEndTags()...
Traceback (most recent call last):
File "C:\Prog1\Sigil\plugin_launchers\python\launcher.p y", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\John Rupik\AppData\Local\sigil-ebook\sigil\plugins\CustomCleanerPlus\plugin.py", line 136, in run
css_fnames = processAllTasks(bk, WDIR, t_fnames, s_fnames, s_ids)
File "C:\Users\John Rupik\AppData\Local\sigil-ebook\sigil\plugins\CustomCleanerPlus\cutils2.py", line 66, in processAllTasks
prettifyXHTMLFile(wdir, file)
File "C:\Users\John Rupik\AppData\Local\sigil-ebook\sigil\plugins\CustomCleanerPlus\cutils.py", line 1688, in prettifyXHTMLFile
os.rename(outfile, file)
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\Users\\JOHNRU~1\\AppData\\Local\\Temp\\tmp1sj vybd0\\styles.css' -> 'C:\\Users\\JOHNRU~1\\AppData\\Local\\Temp\\tmp1sj vybd0\\Section0005.xhtml'
Error: [WinError 183] Cannot create a file when that file already exists: 'C:\\Users\\JOHNRU~1\\AppData\\Local\\Temp\\tmp1sj vybd0\\styles.css' -> 'C:\\Users\\JOHNRU~1\\AppData\\Local\\Temp\\tmp1sj vybd0\\Section0005.xhtml'


If I run the plugin a second time it usually then works but sometimes I have to run it three times.

As I said it is only a minor nuisance, but if you nothing better to do, sometime, could have a look at it please.

Thanks
Thasaidon is offline   Reply With Quote