Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

install.sh - ImportError: cannot import name main #1117

Closed
ghost opened this issue May 12, 2018 · 9 comments
Closed

install.sh - ImportError: cannot import name main #1117

ghost opened this issue May 12, 2018 · 9 comments
Labels
onhold Waiting for input/feedback from the user

Comments

@ghost
Copy link

ghost commented May 12, 2018

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

@johncole2017
Copy link

I think you must execute install.sh with root permission, means run command " sudo ./install.sh"
before that use "sudo install -r requirements.txt" command

@ghost
Copy link
Author

ghost commented May 13, 2018

Tried doing so before, I was able to produce the same error.
pypa/pip#5240
pypa/pip#5221

Here are some issues that are related to my case.

@xorrior
Copy link
Contributor

xorrior commented May 15, 2018

@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.

image

Can you guys update to the latest version of Empire and try the installer?

@xorrior xorrior closed this as completed May 15, 2018
@xorrior
Copy link
Contributor

xorrior commented May 15, 2018

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?

image

@xorrior xorrior reopened this May 15, 2018
@johncole2017
Copy link

@xorrior I don't have issue with this . @dangwasec has

@ghost
Copy link
Author

ghost commented May 17, 2018

Will try to reproduce the error. What kind of information do you need? @xorrior

@xorrior
Copy link
Contributor

xorrior commented May 22, 2018

@ghost Have you tried updating to the latest version and running the installer as root?

@xorrior xorrior added the onhold Waiting for input/feedback from the user label May 22, 2018
@xorrior
Copy link
Contributor

xorrior commented Jun 1, 2018

Closing this since the account associated with this issue has been deleted.

@xorrior xorrior closed this as completed Jun 1, 2018
@iNoSec
Copy link

iNoSec commented Dec 24, 2018

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
and after sudo apt install --reinstall python-pip and remove all the upgrade pip in the installation script of empire and launch it again and thtas it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
onhold Waiting for input/feedback from the user
Projects
None yet
Development

No branches or pull requests

3 participants