|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 820
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: 9,072
Karma: 6361556
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: 820
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,892
Karma: 207182180
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: 820
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 04:35 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flight Crew error message | Peter21 | Sigil | 3 | 02-07-2014 12:43 PM |
| Flight Crew ValidateEpub method | davidnwelton | Sigil | 11 | 11-04-2013 11:28 AM |
| Help please with Flight Crew error message ??? | wannabee | ePub | 9 | 08-10-2011 10:27 AM |
| Flight Crew report | crutledge | Sigil | 4 | 01-13-2011 08:06 PM |
| Flight Crew | Hitch | Sigil | 2 | 10-29-2010 06:28 AM |