I ran from the zim install (after python setup.py install).
I tried setting the XDG_DATA_DIRS environment variable and re-running,
but I'm still getting the same error.  (With the gtk-osx build from
source, the zim.png and other files are located at

 ls gtk/inst/share/zim
applications            globe_banner_small.png  pixmaps
globe.svg               manual                  preferences.conf        zim.png
globe_banner.svg        menubar.xml             style.conf              zim.svg

There are wiki pages at gtk-osx talking about how to package your
program for Mac OS X, and I can give that a try.


On Sat, Jul 18, 2009 at 4:08 AM, Jaap
Karssenberg<jaap.karssenb...@gmail.com> wrote:
> ... forgot to CC the mailing list
> Jeffrey Liu wrote:
>> However, I ran into two things when running pyzim.
>> 1.  The version check fails even though I'm running python 2.5.2.
> Oops, typo on my side - code 2.6 in that version check instead of 2.5 as
> intended.
>> 2.  After removing the version check, pyzim would attempt to run, but
>> I see the following error:
>> Traceback (most recent call last):
>>  File "/Users/jliu/gtk/inst/bin/zim-test", line 8, in <module>
>>    zim.main(sys.argv)
>>  File "/Users/jliu/gtk/inst/lib/python2.5/site-packages/zim/__init__.py",
>> line 192, in main
>>    handler = zim.gui.GtkInterface(*args, **optsdict)
>>  File
>> "/Users/jliu/gtk/inst/lib/python2.5/site-packages/zim/gui/__init__.py",
>> line 189, in __init__
>>    icon = data_file('zim.png').path
>> AttributeError: 'NoneType' object has no attribute 'path'
> This means it can not find the data files.  Will add a check for that.
> Are you running from the source directory or did you install already?
> In this later case you need to check where the data files were installed
> (e.g. /usr/local/share/zim) and set the XDG_DATA_DIRS environment
> variable to point to that location.
>> Sorry, I wish I knew more python to help debug these two issues.
> No problem. I'm really interested to hear your results trying to run on OS
> X. Ideally would like to have some procedure how to compile a binary package
> for OS X.
> Cheers!
> Jaap

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

Reply via email to