Hey all, Running on the 4.2 branch I am getting the following exception (see attached backtrace): exceptions.RuntimeError: twisted.internet.addressalready loaded, cannot load required backport
This is repeated over and over again in the error log. I see that this is trigggered when call runtime patching the twisted library. I do not have the system python twisted library installed and I do not have a src install of the twisted lib. Only the one that gets installed when running: run.sh -i / Later on down in the input I also get the following exception (see second backtrace): exceptions.AttributeError: 'module' object has no attribute 'backport' Further on down in the file I get the following the help dump from twistd and the following message: /usr/local/bin/twistd: Unknown command: caldav Any help is appreciated. Sincerely, Dennison Williams
2013-02-08 15:32:09-0800 [-] LimitingInheritingProtocolFactory starting on 8008 2013-02-08 15:32:09-0800 [-] LimitingInheritingProtocolFactory starting on 8800 2013-02-08 15:32:09-0800 [-] LimitingInheritingProtocolFactory starting on 8443 2013-02-08 15:32:09-0800 [-] LimitingInheritingProtocolFactory starting on 8843 2013-02-08 15:32:09-0800 [-] Factory starting on 7654 2013-02-08 15:32:09-0800 [-] [calendarserver.tap.caldav.CalDAVServiceMaker#info] Adding notification service 2013-02-08 15:32:09-0800 [-] [calendarserver.tap.caldav.CalDAVServiceMaker#info] Adding group caching service 2013-02-08 15:32:10-0800 [-] [notifications] Unhandled Error 2013-02-08 15:32:10-0800 [-] [notifications] Traceback (most recent call last): 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 647, in run 2013-02-08 15:32:10-0800 [-] [notifications] config.parseOptions() 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 614, in parseOptions 2013-02-08 15:32:10-0800 [-] [notifications] usage.Options.parseOptions(self, options) 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/python/usage.py", line 261, in parseOptions 2013-02-08 15:32:10-0800 [-] [notifications] for (cmd, short, parser, doc) in self.subCommands: 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 631, in subCommands 2013-02-08 15:32:10-0800 [-] [notifications] for plug in sorted(plugins, key=attrgetter('tapname')): 2013-02-08 15:32:10-0800 [-] [notifications] --- <exception caught here> --- 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/plugin.py", line 213, in getPlugins 2013-02-08 15:32:10-0800 [-] [notifications] adapted = interface(plugin, None) 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/lib/python2.7/dist-packages/zope/interface/interface.py", line 631, in _call_conform 2013-02-08 15:32:10-0800 [-] [notifications] return conform(self) 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/plugin.py", line 68, in __conform__ 2013-02-08 15:32:10-0800 [-] [notifications] return self.load() 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/plugin.py", line 63, in load 2013-02-08 15:32:10-0800 [-] [notifications] return namedAny(self.dropin.moduleName + '.' + self.name) 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 464, in namedAny 2013-02-08 15:32:10-0800 [-] [notifications] topLevelPackage = _importAndCheckStack(trialname) 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 400, in _importAndCheckStack 2013-02-08 15:32:10-0800 [-] [notifications] return __import__(importName) 2013-02-08 15:32:10-0800 [-] [notifications] File "/usr/local/lib/python2.7/dist-packages/twisted/plugins/caldav.py", line 17, in <module> 2013-02-08 15:32:10-0800 [-] [notifications] __import__("twext") # install patches before doing anything 2013-02-08 15:32:10-0800 [-] [notifications] File "/opt/CalendarServer-4.2/twext/__init__.py", line 21, in <module> 2013-02-08 15:32:10-0800 [-] [notifications] from twext import patches 2013-02-08 15:32:10-0800 [-] [notifications] File "/opt/CalendarServer-4.2/twext/patches.py", line 78, in <module> 2013-02-08 15:32:10-0800 [-] [notifications] _addBackports() 2013-02-08 15:32:10-0800 [-] [notifications] File "/opt/CalendarServer-4.2/twext/patches.py", line 73, in _addBackports 2013-02-08 15:32:10-0800 [-] [notifications] tiname + "already loaded, cannot load required backport") 2013-02-08 15:32:10-0800 [-] [notifications] exceptions.RuntimeError: twisted.internet.addressalready loaded, cannot load required backport
2013-02-08 15:32:10-0800 [-] [caldav-1] Unhandled Error 2013-02-08 15:32:10-0800 [-] [caldav-1] Traceback (most recent call last): 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 647, in run 2013-02-08 15:32:10-0800 [-] [caldav-1] config.parseOptions() 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 614, in parseOptions 2013-02-08 15:32:10-0800 [-] [caldav-1] usage.Options.parseOptions(self, options) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/usage.py", line 261, in parseOptions 2013-02-08 15:32:10-0800 [-] [caldav-1] for (cmd, short, parser, doc) in self.subCommands: 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 631, in subCommands 2013-02-08 15:32:10-0800 [-] [caldav-1] for plug in sorted(plugins, key=attrgetter('tapname')): 2013-02-08 15:32:10-0800 [-] [caldav-1] --- <exception caught here> --- 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/plugin.py", line 213, in getPlugins 2013-02-08 15:32:10-0800 [-] [caldav-1] adapted = interface(plugin, None) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/lib/python2.7/dist-packages/zope/interface/interface.py", line 631, in _call_conform 2013-02-08 15:32:10-0800 [-] [caldav-1] return conform(self) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/plugin.py", line 68, in __conform__ 2013-02-08 15:32:10-0800 [-] [caldav-1] return self.load() 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/plugin.py", line 63, in load 2013-02-08 15:32:10-0800 [-] [caldav-1] return namedAny(self.dropin.moduleName + '.' + self.name) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 464, in namedAny 2013-02-08 15:32:10-0800 [-] [caldav-1] topLevelPackage = _importAndCheckStack(trialname) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 400, in _importAndCheckStack 2013-02-08 15:32:10-0800 [-] [caldav-1] return __import__(importName) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/plugins/caldav.py", line 17, in <module> 2013-02-08 15:32:10-0800 [-] [caldav-1] __import__("twext") # install patches before doing anything 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/opt/CalendarServer-4.2/twext/__init__.py", line 21, in <module> 2013-02-08 15:32:10-0800 [-] [caldav-1] from twext import patches 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/opt/CalendarServer-4.2/twext/patches.py", line 78, in <module> 2013-02-08 15:32:10-0800 [-] [caldav-1] _addBackports() 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/opt/CalendarServer-4.2/twext/patches.py", line 68, in _addBackports 2013-02-08 15:32:10-0800 [-] [caldav-1] for submod in backports.iterModules(): 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/modules.py", line 128, in iterModules 2013-02-08 15:32:10-0800 [-] [caldav-1] for placeToLook in self._packagePaths(): 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/modules.py", line 423, in _packagePaths 2013-02-08 15:32:10-0800 [-] [caldav-1] load = self.load() 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/modules.py", line 383, in load 2013-02-08 15:32:10-0800 [-] [caldav-1] return self.pathEntry.pythonPath.moduleLoader(self.name) 2013-02-08 15:32:10-0800 [-] [caldav-1] File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 475, in namedAny 2013-02-08 15:32:10-0800 [-] [caldav-1] obj = getattr(obj, n) 2013-02-08 15:32:10-0800 [-] [caldav-1] exceptions.AttributeError: 'module' object has no attribute 'backport'
_______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev