signatory icon indicating copy to clipboard operation
signatory copied to clipboard

ERROR: Undefined symbol building with torch 1.8.0

Open jdavidls opened this issue 3 years ago • 1 comments

The execution of python setup.py install finishes without problems, but when I type the import signatory I get the following error:

/home/~/.pyenv/versions/3.8.2/lib/python3.8/site-packages/signatory/_impl.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceIN3c107complexIfEEEEPKNS_6detail12TypeMetaDataEv

I've been researching and it seems that version 1.8.0 has stopped supporting coffe.

Thanks for your excellent work

jdavidls avatar Mar 18 '21 19:03 jdavidls

It looks like the PyTorch version has been changed between compiling Signatory and running it. This can sometimes happen if you compile it in one virtual environment, and then run it in another, for example.

I have just tested compiling+importing Signatory against PyTorch 1.8.0 and it does work.

patrick-kidger avatar Mar 18 '21 19:03 patrick-kidger