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
I hope I'm not doing something wrong.
It works fine when running the script on its own, but fails if run with r2 -i <script> . This issues appears to be similar to #64 and #57 but I can't figure out how to implement the fix.
$ cat r2.py
import r2pipe
r = r2pipe.open()
r.cmd('aaa')
Running the script
$ r2 -i r2.py test.x
Traceback (most recent call last):
File "r2.py", line 4, in <module>
r.cmd('aaa')
File "/home/ck/.local/lib/python3.5/site-packages/r2pipe/__init__.py", line 274, in cmd
res = self._cmd(cmd)
File "/home/ck/.local/lib/python3.5/site-packages/r2pipe/__init__.py", line 214, in _cmd_pipe
os.write(self.pipe[1], cmd)
TypeError: a bytes-like object is required, not 'str'
-- Use zoom.byte=entropy and press 'z' in visual mode to zoom out to see the entropy of the whole file
[0x004004c0]>
The text was updated successfully, but these errors were encountered:
I hope I'm not doing something wrong.
It works fine when running the script on its own, but fails if run with r2 -i <script> . This issues appears to be similar to #64 and #57 but I can't figure out how to implement the fix.
Versions
Python3 script
Running the script
The text was updated successfully, but these errors were encountered: