Because python-cryptography dont't work, calendarserver don't work.
arserver[2089]: Traceback (most recent call last):
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 579, in parseOptio
arserver[2089]: usage.Options.parseOptions(self, options)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 262, in parseOptions
arserver[2089]: for (cmd, short, parser, doc) in self.subCommands:
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 596, in subCommand
arserver[2089]: for plug in sorted(plugins, key=attrgetter('tapname')):
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugin.py", line 213, in getPlugins
arserver[2089]: allDropins = getCache(package)
arserver[2089]: --- <exception caught here> ---
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugin.py", line 171, in getCache
arserver[2089]: provider = pluginModule.load()
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/modules.py", line 389, in load
arserver[2089]: return self.pathEntry.pythonPath.moduleLoader(self.name)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 303, in namedAny
arserver[2089]: topLevelPackage = _importAndCheckStack(trialname)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 242, in _importAndC
arserver[2089]: return __import__(importName)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugins/twisted_core.py", line 5, in <module
arserver[2089]: from twisted.internet.endpoints import (
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/internet/endpoints.py", line 48, in <module>
arserver[2089]: from twisted.protocols.tls import TLSMemoryBIOFactory
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py", line 41, in <module>
arserver[2089]: from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
arserver[2089]: from OpenSSL import rand, crypto, SSL
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
sam. 2016-05-14 21:09:01 CEST. --
d[1]: Starting LSB: Calendar and Contacts Server...
arserver[2089]: Unhandled Error
arserver[2089]: Traceback (most recent call last):
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 579, in parseOptio
arserver[2089]: usage.Options.parseOptions(self, options)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 262, in parseOptions
arserver[2089]: for (cmd, short, parser, doc) in self.subCommands:
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 596, in subCommand
arserver[2089]: for plug in sorted(plugins, key=attrgetter('tapname')):
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugin.py", line 213, in getPlugins
arserver[2089]: allDropins = getCache(package)
arserver[2089]: --- <exception caught here> ---
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugin.py", line 171, in getCache
arserver[2089]: provider = pluginModule.load()
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/modules.py", line 389, in load
arserver[2089]: return self.pathEntry.pythonPath.moduleLoader(self.name)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 303, in namedAny
arserver[2089]: topLevelPackage = _importAndCheckStack(trialname)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 242, in _importAndC
arserver[2089]: return __import__(importName)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugins/twisted_core.py", line 5, in <module
arserver[2089]: from twisted.internet.endpoints import (
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/internet/endpoints.py", line 48, in <module>
arserver[2089]: from twisted.protocols.tls import TLSMemoryBIOFactory
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py", line 41, in <module>
arserver[2089]: from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
arserver[2089]: from OpenSSL import rand, crypto, SSL
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
arserver[2089]: from OpenSSL._util import (
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
arserver[2089]: from cryptography.hazmat.bindings.openssl.binding import Binding
arserver[2089]: File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", li
arserver[2089]: error=-1)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", li
arserver[2089]: ffi.def_extern(name=name, **kwargs)(func)
arserver[2089]: exceptions.AttributeError: 'CompiledFFI' object has no attribute 'def_extern'
arserver[2089]: Traceback (most recent call last):
arserver[2089]: File "/usr/bin/twistd", line 18, in <module>
arserver[2089]: run()
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 29, in run
arserver[2089]: app.run(runApp, ServerOptions)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 612, in run
arserver[2089]: config.parseOptions()
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 579, in parseOptio
arserver[2089]: usage.Options.parseOptions(self, options)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 262, in parseOptions
arserver[2089]: for (cmd, short, parser, doc) in self.subCommands:
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 596, in subCommand
arserver[2089]: for plug in sorted(plugins, key=attrgetter('tapname')):
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/plugins/caldav.py", line 29, in getProperty
arserver[2089]: return getattr(reflect.namedClass(self.serviceMakerClass), propname)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 168, in namedObject
arserver[2089]: module = namedModule('.'.join(classSplit[:-1]))
arserver[2089]: File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 154, in namedModule
arserver[2089]: topLevel = __import__(name)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/calendarserver/tap/caldav.py", line 36, in <module>
arserver[2089]: import OpenSSL
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
arserver[2089]: from OpenSSL import rand, crypto, SSL
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/rand.py", line 11, in <module>
arserver[2089]: from OpenSSL._util import (
arserver[2089]: File "/usr/lib/python2.7/dist-packages/OpenSSL/_util.py", line 6, in <module>
arserver[2089]: from cryptography.hazmat.bindings.openssl.binding import Binding
arserver[2089]: File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", li
arserver[2089]: error=-1)
arserver[2089]: File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", li
arserver[2089]: ffi.def_extern(name=name, **kwargs)(func)
arserver[2089]: AttributeError: 'CompiledFFI' object has no attribute 'def_extern'
d[1]: Started LSB: Calendar and Contacts Server.
Hello,
Because python-cryptography dont't work, calendarserver don't work.
arserver[2089]: Traceback (most recent call last): python2. 7/dist- packages/ twisted/ application/ app.py" , line 579, in parseOptio parseOptions( self, options) python2. 7/dist- packages/ twisted/ python/ usage.py" , line 262, in parseOptions python2. 7/dist- packages/ twisted/ application/ app.py" , line 596, in subCommand 'tapname' )): python2. 7/dist- packages/ twisted/ plugin. py", line 213, in getPlugins python2. 7/dist- packages/ twisted/ plugin. py", line 171, in getCache python2. 7/dist- packages/ twisted/ python/ modules. py", line 389, in load pythonPath. moduleLoader( self.name) python2. 7/dist- packages/ twisted/ python/ reflect. py", line 303, in namedAny Stack(trialname ) python2. 7/dist- packages/ twisted/ python/ reflect. py", line 242, in _importAndC _(importName) python2. 7/dist- packages/ twisted/ plugins/ twisted_ core.py" , line 5, in <module internet. endpoints import ( python2. 7/dist- packages/ twisted/ internet/ endpoints. py", line 48, in <module> protocols. tls import TLSMemoryBIOFactory python2. 7/dist- packages/ twisted/ protocols/ tls.py" , line 41, in <module> python2. 7/dist- packages/ OpenSSL/ __init_ _.py", line 8, in <module> python2. 7/dist- packages/ OpenSSL/ rand.py" , line 11, in <module> python2. 7/dist- packages/ twisted/ application/ app.py" , line 579, in parseOptio parseOptions( self, options) python2. 7/dist- packages/ twisted/ python/ usage.py" , line 262, in parseOptions python2. 7/dist- packages/ twisted/ application/ app.py" , line 596, in subCommand 'tapname' )): python2. 7/dist- packages/ twisted/ plugin. py", line 213, in getPlugins python2. 7/dist- packages/ twisted/ plugin. py", line 171, in getCache python2. 7/dist- packages/ twisted/ python/ modules. py", line 389, in load pythonPath. moduleLoader( self.name) python2. 7/dist- packages/ twisted/ python/ reflect. py", line 303, in namedAny Stack(trialname ) python2. 7/dist- packages/ twisted/ python/ reflect. py", line 242, in _importAndC _(importName) python2. 7/dist- packages/ twisted/ plugins/ twisted_ core.py" , line 5, in <module internet. endpoints import ( python2. 7/dist- packages/ twisted/ internet/ endpoints. py", line 48, in <module> protocols. tls import TLSMemoryBIOFactory python2. 7/dist- packages/ twisted/ protocols/ tls.py" , line 41, in <module> python2. 7/dist- packages/ OpenSSL/ __init_ _.py", line 8, in <module> python2. 7/dist- packages/ OpenSSL/ rand.py" , line 11, in <module> python2. 7/dist- packages/ OpenSSL/ _util.py" , line 6, in <module> hazmat. bindings. openssl. binding import Binding python2. 7/dist- packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", li python2. 7/dist- packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", li extern( name=name, **kwargs)(func) AttributeError: 'CompiledFFI' object has no attribute 'def_extern' python2. 7/dist- packages/ twisted/ scripts/ twistd. py", line 29, in run python2. 7/dist- packages/ twisted/ application/ app.py" , line 612, in run parseOptions( ) python2. 7/dist- packages/ twisted/ application/ app.py" , line 579, in parseOptio parseOptions( self, options) python2. 7/dist- packages/ twisted/ python/ usage.py" , line 262, in parseOptions python2. 7/dist- packages/ twisted/ application/ app.py" , line 596, in subCommand 'tapname' )): python2. 7/dist- packages/ twisted/ plugins/ caldav. py", line 29, in getProperty reflect. namedClass( self.serviceMak erClass) , propname) python2. 7/dist- packages/ twisted/ python/ reflect. py", line 168, in namedObject '.'.join( classSplit[ :-1])) python2. 7/dist- packages/ twisted/ python/ reflect. py", line 154, in namedModule python2. 7/dist- packages/ calendarserver/ tap/caldav. py", line 36, in <module> python2. 7/dist- packages/ OpenSSL/ __init_ _.py", line 8, in <module> python2. 7/dist- packages/ OpenSSL/ rand.py" , line 11, in <module> python2. 7/dist- packages/ OpenSSL/ _util.py" , line 6, in <module> hazmat. bindings. openssl. binding import Binding python2. 7/dist- packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", li python2. 7/dist- packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", li extern( name=name, **kwargs)(func)
arserver[2089]: File "/usr/lib/
arserver[2089]: usage.Options.
arserver[2089]: File "/usr/lib/
arserver[2089]: for (cmd, short, parser, doc) in self.subCommands:
arserver[2089]: File "/usr/lib/
arserver[2089]: for plug in sorted(plugins, key=attrgetter(
arserver[2089]: File "/usr/lib/
arserver[2089]: allDropins = getCache(package)
arserver[2089]: --- <exception caught here> ---
arserver[2089]: File "/usr/lib/
arserver[2089]: provider = pluginModule.load()
arserver[2089]: File "/usr/lib/
arserver[2089]: return self.pathEntry.
arserver[2089]: File "/usr/lib/
arserver[2089]: topLevelPackage = _importAndCheck
arserver[2089]: File "/usr/lib/
arserver[2089]: return __import_
arserver[2089]: File "/usr/lib/
arserver[2089]: from twisted.
arserver[2089]: File "/usr/lib/
arserver[2089]: from twisted.
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL import rand, crypto, SSL
arserver[2089]: File "/usr/lib/
sam. 2016-05-14 21:09:01 CEST. --
d[1]: Starting LSB: Calendar and Contacts Server...
arserver[2089]: Unhandled Error
arserver[2089]: Traceback (most recent call last):
arserver[2089]: File "/usr/lib/
arserver[2089]: usage.Options.
arserver[2089]: File "/usr/lib/
arserver[2089]: for (cmd, short, parser, doc) in self.subCommands:
arserver[2089]: File "/usr/lib/
arserver[2089]: for plug in sorted(plugins, key=attrgetter(
arserver[2089]: File "/usr/lib/
arserver[2089]: allDropins = getCache(package)
arserver[2089]: --- <exception caught here> ---
arserver[2089]: File "/usr/lib/
arserver[2089]: provider = pluginModule.load()
arserver[2089]: File "/usr/lib/
arserver[2089]: return self.pathEntry.
arserver[2089]: File "/usr/lib/
arserver[2089]: topLevelPackage = _importAndCheck
arserver[2089]: File "/usr/lib/
arserver[2089]: return __import_
arserver[2089]: File "/usr/lib/
arserver[2089]: from twisted.
arserver[2089]: File "/usr/lib/
arserver[2089]: from twisted.
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL import rand, crypto, SSL
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL._util import (
arserver[2089]: File "/usr/lib/
arserver[2089]: from cryptography.
arserver[2089]: File "/usr/lib/
arserver[2089]: error=-1)
arserver[2089]: File "/usr/lib/
arserver[2089]: ffi.def_
arserver[2089]: exceptions.
arserver[2089]: Traceback (most recent call last):
arserver[2089]: File "/usr/bin/twistd", line 18, in <module>
arserver[2089]: run()
arserver[2089]: File "/usr/lib/
arserver[2089]: app.run(runApp, ServerOptions)
arserver[2089]: File "/usr/lib/
arserver[2089]: config.
arserver[2089]: File "/usr/lib/
arserver[2089]: usage.Options.
arserver[2089]: File "/usr/lib/
arserver[2089]: for (cmd, short, parser, doc) in self.subCommands:
arserver[2089]: File "/usr/lib/
arserver[2089]: for plug in sorted(plugins, key=attrgetter(
arserver[2089]: File "/usr/lib/
arserver[2089]: return getattr(
arserver[2089]: File "/usr/lib/
arserver[2089]: module = namedModule(
arserver[2089]: File "/usr/lib/
arserver[2089]: topLevel = __import__(name)
arserver[2089]: File "/usr/lib/
arserver[2089]: import OpenSSL
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL import rand, crypto, SSL
arserver[2089]: File "/usr/lib/
arserver[2089]: from OpenSSL._util import (
arserver[2089]: File "/usr/lib/
arserver[2089]: from cryptography.
arserver[2089]: File "/usr/lib/
arserver[2089]: error=-1)
arserver[2089]: File "/usr/lib/
arserver[2089]: ffi.def_
arserver[2089]: AttributeError: 'CompiledFFI' object has no attribute 'def_extern'
d[1]: Started LSB: Calendar and Contacts Server.
Could you help me to fix this bug ?
Tanks for your support.
Best regards
Battant