radareorg / r2ai

local language model for radare2

Home Page:https://www.radare.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to install r2lang? getting have_rlang=False

Xplo8E opened this issue · comments

r2ai/main.py

Line 42 in 86a5c2b

import r2lang
it tries to import r2lang but it failed,

for r2pipe it was fixed with pip install r2pipe, but I didn't found any way to install r2lang

Screenshot 2024-03-28 at 9 34 09 PM

r2lang is provided by r2pm -ci rlang-python

got it, when i run r2, it was imported there.

but when we load r2ai repl with #!pipe python3 main.py

in repl.py it was not importing the r2lang

for debug, I added print logs

Screenshot 2024-03-28 at 10 25 17 PM

and one more thing, I was not able to run r2 commands in r2ai repl with :

Screenshot 2024-03-28 at 10 30 56 PM

if r2 is None:

r2 set to None and not updated

r2 = None

fixed in master :) please confirm and thanks for reporting!

Awesome, the issue is fixed.

Screenshot 2024-03-29 at 2 09 29 AM

Ok to close now?