#335 closed defect (fixed)

OSError when trying to access http://localhost:8123/provisioning/

Reported by: dreid Owned by: nobody
Priority: major Milestone: 0.9.0 (Allmydata 3.0 final)
Component: unknown Version: 0.8.0
Keywords: macintosh Cc:
Launchpad Bug:

Description

It seems nevow/loaders.py isn't prepared for you template to be inside a zipfile. It tries to call os.getmtime on the path below.

<type 'exceptions.OSError'>: [Errno 20] Not a directory: '/Volumes/Users/dreid/Downloads/Allmydata Tahoe.app/Contents/Resources/lib/python2.5/site-packages.zip/allmydata/web/provisioning.xhtml'

Attachments (1)

provisioning_getxmlfile.patch (673 bytes) - added by dreid at 2008-03-09T04:27:49Z.

Download all attachments as: .zip

Change History (8)

comment:1 Changed at 2008-03-09T02:38:35Z by dreid

One option would be to use a py2app recipe to specify that the allmydata python package isn't to be install in the site-packages.zip.

http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#id27 I think has the relevant information.

Changed at 2008-03-09T04:27:49Z by dreid

comment:2 Changed at 2008-03-09T04:29:11Z by dreid

The attached patch fixes the problem, as you can see allmydata.provisioning.getxmlfile is not using resource_filename as allmydata.web.common.getxmlfile is. I've simply removed the getxmlfile from allmydata.provisioning and this appears to fix the bug.

comment:3 Changed at 2008-03-09T16:46:37Z by zooko

The patch looks good, but before committing it I want to have an automated test of it. After chatting with dreid and with exarkun on IRC, I think that the best way to automatically test it is to add a step to buildbot called PrivateInstall, and then run the unit tests on the source code thus locally installed.

comment:5 Changed at 2008-03-10T23:08:53Z by zooko

I went ahead and applied dreid's patch 1ddeb88e9b312185, to fix the bug in v0.9.0, but I still want automated tests showing that this stuff works when it is being run out of a py2exe or py2app package.

comment:6 Changed at 2008-03-13T01:51:09Z by zooko

  • Resolution set to fixed
  • Status changed from new to closed

see also allmydata.org "Tahoe" #348 (BuildBot step to run tests from package)

comment:7 Changed at 2008-03-13T17:04:46Z by zooko

  • Milestone changed from undecided to 0.9.0 (Allmydata 3.0 final)
Note: See TracTickets for help on using tickets.