radareorg/radare2-r2pipe

r2pipe cannot open file as a user

Fayozbek opened this issue · 2 comments

The first of all thank you for the awesome project.
I am a newbie in Linux and Python
As a user, I have installed "radare2" and "r2pipe" (pip install r2pipe). But when I try to run a simple example (https://github.com/radareorg/radare2-r2pipe/tree/master/python).
AttributeError: 'module' object has no attribute 'open'
And then I installed r2pipe as root. When I run this example as root, it works well.
I want to use r2pipe as a user.
Can you say what kind of mistake I did?
Thank you very much

@Fayozbek pip can break your system if it is installed out of virtualenv. Ensure you did it in. Else,

Try:

virtualenv -p python3 env;
source env/bin/activate;
pip install r2pipe;

then try to launch your script.

Note that I am facing a similar issue. virtualenv does not solve it for me. Our issue may be different. So you can try.