torchsort
torchsort copied to clipboard
In Python 3.9, running 'torchsort' will report a error
Specifically, when I use python 3.9, it will report this error:
ImportError: /home/gyyang/anaconda3/lib/python3.9/site-packages/torchsort/isotonic_cpu.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN3c105ErrorC2ENS_14SourceLocationESs
But Python 3.8 is not such an error.
Hey @pilgrimygy. I added python 3.8, 3.9, and 3.10 to the CI tests; all tests are passing. Have you tried reinstalling with the new python version?
I will test it and give you feedback. Thank you so much!
I fixed the problem with 3steps:
- pip cache remove torchsort
- pip uninstall torchsort
- pip install torchsort.
Let me know if it also works for you.