Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2015, 11:06 AM   #1
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 816
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Flight Crew: Premature end of document

Sigil 0.9.1 is working great, except for one minor problem, which I'm sure is my fault. When I use Calibre's "Open With" plugin to open an epub with Sigil, and then run Flight Crew, I get the following error: Error Parsing Result XML: Premature end of document. (I don't receive this error if I open Sigil from the desktop.) Looks like a problem with the path, but I'm not sure how to fix it. Thanks for any help. Traceback below:

Spoiler:
Traceback (most recent call last):

File "D:\Sigil\plugin_launchers\python\launcher.py" , line 301, in <module>


sys.exit(main())
File "D:\Sigil\plugin_launchers\python\launcher.py" , line 262, in main
bc = ValidationContainer(rk)
File "D:\Sigil\plugin_launchers\python\validationcontai ner.py", line 42, in __init__
super(ValidationContainer, self).__init__(wrapper, debug)
File "D:\Sigil\plugin_launchers\python\outputcontainer. py", line 45, in __init__
self.hspell=HunspellChecker(wrapper.get_hunspell_p ath())
File "D:\Sigil\plugin_launchers\python\pluginhunspell.p y", line 43, in __init__
sys_hunspell_location = find_library('hunspell')
File "D:\Python27\lib\ctypes\util.py", line 53, in find_library
for directory in os.environ['PATH'].split(os.pathsep):
File "D:\Python27\lib\os.py", line 425, in __getitem__
return self.data[key.upper()]
KeyError: 'PATH'
icallaci is offline   Reply With Quote
Old 12-01-2015, 12:07 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,494
Karma: 5703586
Join Date: Nov 2009
Device: many
A few things ...

- Running Sigil, just to run flightcrew does not make a lot of sense. It would be much easier for someone to create a flightcrew plugin for calibre directly as flightcrew is now a simple command line tool and calibre has great plugin developers and support who could easily create a flightcrew plugin for calibre.

- the Calibre "Open With" sequence seems to be unsetting the PATH environment variable which causes the ctypes find_library module used in the plugin launcher to fail deep inside of the official python 2.7 os module. The os module seems to need/want PATH to at least exist.

KevinH
KevinH is offline   Reply With Quote
Advert
Old 12-01-2015, 12:28 PM   #3
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 816
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Quote:
Originally Posted by KevinH View Post
A few things ...

- Running Sigil, just to run flightcrew does not make a lot of sense. It would be much easier for someone to create a flightcrew plugin for calibre directly as flightcrew is now a simple command line tool and calibre has great plugin developers and support who could easily create a flightcrew plugin for calibre.

KevinH
Thanks, I use Sigil for more than simply running Flight Crew, but it's usually one of the last steps in my workflow, so I guess I'll have to be satisfied with Calibre's Edit Book/Check Book for now. (I usually run both as they seem to catch different things.) Anyway, thanks.
icallaci is offline   Reply With Quote
Old 12-01-2015, 12:47 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Use calibre's builtin Open With feature, not the the Open With plugin.

The plugin special-cases Sigil in order to work around bugs that no longer seem to exist. The problem is that unsetting the PATH also messes things up...
eschwartz is offline   Reply With Quote
Old 12-01-2015, 12:54 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,374
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
The problem is the way the Open With plugin launches Sigil. The fix is to modify the calibre OpenWith plugin or to use calibre's built-in Open With feature that doesn't suffer from the same issue.
DiapDealer is online now   Reply With Quote
Advert
Old 12-01-2015, 03:18 PM   #6
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 816
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Aha, I didn't know about Calibre's built-in Open With feature. I'll try that. Thanks.

Edit: It works! Thanks so much. I'm back in business.

Last edited by icallaci; 12-01-2015 at 03:35 PM.
icallaci is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flight Crew error message Peter21 Sigil 3 02-07-2014 11:43 AM
Flight Crew ValidateEpub method davidnwelton Sigil 11 11-04-2013 10:28 AM
Help please with Flight Crew error message ??? wannabee ePub 9 08-10-2011 09:27 AM
Flight Crew report crutledge Sigil 4 01-13-2011 07:06 PM
Flight Crew Hitch Sigil 2 10-29-2010 05:28 AM


All times are GMT -4. The time now is 03:52 PM.


MobileRead.com is a privately owned, operated and funded community.