Closed rahulmutt closed 3 years ago
I found a way to get around this by commenting out the call to PyWeakref_NewRef
in the python protobuf C extension which was only creating a dummy weak reference to get around some CPython performance bug for versions < 3. This function should still be implemented though as I'm sure some other C extensions might depend on it.
I believe this should be already fixed, there's a PyWeakref_NewRef
definition in: https://github.com/oracle/graalpython/blob/51a8273923277ead0bbaa1d54d85cacc2f01387f/graalpython/com.oracle.graal.python.cext/src/weakrefobject.c#L57-L64
While compiling tensorflow I got this error:
I did a quick grep of
PyWeakref_NewRef
in the graalpython codebase and only found it in a header file and not the corresponding implementation file so I think it needs to be implemented: https://github.com/graalvm/graalpython/blob/master/graalpython/com.oracle.graal.python.cext/src/weakrefobject.c