View Single Post
Old 05-03-2017, 04:12 AM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,738
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Apparently my code doesn't work with your Windows 7 version and the external interpreter. Enabling the Use Bundled Python option might fix this problem, because the Python version bundled with Sigil is newer than your external interpreter.

If enabling the Use Bundled Python option doesn't fix the problem, you'll have to change the plugin source code:
  1. In Sigil, select Edit > Preferences > Open Preferences Location.
  2. Double-click the plugins folder and then double-click the PrincePDF folder.
  3. Open plugin.py with a text editor (e.g. NotePad oder Notepad++) and change the following line:

    from:

    Code:
        prince_path = os.path.join(os.getenv('programfiles(x86)'), 'Prince', 'engine', 'bin', 'prince.exe')
    to:

    Code:
        prince_path = os.path.join('C:\\Program Files', 'Prince', 'engine', 'bin', 'prince.exe')
    (Make sure to only change the text marked in Magenta.)

This should take care of the problem, if it doesn't you could always use Jellby's much more robust and sophisticated Calibre plugin.
Doitsu is offline   Reply With Quote