torchsort icon indicating copy to clipboard operation
torchsort copied to clipboard

In Python 3.9, running 'torchsort' will report a error

Open pilgrimygy opened this issue 2 years ago • 2 comments

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.

pilgrimygy avatar Jul 21 '22 02:07 pilgrimygy

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?

teddykoker avatar Jul 25 '22 23:07 teddykoker

I will test it and give you feedback. Thank you so much!

pilgrimygy avatar Jul 26 '22 08:07 pilgrimygy

I fixed the problem with 3steps:

  1. pip cache remove torchsort
  2. pip uninstall torchsort
  3. pip install torchsort.

Let me know if it also works for you.

XiaojunTan avatar Jan 08 '24 11:01 XiaojunTan