[CalendarServer-users] AttributeError: NotFilePath instance has no attribute 'startswith'

John Tanner john.tanner at conformance.co.uk
Tue Jun 17 04:40:15 PDT 2008


Hi all,

New problem I'm afraid. I updated to the latest SVN this morning and  
tried to run the server; the following was spat out:

2008-06-17 12:36:40+0100 [-] [caldav-8008] /Users/hucklowcom/Developer/ 
CalendarServer/twistedcaldav/authkerb.py:41: RuntimeWarning: Python C  
API version mismatch for module kerberos: This Python has API version  
1013, module kerberos has version 1012.
2008-06-17 12:36:40+0100 [-] [caldav-8008]   import kerberos
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-] Log opened.
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-] twistd 2.5.0+rUnknown  
(/Library/Frameworks/Python.framework/Versions/2.5/Resources/ 
Python.app/Contents/MacOS/Python 2.5.0) starting up
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-] reactor class: <class  
'twisted.internet.selectreactor.SelectReactor'>
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]  
[twistedcaldav.tap#info] Configuring directory service of type:  
twistedcaldav.directory.xmlfile.XMLDirectoryService
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]  
[twistedcaldav.tap#info] Configuring SudoDirectoryService with file:  
conf/sudoers.plist
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]  
[twistedcaldav.tap#info] Setting up document root at: twistedcaldav/ 
test/data/
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]  
[twistedcaldav.tap#info] Setting up principal collection: <class  
'twistedcaldav 
.directory.principal.DirectoryPrincipalProvisioningResource'>
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-] Traceback (most recent  
call last):
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "../Twisted/bin/ 
twistd", line 21, in <module>
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     run()
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/scripts/twistd.py", line 27, in run
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     app.run(runApp,  
ServerOptions)
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/application/app.py", line 379, in  
run
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     runApp(config)
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/scripts/twistd.py", line 23, in  
runApp
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]      
_SomeApplicationRunner(config).run()
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/application/app.py", line 157, in  
run
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     self.application =  
self.createOrGetApplication()
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/application/app.py", line 202, in  
createOrGetApplication
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     ser =  
plg.makeService(self.config.subOptions)
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/CalendarServer/twistedcaldav/tap.py", line 749,  
in makeService
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     service =  
serviceMethod(options)
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/CalendarServer/twistedcaldav/tap.py", line 502,  
in makeService_Slave
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]      
principalCollection = self.principalResourceClass("/principals/",  
directory)
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/CalendarServer/twistedcaldav/directory/ 
principal.py", line 131, in __init__
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]      
DirectoryProvisioningResource.__init__(self, url, directory)
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/CalendarServer/twistedcaldav/directory/ 
principal.py", line 88, in __init__
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]      
DAVFile.__init__(self, NotFilePath(isdir=True))
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/web2/dav/static.py", line 72, in  
__init__
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     indexNames =  
indexNames,
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/web2/static.py", line 203, in  
__init__
2008-06-17 12:36:40+0100 [-] [caldav-8008]  [-]     self.fp =  
filepath.FilePath(path)
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-]   File "/Users/ 
hucklowcom/Developer/Twisted/twisted/python/filepath.py", line 290, in  
__init__
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-]     self.path =  
abspath(path)
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-]   File "/Library/ 
Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.py",  
line 403, in abspath
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-]     if not isabs(path):
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-]   File "/Library/ 
Frameworks/Python.framework/Versions/2.5/lib/python2.5/posixpath.py",  
line 49, in isabs
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-]     return  
s.startswith('/')
2008-06-17 12:36:41+0100 [-] [caldav-8008]  [-] AttributeError:  
NotFilePath instance has no attribute 'startswith'

I was hoping that the latest SVN might solve a problem we've been  
having with authentication and Mozilla Sunbird, but now the caldav  
server refuses to start; any ideas?

Cheers,

John D. Tanner

Conformance Ltd.
The Old Methodist Chapel
Great Hucklow
Buxton
Derbyshire
SK17 8RG

tel: +44 (0)1298 873800
fax: +44 (0)1298 873801
url: www.conformance.co.uk

Registered in England, Company No. 3478646
  -.-. --- -. ..-. --- .-. -- .- -. -.-. .



More information about the calendarserver-users mailing list