Re: [Zim-wiki] can't get windows version to start
Trying to understand what happens exactly, but seems to me this is between the gettext and locale libraries. Not something I can fix directly from zim. Patched the offending code to at least catch the error and fallback to no translation. Btw. if you want to load the Norwegian Bokmal translation and avoid the error, setting the environment parameter "LANGUAGE" to "nb" should do the trick. Regards, Jaap On Wed, Apr 26, 2017 at 12:57 PM Svenn Are Bjerkem < svenn.bjer...@googlemail.com> wrote: > On 26 April 2017 at 11:30, Marco Cevoli wrote: > > Just a guess: The 15th character mentioned by the error is exactly the > > position of the "a ring" in the language name. So the string to find > > should probably include "Norwegian (Bokmål)_Norway", not only the > > a-ring. > > I can verify. > Changed to the *other* norwegian language locale which is "norwegian > (nynorsk)_Norway" which does not have the aring in its language name, > and then zim opens as expected. > > I applaude you. > > -- > Svenn > ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
On 26 April 2017 at 11:30, Marco Cevoli wrote: > Just a guess: The 15th character mentioned by the error is exactly the > position of the "a ring" in the language name. So the string to find > should probably include "Norwegian (Bokmål)_Norway", not only the > a-ring. I can verify. Changed to the *other* norwegian language locale which is "norwegian (nynorsk)_Norway" which does not have the aring in its language name, and then zim opens as expected. I applaude you. -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
Just a guess: The 15th character mentioned by the error is exactly the position of the "a ring" in the language name. So the string to find should probably include "Norwegian (Bokmål)_Norway", not only the a-ring. :) Marco On Wed, Apr 26, 2017 at 11:12 AM, Svenn Are Bjerkem wrote: > On 26 April 2017 at 10:13, Jaap Karssenberg > wrote: >> Checking a test case I realized that the path to the translation itself does >> not have unicode: it is just "locale/.../nb.mo" for Norwegian. >> >> So unicode character must be in the installation path of zim - can you share >> the installation folder ? > > C:\Program Files (x86)\Zim Desktop Wiki> > > I do not use 'å' (aring) in my paths to zim or zim workbooks. This > must be something which is picked up from somewhere else on my > computer. It is a corporate installation of Windows > > There may be some norwegian characters inside the zim workbook itself, > but the default zim workbook is an all-english one. > > Where does zim store its configuration on windows? I should probably > look inside those files in case there is old cruft. > > Thanks for your efforts. > > -- > Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
On 26 April 2017 at 10:13, Jaap Karssenberg wrote: > Checking a test case I realized that the path to the translation itself does > not have unicode: it is just "locale/.../nb.mo" for Norwegian. > > So unicode character must be in the installation path of zim - can you share > the installation folder ? C:\Program Files (x86)\Zim Desktop Wiki> I do not use 'å' (aring) in my paths to zim or zim workbooks. This must be something which is picked up from somewhere else on my computer. It is a corporate installation of Windows There may be some norwegian characters inside the zim workbook itself, but the default zim workbook is an all-english one. Where does zim store its configuration on windows? I should probably look inside those files in case there is old cruft. Thanks for your efforts. -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
Checking a test case I realized that the path to the translation itself does not have unicode: it is just "locale/.../nb.mo" for Norwegian. So unicode character must be in the installation path of zim - can you share the installation folder ? Regards, Jaap On Wed, Apr 26, 2017 at 9:54 AM Jaap Karssenberg wrote: > Must indeed be related to unicode symbol in the path - either the install > path of zim itself, or the path towards the language files. If zim does > start with english locale at the same location, it is the later. > > If this is the case we might be handing off the path in unicode while > gettext expects encoded path - will look into that and see if I can test it > here. > > -- Jaap > > > On Wed, Apr 26, 2017 at 9:35 AM Marco Cevoli > wrote: > >> If I'm not mistaken, apparently, the å (a with the little symbol) of >> the language name is not correctly interpreted / decoded. >> I can't remember how it's done, but try launching Zim with English as >> a language and see if it works. >> >> Regards >> >> Marco Cevoli >> >> On Wed, Apr 26, 2017 at 7:50 AM, Svenn Are Bjerkem >> wrote: >> > On 25 April 2017 at 22:50, Brendan Kidwell wrote: >> >> "C:\Program Files (x86)\Zim Desktop Wiki\zim.exe" --standalone >> >> --debug >> > >> > INFO: Locale set to: Norwegian (Bokmål)_Norway.1252 >> > Traceback (most recent call last): >> > File "zim.py", line 37, in >> > File "zim\__init__.pyo", line 173, in >> > File "gettext.pyo", line 496, in install >> > File "gettext.pyo", line 468, in translation >> > File "gettext.pyo", line 451, in find >> > File "ntpath.pyo", line 85, in join >> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position >> > 15: ordinal not in range(128) >> > >> > >> > >> > -- >> > Svenn >> > >> > ___ >> > Mailing list: https://launchpad.net/~zim-wiki >> > Post to : zim-wiki@lists.launchpad.net >> > Unsubscribe : https://launchpad.net/~zim-wiki >> > More help : https://help.launchpad.net/ListHelp >> >> ___ >> Mailing list: https://launchpad.net/~zim-wiki >> Post to : zim-wiki@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~zim-wiki >> More help : https://help.launchpad.net/ListHelp >> > ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
Must indeed be related to unicode symbol in the path - either the install path of zim itself, or the path towards the language files. If zim does start with english locale at the same location, it is the later. If this is the case we might be handing off the path in unicode while gettext expects encoded path - will look into that and see if I can test it here. -- Jaap On Wed, Apr 26, 2017 at 9:35 AM Marco Cevoli wrote: > If I'm not mistaken, apparently, the å (a with the little symbol) of > the language name is not correctly interpreted / decoded. > I can't remember how it's done, but try launching Zim with English as > a language and see if it works. > > Regards > > Marco Cevoli > > On Wed, Apr 26, 2017 at 7:50 AM, Svenn Are Bjerkem > wrote: > > On 25 April 2017 at 22:50, Brendan Kidwell wrote: > >> "C:\Program Files (x86)\Zim Desktop Wiki\zim.exe" --standalone > >> --debug > > > > INFO: Locale set to: Norwegian (Bokmål)_Norway.1252 > > Traceback (most recent call last): > > File "zim.py", line 37, in > > File "zim\__init__.pyo", line 173, in > > File "gettext.pyo", line 496, in install > > File "gettext.pyo", line 468, in translation > > File "gettext.pyo", line 451, in find > > File "ntpath.pyo", line 85, in join > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position > > 15: ordinal not in range(128) > > > > > > > > -- > > Svenn > > > > ___ > > Mailing list: https://launchpad.net/~zim-wiki > > Post to : zim-wiki@lists.launchpad.net > > Unsubscribe : https://launchpad.net/~zim-wiki > > More help : https://help.launchpad.net/ListHelp > > ___ > Mailing list: https://launchpad.net/~zim-wiki > Post to : zim-wiki@lists.launchpad.net > Unsubscribe : https://launchpad.net/~zim-wiki > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
If I'm not mistaken, apparently, the å (a with the little symbol) of the language name is not correctly interpreted / decoded. I can't remember how it's done, but try launching Zim with English as a language and see if it works. Regards Marco Cevoli On Wed, Apr 26, 2017 at 7:50 AM, Svenn Are Bjerkem wrote: > On 25 April 2017 at 22:50, Brendan Kidwell wrote: >> "C:\Program Files (x86)\Zim Desktop Wiki\zim.exe" --standalone >> --debug > > INFO: Locale set to: Norwegian (Bokmål)_Norway.1252 > Traceback (most recent call last): > File "zim.py", line 37, in > File "zim\__init__.pyo", line 173, in > File "gettext.pyo", line 496, in install > File "gettext.pyo", line 468, in translation > File "gettext.pyo", line 451, in find > File "ntpath.pyo", line 85, in join > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position > 15: ordinal not in range(128) > > > > -- > Svenn > > ___ > Mailing list: https://launchpad.net/~zim-wiki > Post to : zim-wiki@lists.launchpad.net > Unsubscribe : https://launchpad.net/~zim-wiki > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
On 25 April 2017 at 22:50, Brendan Kidwell wrote: > "C:\Program Files (x86)\Zim Desktop Wiki\zim.exe" --standalone > --debug INFO: Locale set to: Norwegian (Bokmål)_Norway.1252 Traceback (most recent call last): File "zim.py", line 37, in File "zim\__init__.pyo", line 173, in File "gettext.pyo", line 496, in install File "gettext.pyo", line 468, in translation File "gettext.pyo", line 451, in find File "ntpath.pyo", line 85, in join UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 15: ordinal not in range(128) -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] can't get windows version to start
Look in the folder "%TEMP%" for a file "zim.log" and see if it says anything interesting. Next, try running this: "C:\Program Files (x86)\Zim Desktop Wiki\zim.exe" --standalone --debug (Fix the path to zim.exe if it is not correct.) Whether that opens a window or not, again go look at "%TEMP%\zim.log" and there should be more information in there. On Tue, Apr 25, 2017, at 15:47, Svenn Are Bjerkem wrote: > Hi, > I have downloaded and installed in turn both the desktop version and > the portable version of zim, but all I get is the splash screen and > then nothing. > > http://www.glump.net/software/zim-windows the 0.65 version > > I tried some command line options but they are ignored. any idea what > blocks the sw from starting? > > win8.1 64 and win10 64 > > or is there a better way to get a working zim on windows-64? > -- > Svenn > > ___ > Mailing list: https://launchpad.net/~zim-wiki > Post to : zim-wiki@lists.launchpad.net > Unsubscribe : https://launchpad.net/~zim-wiki > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
[Zim-wiki] can't get windows version to start
Hi, I have downloaded and installed in turn both the desktop version and the portable version of zim, but all I get is the splash screen and then nothing. http://www.glump.net/software/zim-windows the 0.65 version I tried some command line options but they are ignored. any idea what blocks the sw from starting? win8.1 64 and win10 64 or is there a better way to get a working zim on windows-64? -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp