I am facing error TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug' while importing cuml in python 3.6 .Here is the error log
Python 3.6.10 | packaged by conda-forge | (default, Apr 24 2020, 16:44:11)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import cuml
Traceback (most recent call last):
File "", line 1, in
File "../python3.6/site-packages/cuml/__init__.py", line 17, in
from cuml.common.base import Base
File "../python3.6/site-packages/cuml/common/__init__.py", line 17, in
from cuml.common.array import CumlArray
File "../python3.6/site-packages/cuml/common/array.py", line 20, in
from rmm import DeviceBuffer
File "../python3.6/site-packages/rmm/__init__.py", line 17, in
from rmm.rmm import (
File "../python3.6/site-packages/rmm/rmm.py", line 19, in
from numba import cuda
File "../python3.6/site-packages/numba/__init__.py", line 298, in
import numba.typed
File "../python3.6/site-packages/numba/typed/__init__.py", line 1, in
from .typeddict import Dict
File "../python3.6/site-packages/numba/typed/typeddict.py", line 22, in
@njit
File "../python3.6/site-packages/numba/core/decorators.py", line 236, in njit
return jit(args, kws)
File "../python3.6/site-packages/numba/core/decorators.py", line 173, in jit
return wrapper(pyfunc)
File "../python3.6/site-packages/numba/core/decorators.py", line 189, in wrapper
*dispatcher_args)
File "../python3.6/site-packages/numba/core/dispatcher.py", line 670, in __init__
self.targetctx = self.targetdescr.target_context
File "../python3.6/site-packages/numba/core/registry.py", line 47, in target_context
return self._toplevel_target_context
File "../python3.6/site-packages/numba/core/utils.py", line 332, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "../python3.6/site-packages/numba/core/registry.py", line 31, in _toplevel_target_context
return cpu.CPUContext(self.typing_context)
File "../python3.6/site-packages/numba/core/base.py", line 259, in __init__
self.init()
File "../python3.6/site-packages/numba/core/compiler_lock.py", line 32, in _acquire_compile_lock
return func(args, *kwargs)
File "../python3.6/site-packages/numba/core/cpu.py", line 47, in init
self._internal_codegen = codegen.JITCPUCodegen("numba.exec")
File "../python3.6/site-packages/numba/core/codegen.py", line 645, in __init__
self._init(self._llvm_module)
File "../python3.6/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'
Hi,I also meet this error,do you solve it?Can you tell me?Look foward your reply!Thank you very much!
Unfortunately the issue occurs for all versions of python 3.6 and lower. Fortunately, the issue doesn't appear on python 3.7 , so to get rid of this problem I moved to python 3.7 and all good now.
Thank for your reply!I try change python=3.7,but it still not work.If you have another method for it,please tell me.Best regards!
------------------ 原始邮件 ------------------
发件人: "Muhammad Ajmal Siddiqui"<[email protected]>;
发送时间: 2020年6月11日(星期四) 下午4:59
收件人: "rapidsai/cuml"<[email protected]>;
抄送: "别做白日梦了😔"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [rapidsai/cuml] [BUG] TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug' (#2389)
Unfortunately the issue occurs for all versions of python 3.6 and lower. Fortunately, the issue doesn't appear on python 3.7 , so to get rid of this problem I moved to python 3.7 and all good now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
i solved same problem by downgrading llvmlite from _0.33.0rc1_ to _0.32.1_
pip install -U llvmlite==0.32.1
hope it can helps anybody
@andrew1337 thank you for the fix! It worked for me.
You are great! It also work for me!Thanks very much!
------------------ 原始邮件 ------------------
发件人: "andrew1337"<[email protected]>;
发送时间: 2020年6月11日(星期四) 晚上9:24
收件人: "rapidsai/cuml"<[email protected]>;
抄送: "别做白日梦了😔"<[email protected]>;"Comment"<[email protected]>;
主题: Re: [rapidsai/cuml] [BUG] TypeError: create_target_machine() got an unexpected keyword argument 'jitdebug' (#2389)
i solved same problem by downgrading llvmlite from 0.33.0rc1 to 0.32.1
pip install -U llvmlite==0.32.1
hope it can helps anybody
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
@andrew1337 Thanks a ton!
Thanks for the workaruond, @andrew1337 ! @ma-siddiqui - can you let us know which version of RAPIDS you were using? Is that 0.13?
I had similar issue with numba and solved it by doing the following
pip install -U numba==0.49.1
Unfortunately I can't repro this issue when installing in a clean environment. Fixing numba == 0.49.1 should be a good approach, as the llvmlite package comes in from the numba install.
I also had this problem with librosa and the solution was using
llvmlite-0.32.1
numba-0.49.1
Most helpful comment
i solved same problem by downgrading llvmlite from _0.33.0rc1_ to _0.32.1_
pip install -U llvmlite==0.32.1hope it can helps anybody