Only 0B files in cache after install on Mac OS X with Gentoo Prefix

I installed werkzeug-0.4 and pygments via Gentoo Prefix http://www.gentoo.org/proj/en/gentoo-alt/prefix/ on Mac OS X 10.5.6 and then run hatta.py from the hatta-1.2.3 release.

hatta start's fine in the browser, I can preview any changes to the "Home" page but not save: "A server error occurred. Please contact the administrator".

/Hatta-Wiki-1.2.3 $ python hatta.py
localhost - - [13/Feb/2009 18:19:06] "GET / HTTP/1.1" 303 227
localhost - - [13/Feb/2009 18:19:06] "GET /edit/Home HTTP/1.1" 404 3314
Traceback (most recent call last):
  File "/Users/sero/Gentoo/usr/lib/python2.5/wsgiref/handlers.py", line 92, in run
    self.result = application(self.environ, self.start_response)
  File "/Users/sero/Gentoo//usr/lib/python2.5/site-packages/werkzeug/utils.py", line 1694, in <lambda>
    return _patch_wrapper(f, lambda *a: f(*a)(*a[-2:]))
  File "hatta.py", line 2078, in application
    return endpoint(request, **values)
  File "hatta.py", line 1511, in save
    self.index_text(title, text)
  File "hatta.py", line 1451, in index_text
    old_links = self.index.page_links(title)
  File "hatta.py", line 1013, in page_links
    timestamp = os.stat(self.links_file).st_mtime
OSError: [Errno 2] No such file or directory: '/Users/sero/Hatta-Wiki-1.2.3/cache/index.links'

The problem is the file structure inside hatta's cache dir. It looks like this on my machine: