social-engineer-toolkit icon indicating copy to clipboard operation
social-engineer-toolkit copied to clipboard

[!] Something went wrong, printing the error: No module named pexpect

Open Jubail opened this issue 9 years ago • 10 comments

In setoolkit under phishing when i set option 1) Perform a Mass Email Attack.. this mesg is displayed...also at the top when i launch setoolkit i see these two lines: [!] The python-pycrypto python module not installed. You will lose the ability for encrypted communications. [!] The python-pycrypto python module not installed. You will lose the ability to use multi-pyinjector.

Jubail avatar May 24 '17 08:05 Jubail

you should install modules as follows pip install pexpect

and for pycrypto module "The modules are packaged using the Distutils, so you can simply run “python setup.py build” to build the package, and “python setup.py install” to install it." from python website https://pypi.python.org/pypi/pycrypto

csmali avatar May 25 '17 10:05 csmali

i have the same problem and I've tried the code csmali sent but still didn't work for me

Preeqo avatar May 25 '17 21:05 Preeqo

Hello, i was able to install pexpect by following these below lines: 1>git clone https://github.com/pexpect/pexpect.git 2>cd pexpect 3>python setup/py install after this the install was success however when i run the setoolkit again i got another message saying: Something went wrong, printing the error: No module named ptyprocess. I followed the same steps for this module also however same mesg comes again.

Jubail avatar May 26 '17 12:05 Jubail

what is your python version? you can check your version like

python import sys print sys.version

csmali avatar May 26 '17 12:05 csmali

i am having python 2.7.13

Jubail avatar May 26 '17 12:05 Jubail

i dont know why but it turns out sometimes it fails to load module https://bugs.archlinux.org/task/46868 try to install module from here https://pypi.python.org/pypi/ptyprocess

csmali avatar May 26 '17 12:05 csmali

Thanks a lot from this link i was able to install the module...

Jubail avatar May 26 '17 13:05 Jubail

you are welcome!

csmali avatar May 26 '17 18:05 csmali

while installing pexpect i got this error python: can't open file 'setup/py': [Errno 2] No such file or directory

pratyushkashyyy avatar May 06 '20 08:05 pratyushkashyyy

Hi I solved the pexpect problems by reading comments and for ptyprocess i followed same but nothing happened Screenshot_20200529-205546

subhgod avatar May 29 '20 15:05 subhgod