Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r2pipe cannot open file as a user #108

Open
Fayozbek opened this issue Oct 30, 2019 · 2 comments
Open

r2pipe cannot open file as a user #108

Fayozbek opened this issue Oct 30, 2019 · 2 comments

Comments

@Fayozbek
Copy link

Fayozbek commented Oct 30, 2019

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

@radare
Copy link
Collaborator

radare commented Oct 31, 2019 via email

@gogo2464
Copy link

gogo2464 commented Mar 28, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants