You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 4 different ways to run r2ai:
[...]
As an r2 plugin: r2 -i main.py /bin/ls
[...]
Can't get that to work.
Solution 1. Try for a miracle. Fails: Script 'main.py' not found
r2 -i main.py subs_crack
ERROR: Script 'main.py' not found
Solution 2. Specify path of main.py. Fails "ModuleNotFoundError: No module named 'r2ai'"
$ r2 -i ~/.local/share/radare2/r2pm/git/r2ai/main.py ./subs_crack
Traceback (most recent call last):
File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/main.py", line 9, in <module>
from r2ai.main import main as r2ai_main
ModuleNotFoundError: No module named 'r2ai'
Solution 3. Be in ~/.local/share/radare2/r2pm/git/r2ai/. Fails ModuleNotFoundError: No module named 'rich'
$ r2 -i ./main.py ~/git/research/ai/subs_crack
Traceback (most recent call last):
File "./main.py", line 9, in <module>
from r2ai.main import main as r2ai_main
File "/home/axelle/.local/share/radare2/r2pm/git/r2ai/./r2ai/__init__.py", line 3, in <module>
from rich.logging import RichHandler
ModuleNotFoundError: No module named 'rich'
So, what's the correct command supposed to be? + fix the doc accordingly.
The text was updated successfully, but these errors were encountered:
The documentation says:
Can't get that to work.
Solution 1. Try for a miracle. Fails: Script 'main.py' not found
Solution 2. Specify path of main.py. Fails "ModuleNotFoundError: No module named 'r2ai'"
Solution 3. Be in ~/.local/share/radare2/r2pm/git/r2ai/. Fails ModuleNotFoundError: No module named 'rich'
So, what's the correct command supposed to be? + fix the doc accordingly.
The text was updated successfully, but these errors were encountered: