Re: [Zim-wiki] 0.63, some pages do not show up in index.
My pleasure, but ... how to file a bug report, do you mean report a bug on launchpad? I'm not good at programming but I will try play with patching, and anything that I can help. Regards Jaap Karssenberg 于2015年6月16日 周二23:02写道: > Hi Jianhan, > > That looks like an ugly issue with the locale. Apparently the strxfrm > function does not work with your locale setup on windows. > > No easy work around I'm afraid other than patching the code and trying > what works. Also difficult for me to debug since I don't have a chinese > setup myself to play around with :S > > Guess only fix for now is to catch this error and wrap around with a > non-locale aware fallback. > > Could you file a bug report on this? > > Regards, > > Jaap > > > > > On Mon, Jun 15, 2015 at 8:23 AM, Jianhan Gao wrote: > >> Dear Japp, >> >> Thanks for the 0.63 release ! >> >> And I want to report an error about index, , just hope it may be useful :) >> ( I guess I should wait patiently because you already said in release >> note it is a work in progress. ) >> >> Enviroment: >> PC, win7 x64, cp936 (simplified Chinese), >> python 2.7.10, >> pygtk-all-in-one-2.24.2.win32-py2.7.msi, >> zim 0.63, running from source code "zim.py". >> >> Symptoms: >> 1. Some pages do not show up in index ( they do exist on disk ). >> 2. If I run "python zim.py --index -V ./Notes", I will got random error >> logs like: >> >> ... >> INFO: Indexed Book >> ERROR: Got an exception while indexing "": >> Traceback (most recent call last): >> File "d:\tTool\zim-0.63\zim\index.py", line 720, in _do_update >> self._update_pagelist(path) >> File "d:\tTool\zim-0.63\zim\index.py", line 1005, in _update_pagelist >> (page.basename, natural_sort_key(page.basename), path.id, >> page.hascontent, False)) >> File "d:\tTool\zim-0.63\zim\utils.py", line 135, in natural_sort_key >> bytestring = locale.strxfrm(string) >> MemoryError >> INFO: Indexed OCW >> ... >> >> ( Both symptoms disappear when using zim 0.62 ) >> >> Best regards! >> >> > ___ 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] 0.63, some pages do not show up in index.
Hi Jianhan, That looks like an ugly issue with the locale. Apparently the strxfrm function does not work with your locale setup on windows. No easy work around I'm afraid other than patching the code and trying what works. Also difficult for me to debug since I don't have a chinese setup myself to play around with :S Guess only fix for now is to catch this error and wrap around with a non-locale aware fallback. Could you file a bug report on this? Regards, Jaap On Mon, Jun 15, 2015 at 8:23 AM, Jianhan Gao wrote: > Dear Japp, > > Thanks for the 0.63 release ! > > And I want to report an error about index, , just hope it may be useful :) > ( I guess I should wait patiently because you already said in release note > it is a work in progress. ) > > Enviroment: > PC, win7 x64, cp936 (simplified Chinese), > python 2.7.10, > pygtk-all-in-one-2.24.2.win32-py2.7.msi, > zim 0.63, running from source code "zim.py". > > Symptoms: > 1. Some pages do not show up in index ( they do exist on disk ). > 2. If I run "python zim.py --index -V ./Notes", I will got random error > logs like: > > ... > INFO: Indexed Book > ERROR: Got an exception while indexing "": > Traceback (most recent call last): > File "d:\tTool\zim-0.63\zim\index.py", line 720, in _do_update > self._update_pagelist(path) > File "d:\tTool\zim-0.63\zim\index.py", line 1005, in _update_pagelist > (page.basename, natural_sort_key(page.basename), path.id, > page.hascontent, False)) > File "d:\tTool\zim-0.63\zim\utils.py", line 135, in natural_sort_key > bytestring = locale.strxfrm(string) > MemoryError > INFO: Indexed OCW > ... > > ( Both symptoms disappear when using zim 0.62 ) > > Best regards! > > ___ 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] 0.63, some pages do not show up in index.
Thanks for the tips. Delete .zim in Notes/ does not fix index ( win7 x64 ), While zim 0.63 in Ubuntu PPA works all right. Gordon Zano 于2015年6月16日 周二11:21写道: > It may be worth deleting your local index cache. > On linux: > Delete the ~/.cache/zim/ folder, and zim will re-create > it. > > On Mon, 15 Jun 2015 14:23:33 Jianhan Gao wrote: > > Dear Japp, > > > > Thanks for the 0.63 release ! > > > > And I want to report an error about index, , just hope it may be useful > :) > > ( I guess I should wait patiently because you already said in release > note > > it is a work in progress. ) > > > > Enviroment: > > PC, win7 x64, cp936 (simplified Chinese), > > python 2.7.10, > > pygtk-all-in-one-2.24.2.win32-py2.7.msi, > > zim 0.63, running from source code "zim.py". > > > > Symptoms: > > 1. Some pages do not show up in index ( they do exist on disk ). > > 2. If I run "python zim.py --index -V ./Notes", I will got random error > > logs like: > > > > ... > > INFO: Indexed Book > > ERROR: Got an exception while indexing "": > > Traceback (most recent call last): > > File "d:\tTool\zim-0.63\zim\index.py", line 720, in _do_update > > self._update_pagelist(path) > > File "d:\tTool\zim-0.63\zim\index.py", line 1005, in _update_pagelist > > (page.basename, natural_sort_key(page.basename), path.id, > > page.hascontent, False)) > > File "d:\tTool\zim-0.63\zim\utils.py", line 135, in natural_sort_key > > bytestring = locale.strxfrm(string) > > MemoryError > > INFO: Indexed OCW > > ... > > > > ( Both symptoms disappear when using zim 0.62 ) > > > > Best regards! > > > ___ > 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] 0.63, some pages do not show up in index.
The same should be achieved by deleting .zim in the folder, where normally all notes are stored. 2015-06-16 5:21 GMT+02:00 Gordon Zano : > It may be worth deleting your local index cache. > On linux: > Delete the ~/.cache/zim/ folder, and zim will re-create > it. > > On Mon, 15 Jun 2015 14:23:33 Jianhan Gao wrote: > > Dear Japp, > > > > Thanks for the 0.63 release ! > > > > And I want to report an error about index, , just hope it may be useful > :) > > ( I guess I should wait patiently because you already said in release > note > > it is a work in progress. ) > > > > Enviroment: > > PC, win7 x64, cp936 (simplified Chinese), > > python 2.7.10, > > pygtk-all-in-one-2.24.2.win32-py2.7.msi, > > zim 0.63, running from source code "zim.py". > > > > Symptoms: > > 1. Some pages do not show up in index ( they do exist on disk ). > > 2. If I run "python zim.py --index -V ./Notes", I will got random error > > logs like: > > > > ... > > INFO: Indexed Book > > ERROR: Got an exception while indexing "": > > Traceback (most recent call last): > > File "d:\tTool\zim-0.63\zim\index.py", line 720, in _do_update > > self._update_pagelist(path) > > File "d:\tTool\zim-0.63\zim\index.py", line 1005, in _update_pagelist > > (page.basename, natural_sort_key(page.basename), path.id, > > page.hascontent, False)) > > File "d:\tTool\zim-0.63\zim\utils.py", line 135, in natural_sort_key > > bytestring = locale.strxfrm(string) > > MemoryError > > INFO: Indexed OCW > > ... > > > > ( Both symptoms disappear when using zim 0.62 ) > > > > Best regards! > > > ___ > 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] 0.63, some pages do not show up in index.
It may be worth deleting your local index cache. On linux: Delete the ~/.cache/zim/ folder, and zim will re-create it. On Mon, 15 Jun 2015 14:23:33 Jianhan Gao wrote: > Dear Japp, > > Thanks for the 0.63 release ! > > And I want to report an error about index, , just hope it may be useful :) > ( I guess I should wait patiently because you already said in release note > it is a work in progress. ) > > Enviroment: > PC, win7 x64, cp936 (simplified Chinese), > python 2.7.10, > pygtk-all-in-one-2.24.2.win32-py2.7.msi, > zim 0.63, running from source code "zim.py". > > Symptoms: > 1. Some pages do not show up in index ( they do exist on disk ). > 2. If I run "python zim.py --index -V ./Notes", I will got random error > logs like: > > ... > INFO: Indexed Book > ERROR: Got an exception while indexing "": > Traceback (most recent call last): > File "d:\tTool\zim-0.63\zim\index.py", line 720, in _do_update > self._update_pagelist(path) > File "d:\tTool\zim-0.63\zim\index.py", line 1005, in _update_pagelist > (page.basename, natural_sort_key(page.basename), path.id, > page.hascontent, False)) > File "d:\tTool\zim-0.63\zim\utils.py", line 135, in natural_sort_key > bytestring = locale.strxfrm(string) > MemoryError > INFO: Indexed OCW > ... > > ( Both symptoms disappear when using zim 0.62 ) > > Best regards! ___ 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