radareorg / radare2-bindings

Bindings of the r2 api for Valabind and friends
GNU Lesser General Public License v3.0
131 stars 92 forks source link

Python r2pipe broken pipe error #175

Closed SiD3W4y closed 6 years ago

SiD3W4y commented 7 years ago

I am getting a broken pipe error in python while using r2pipe: Traceback (most recent call last): File "example.py", line 4, in <module> r2.cmd("aa") File "/usr/lib/python3.6/site-packages/r2pipe/__init__.py", line 245, in cmd return self._cmd(cmd).strip() File "/usr/lib/python3.6/site-packages/r2pipe/__init__.py", line 160, in _cmd_process self.process.stdin.flush() BrokenPipeError: [Errno 32] Broken pipe It is when using directly r2pipe like this

import r2pipe

r2 = r2pipe.open("/bin/ls")
r2.cmd("aa") # Error here

However there isn't any problem when executing from inside r2 or when using the ccall:// uri. For info I am using r2pipe for python v0.9.1 and r2 version 1.7.0-git 16296 @ linux-x86-64 git.1.6.0-1024-g41ce16b31.

radare commented 7 years ago

cant reproduce.

On 8 Oct 2017, at 18:01, SiD3W4y notifications@github.com wrote:

I am getting a broken pipe error in python while using r2pipe: Traceback (most recent call last): File "example.py", line 4, in r2.cmd("aa") File "/usr/lib/python3.6/site-packages/r2pipe/init.py", line 245, in cmd return self._cmd(cmd).strip() File "/usr/lib/python3.6/site-packages/r2pipe/init.py", line 160, in _cmd_process self.process.stdin.flush() BrokenPipeError: [Errno 32] Broken pipe It is when using directly r2pipe like this

import r2pipe

r2 = r2pipe.open("/bin/ls") r2.cmd("aa") # Error here However there isn't any problem when executing from inside r2 or when using the ccall:// uri. For info I am using r2pipe for python v0.9.1 and r2 version 1.7.0-git 16296 @ linux-x86-64 git.1.6.0-1024-g41ce16b31.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/radare/radare2-bindings/issues/175, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-ljPmzS1D3jlbPANCx_xq40zNpT_lks5sqPHBgaJpZM4PxwIM.

radare commented 6 years ago

r2pipe doesnt belongs to bindings