eset / ipyida

IPython console integration for IDA Pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using IDA 6.9 with Homebrew Python 2.7.11

perks opened this issue · comments

Upon running the exec script I get the following error:

[+] Installing pip
Traceback (most recent call last):
File "", line 2, in
File "", line 43, in
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 702, in init
errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1136, in _get_handles
c2pwrite = stdout.fileno()
AttributeError: IDAPythonStdOut instance has no attribute 'fileno'

I've turned off App nap as per read me for both idaq and idaq64

Hi!

Thanks for reporting the issue.

It seems that OS X's subprocess doesn't like sys.stdout to be set to a non-file object. I tried to fix it in the master branch.

Can try the following?

import urllib2; exec urllib2.urlopen('https://github.com/eset/ipyida/raw/master/install_from_ida.py').read()

I don't think IDA picks up you Homebrew python path, but I'm not sure. You may need to install pip with sudo outside of IDA, or create a virtualenv for IDA.

Haven't heard back so I'll assume it worked.

Feel free to reopen if you still have installation problems.

I get two path /usr/local/bin/python and /usr/bin/python
If IDA don't picks up you Homebrew python path, Can I setting it ?