Zim

Comment 8 for bug 572805

Revision history for this message
Alex Tu (alextu) wrote :

I am a chinese windows XP user.
I could see chinese index and search chinese character on "pyzim revision 239" you provided.
It seems fixed this issue.

But I need install pyCairo before excute "pyzim revision 239" otherwise it shows

------------------------------------
D:\zim-0.46-chinese>zim.py
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
Traceback (most recent call last):
  File "D:\zim-0.46-chinese\zim.py", line 45, in <module>
    zim.main(argv)
  File "D:\zim-0.46-chinese\zim\__init__.py", line 290, in main
    import zim.gui
  File "D:\zim-0.46-chinese\zim\gui\__init__.py", line 30, in <module>
    import gtk
  File "C:\Python26\lib\site-packages\gtk-2.0\gtk\__init__.py", line 40, in <mod
ule>
    from gtk import _gtk
ImportError: No module named cairo
------------------------------------

so I installed pyCairo 1.8 from http://alex.matan.ca/install-cairo-wxpyton-pycairo-python-windows then pyzim works.

But I still could not execute test.py, it response error of bad filename like below.
------------------------------------
D:\zim-0.46-chinese>test.py
Traceback (most recent call last):
  File "D:\zim-0.46-chinese\test.py", line 326, in <module>
    main()
  File "D:\zim-0.46-chinese\test.py", line 155, in main
    tests.set_environ()
  File "D:\zim-0.46-chinese\tests\__init__.py", line 43, in set_environ
    shutil.rmtree(tmpdir)
  File "C:\Python26\lib\shutil.py", line 216, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python26\lib\shutil.py", line 216, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python26\lib\shutil.py", line 216, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python26\lib\shutil.py", line 221, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Python26\lib\shutil.py", line 219, in rmtree
    os.remove(fullname)
WindowsError: [Error 123] 檔案名稱、目錄名稱或磁碟區標籤語法錯誤。: './tests/tmp
/export_ExportedFiles\\utf8\\??????'
------------------------------------

The file name under .\tests\tmp\export_ExportedFiles\utf8\ is "טכניון".
It looks like encoded by Hebrew.
Here attached the snapshot of folder ".\tests\tmp\export_ExportedFiles\utf8\ טכניון" for reference.
http://picasaweb.google.com.tw/lh/photo/EtC4etmixRgBDZlzHYzs8A?feat=directlink

Zim is really a good note application.
I am very happy about chinese index and chinese search supported in windows XP.
Thanks very much! :-)