← Back to team overview

zim-wiki team mailing list archive

"c:\Program Files\zim-0.58\zim.pyw" fails for 0.58

 

zim-0.56 was running fine using: "c:\Program Files\zim-0.56\zim.pyw"
I didn't upgrade to zim-0.57 because of the reported Windows issues.
Trying to run zim-0.58 fails as follows:

FAILS from CLI and shortcut:
	"c:\Program Files\zim-0.58\zim.pyw"  # <<<- WORKS for 0.56
	C:\Python26\pythonw.exe "c:\Program Files\zim-0.58\zim.pyw"
Works from CLI and shortcut:
	"c:\Program Files\zim-0.58\zim.pyw" -D   # Huh?
	C:\Python26\pythonw.exe "c:\Program Files\zim-0.58\zim.pyw" -D
		# But no debug output on console, not surprisingly
	C:\Python26\python.exe "c:\Program Files\zim-0.58\zim.pyw"
		# Shortcut opens "DOS box" that can then be closed, CLI doesn't
		# Either way get "INFO: Locale set to: en_US.cp1252"
	C:\Python26\python.exe "c:\Program Files\zim-0.58\zim.pyw" -D
		# Shortcut opens "DOS box" that can then be closed, CLI doesn't
		# Either way get "INFO: Locale set to: en_US.cp1252" & debug info

So why does the "...zim.pyw" command that previously worked fail, but the same command with "-D" works? Ditto the "prefixed" 'C:\Python26\pythonw.exe "c:\Program Files\zim-0.58\zim.pyw"' commands?

My work-around for now is to set my shortcut as follows and just close the extra console:
	Target:   C:\Python26\python.exe "c:\Program Files\zim-0.58\zim.pyw"
	Start in: "C:\Program Files\zim-0.58\"

My upgrade process was:

Notes:
* NOT using Cygwin, the Unix tools are the native .exe UNXUtils [1]...
* Using tarball to make Spell checking work (see previous mailing list posts)

1) cd "C:\Program Files\"
2) wget http://zim-wiki.org/downloads/zim-0.58.tar.gz
3) gunzip zim-0.58.tar.gz
4) tar xf zim-0.58.tar
5) copy zim-0.58\zim.py zim-0.58\zim.pyw   # Note 0.58 --> 0.58
6) meld zim-0.56\zim.pyw zim-0.58\zim.pyw  # Note 0.56 --> 0.58
	# Added 1 line "import enchant" for spelling [2]
7) Update Shortcut 0.56 --> 0.58 = fails, see above


---------------------------------------------------
Footnotes:

[1] AWESOME UNXUtils: http://en.wikipedia.org/wiki/UnxUtils
[2] C:\Program Files> diff -u zim-0.58\zim.py zim-0.58\zim.pyw
	--- zim-0.58\zim.py  Wed Aug 15 14:19:55 2012
	+++ zim-0.58\zim.pyw Mon Dec 17 16:42:26 2012
	@@ -3,6 +3,7 @@
	 import sys
	 import logging
	 import os
	+import enchant

	 # Check if we run the correct python version
	 try:


Thanks,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|      http://bashcookbook.com/
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.


Follow ups