![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 816
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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... |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |