-
Notifications
You must be signed in to change notification settings - Fork 10
llmvlite bug #3
Copy link
Copy link
Open
Description
Firstly, I want to say I'm a huge fan of this concept! It has the potential to eliminate the infamous 2 language problem in python.
However, I am getting a bug when trying to use this library.
from pythoc import compile, i32
@compile
def add(a: i32, b: i32) -> i32:
return a + b
def main():
result = add(40, 2)
print(result)
if __name__ == "__main__":
main()Traceback (most recent call last):
File "/sourcode/src/main.py", line 1, in <module>
from pythoc import compile, i32
File "/usr/local/lib/python3.11/site-packages/pythoc/__init__.py", line 24, in <module>
from .decorators import compile, jit, extern, inline, get_compiler, list_compiled_functions, clear_registry
File "/usr/local/lib/python3.11/site-packages/pythoc/decorators/__init__.py", line 13, in <module>
from ..compiler import LLVMCompiler
File "/usr/local/lib/python3.11/site-packages/pythoc/compiler.py", line 15, in <module>
binding.initialize()
File "/usr/local/lib/python3.11/site-packages/llvmlite/binding/initfini.py", line 17, in initialize
raise RuntimeError(
RuntimeError: llvmlite.binding.initialize() is deprecated and will be removed. LLVM initialization is now handled automatically. Please remove calls to this function from your code and check for other behavioral changes that may have occurred due to LLVM updates.
I tried a few different things like llvmlite.binding.initialize = lambda _: pass, but nothing seemed to be able to work. I would appreciate any pointers/patches.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels