deezer / spleeter

Deezer source separation library including pretrained models.
https://research.deezer.com/projects/spleeter.html
MIT License
25.82k stars 2.83k forks source link

llvm jitdebug error with Spleeter 2.3.0 using Python 3.7.4 on Windows #659

Open boy1dr opened 3 years ago

boy1dr commented 3 years ago

After upgrade to Spleeter 2.3.0 using Python 3.7.4 (windows 10-64bit) i get an error when i try to spleet. The final lines of the error are as follows..

 File "C:\Users\chris\AppData\Roaming\SpleeterGUI\python\Lib\site-packages\numba\core\codegen.py", line 654, in _init
    tm = target.create_target_machine(**tm_options)
TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug'

I found a solution which is to downgrade llvm.

pip install -U llvmlite==0.32.1

spleeter 2.3.0 has requirement llvmlite<0.37.0,>=0.36.0, but you'll have llvmlite 0.32.1 which is incompatible.
Found existing installation: llvmlite 0.36.0
Successfully installed llvmlite-0.32.1

After the downgrade i can spleet once more. I'm not well enough versed with python to debug further. maybe a newer version of llvm could also work.

cheers ;)

AlexFundorin commented 3 years ago

I have the same bug on win10, 2.3.0 and python 3.9.7, except I cannot downgrade llvmlite, using pip. There's no 0.32.1 available for 3.9. Only 3.8.

mmoussallam commented 3 years ago

Hi @AlexFundorin ,

This issue is because of some low-level incompatibilities between packages numba and llvmlite that are quite hard for us to reproduce, being platform and python-version dependent. I can only encourage you to test a few combinations of those packages until that works as is done for instance in this thread.

Good luck!

AlexFundorin commented 3 years ago

I downgraded to python 3.7 and llvmlite 0.32.1. Still the same 'jitdebug' error. Will try some other options later

boy1dr commented 3 years ago

@AlexFundorin Thanks for checking it out. i'm not a python expert and solution i found seemed to work. i'm not sure why the issue exists in the first place. I tried a newer python version but no luck. i have some other versions to check out tonight.

AlexFundorin commented 3 years ago

I'm using SpleeterGUI and now regret that I updated the core part yesterday.