Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-16-2016, 04:23 PM   #1
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil Windows Portable Beta

This may, or may not, become a part of the official Sigil distribution at some point (depending on interest/response).

I had no intentions of creating a Portable build, but I became intrigued by the challenge after inspecting the PortableApps version of Sigil and discovering that it wasn't actually completely portable! Oh, the main program is portable enough, but the plugin framework is not.

The bundled python interpreter in the PortableApps version can't use its own included python library. It looks to the location of the Official Sigil installation's python for its modules. If that's not installed, it looks for a system installed python. If it can't find that ... the plugin interpreter crashes. So in essence, if Sigil (a recent version) or Python isn't already installed on a machine, the PortableApps Sigil ain't running any plugins.

So anyway, here's my attempt at a fully-portable, self-contained version of Sigil for Windows. All it is, is a completely stock 32-bit version of Sigil v0.9.4 launched with a wrapper (source attached to post--many thanks to Kovid/calibre for inspiration) that:

A) sets the environment variable that relocates where Sigil stores its settings
B) modifies the pyvenv.cfg file (in the Sigil\python3 folder) that tells the bundled python interpreter where to find it's modules.
C) Finds "itself" and runs! (hopefully)

I've created an "installer" because I figured it would be easier to upgrade that way: just "install" the new version over top of the old.

It looks like this on disk:
Code:
Sigil-Portable\
+++Sigil\
+++SigilData\ (created after first run)
+++Sigil-Portable.exe
Double-click Sigil-Portable.exe to run.

Download link (Google Drive):
Sigil-0.9.4-Windows-Portable-Setup
(Vista minimum)

P.S. This thing's never going to be a multi-simultaneous-user application, so don't slap it on a network drive and try to use it like that. Put it on your hard-drive/thumb-drive and use it that way.
Attached Files
File Type: txt Sigil-Portable-CHECKSUM.sha256.txt (105 Bytes, 133 views)
File Type: zip sigil-portable-launcher-src.zip (1.8 KB, 176 views)
DiapDealer is offline   Reply With Quote
Old 03-16-2016, 04:32 PM   #2
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
ACK! I thought I'd taken non-ascii named folders into account, but it appears I've failed. My apologies. Please install it to a path that contains ascii-only characters until I discover where I went wrong.
DiapDealer is offline   Reply With Quote
Advert
Old 03-16-2016, 08:32 PM   #3
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Looks like the PortableApps people didn't realize that the pyvenv.cfg file existed and needed to be updated.

It should be an easy fix -- I've posted in their support forum that they need to add another FileWrite element to make sure it gets updated as needed.

Last edited by eschwartz; 03-16-2016 at 08:39 PM.
eschwartz is offline   Reply With Quote
Old 03-16-2016, 08:47 PM   #4
GordCaswell
Junior Member
GordCaswell began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2016
Device: Nexus 7 (2013)
Ackk!!

I am one of the developers at PortableApps.com.

Thanks, DiapDealer, for noticing the problem.

As indicated above, we weren't aware of a fix for this particular issue. However, as it's now been pointed out, we'll ensure it gets fixed ASAP.
GordCaswell is offline   Reply With Quote
Old 03-16-2016, 09:05 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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Pretty easy to overlook in the grand scheme of things.

Might want to let them know that they'll need to duplicate the msvc(p|r) runtime files (both the 100 and the 120) in the Sigil\python3 directory, as well. Profiling with Dependency Walker while running the test plugin reveals that Python ctypes access to the hunspell.dll looks to the Windows\System folder for the runtimes if they're not adjacent to the Python interpreter/dll.

If they get it going, I may just leave them to it. As to the file-paths with non-ansi characters ... that may be a non-starter. The python interpreter can't seem to cope with a file-path that has non-ansi characters in the "home" entry of the pyvenv.cfg file (at least on Windows). Can't win 'em all I guess.

Last edited by DiapDealer; 03-16-2016 at 09:11 PM.
DiapDealer is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin support in Sigil Portable Pablo Sigil 12 09-14-2015 10:47 AM
Sigil 0.7 Beta (0.6.902) Available user_none Sigil 29 02-17-2013 12:45 PM
Where to download beta of Sigil 6? rtmyers Sigil 6 09-03-2012 06:36 AM
Portable Linux version of Sigil readx Sigil 9 09-03-2010 02:59 AM
Portable Apps Suite V1.0 Beta available MrSaint Lounge 0 02-02-2006 05:34 AM


All times are GMT -4. The time now is 07:38 PM.


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