Open hoefling opened 8 years ago
@hoefling Thanks for the report! I'm not set up to make the --cythonize
version run easily. Can you add some debugging to zope.interface.interface.InterfaceClass.__init__
to determine the name(s) / type(s) of the attributes which trigger the exception?
When compiling interfaces into shared objects,
zope
cannot resolve them correctly. For an SSCCE, the compiled example interface from https://docs.zope.org/zope.interface/README.html raisesI collected the procedure in a bash script (https://gist.github.com/hoefling/c113a46f1690118ef4bde3114b2960c7). It generates a python module containing the interface and a test script that tries to import that interface:
Without cythonizing:
With cythonizing: