pip.main is not supported since pip 10.0.0
trietptm opened this issue · 7 comments
Hi, since pip 10.0.0, we will get the installation error:
AttributeError: 'module' object has no attribute 'main'
because pip.main is not supported.
This is fixed in the master branch. I'm launching pip in child process instead. Can you test it? Here is how you can install from the master
branch:
IPYIDA_PACKAGE_LOCATION="https://github.com/eset/ipyida/archive/master.tar.gz"
import urllib2
exec urllib2.urlopen('https://github.com/eset/ipyida/raw/master/install_from_ida.py').read()
Hi, this is fixed, thank you 👍 .
I've just have an exception from IPythonKernel:
Failed while executing plugin_t.run():
Traceback (most recent call last):
File "C:\python27-x64\lib\site-packages\ipyida\ida_plugin.py", line 27, in run
self.kernel.start()
File "C:\python27-x64\lib\site-packages\ipyida\kernel.py", line 93, in start
"IDA's prompt.".format("IPythonKernel.start"))
Exception: IPythonKernel.start must be called from idapythonrc.py or IDA's prompt.
I can't seem to reproduce. What version of IDA is this? How is IPyIDA installed?
I ran these commands on the Python console of IDA about 3 times:
IPYIDA_PACKAGE_LOCATION="https://github.com/eset/ipyida/archive/master.tar.gz"
import urllib2
exec urllib2.urlopen('https://github.com/eset/ipyida/raw/master/install_from_ida.py').read()
Then I have an IPython Console by the shortcut Shift+. , then I close the IPython Console, then I reopen the IPython Console by the shortcut Shift+. again and it throws the above exception.
Try it again, it should be fixed.
It's fixed now, thanks.