apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

AttributeError: 'module' object has no attribute 'ENODATA' #277

Closed macosforgebot closed 13 years ago

macosforgebot commented 15 years ago

sanderson4@… originally submitted this as ticket:347


When trying to execute trunk CalendarServer on FreeBSD 7.2 I get the following error:

exec python /usr/local/www/iCal/Twisted/bin/twistd -n caldav -f /usr/ local/www/iCal/CalendarServer/conf/caldavd-dev.plist -o ProcessType=Combined 
Traceback (most recent call last):
 File "/usr/local/www/iCal/Twisted/bin/twistd", line 19, in <module>
   run()
File "/usr/local/www/iCal/Twisted/twisted/scripts/twistd.py", line 27, in run 
   app.run(runApp, ServerOptions)
File "/usr/local/www/iCal/Twisted/twisted/application/app.py", line 685, in run 
   config.parseOptions()
File "/usr/local/www/iCal/Twisted/twisted/application/app.py", line 665, in parseOptions 
   usage.Options.parseOptions(self, options)
File "/usr/local/www/iCal/Twisted/twisted/python/usage.py", line 226, in parseOptions 
   for (cmd, short, parser, doc) in self.subCommands:
File "/usr/local/www/iCal/Twisted/twisted/application/app.py", line 676, in subCommands 
   self.loadedPlugins[plug.tapname] = plug
File "/usr/local/www/iCal/CalendarServer/twisted/plugins/caldav.py", line 13, in getProperty 
   return getattr(reflect.namedClass(self.serviceMakerClass), propname)
File "/usr/local/www/iCal/Twisted/twisted/python/reflect.py", line 349, in namedObject 
   module = namedModule('.'.join(classSplit[:-1]))
File "/usr/local/www/iCal/Twisted/twisted/python/reflect.py", line 337, in namedModule 
   topLevel = __import__(name)
File "/usr/local/www/iCal/CalendarServer/twistedcaldav/mail.py", line 23, in <module> 
   from calendarserver.provision.root import RootResource
File "/usr/local/www/iCal/CalendarServer/calendarserver/provision/ root.py", line 31, in <module> 
   from twistedcaldav.extensions import DAVFile, CachingPropertyStore
File "/usr/local/www/iCal/CalendarServer/twistedcaldav/ extensions.py", line 51, in <module> 
   from twisted.web2.dav.static import DAVFile as SuperDAVFile
File "/usr/local/www/iCal/Twisted/twisted/web2/dav/static.py", line 44, in <module> from twisted.web2.dav.xattrprops import xattrPropertyStore as DeadPropertyStore File "/usr/local/www/iCal/Twisted/twisted/web2/dav/xattrprops.py", line 62, in <module> 
   _ATTR_MISSING = (errno.ENODATA, 93)
AttributeError: 'module' object has no attribute 'ENODATA'
macosforgebot commented 13 years ago

roland@… originally submitted this as attachment:diff.txt:⁠ticket:347


Patch for enoattr error

macosforgebot commented 13 years ago

roland@… originally submitted this as comment:1:⁠ticket:347


The diff.txt attachment is a patch for the ENODATA error.

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:347

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:347

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:347


xattrprops is now obsolete, as we use a database in 3.0

macosforgebot commented 13 years ago

@wsanchez originally submitted this as comment:5:⁠ticket:347


Fixed in r7842