-
Notifications
You must be signed in to change notification settings - Fork 2.8k
install.sh - ImportError: cannot import name main #1117
Comments
I think you must execute install.sh with root permission, means run command " sudo ./install.sh" |
Tried doing so before, I was able to produce the same error. Here are some issues that are related to my case. |
@dangwasec @johncole2017 I'm unable to reproduce the issue you guys are having. Ubuntu 17 and Empire 2.5. I didn't receive any errors when running the install script as root. Can you guys update to the latest version of Empire and try the installer? |
hey @dangwasec @johncole2017, I was unable to reproduce this issue on Ubuntu 17 and Empire 2.5/master. Can you try upgrading to the latest version and running the installer again? |
@xorrior I don't have issue with this . @dangwasec has |
Will try to reproduce the error. What kind of information do you need? @xorrior |
@ghost Have you tried updating to the latest version and running the installer as root? |
Closing this since the account associated with this issue has been deleted. |
the error is due to pip upgrading with version > to 9.x i have same issue multiple times with other python script which upgrade pip before install all it need... to fix this you must sudo rm -vrf /usr/local/lib/python2.7/dist-packages/pip |
Empire Version
2.3.0
OS Information (Linux flavor, Python version)
Ubuntu 17.10 x86_64
Python 2.7.14
Expected behavior and description of the error, including any actions taken immediately prior to the error. The more detail the better.
1.Upon running install.sh script installs pip-10.0.1 which then causes
this error: 'ImportError: cannot import name main' which the script then fails to continue the installation
2.I tried installing other pip packages but I still reproduce the same error,
only fix I was able to do was to reinstall with this command.
sudo python -m pip uninstall pip && sudo apt install python-pip --reinstall
And install the required pip packages via the requirements.txt
Screenshot of error, embedded text output, or Pastebin link to the error
https://pastebin.com/w6J1SKMY
The text was updated successfully, but these errors were encountered: