threat9 / routersploit

Exploitation Framework for Embedded Devices
Other
12.12k stars 2.31k forks source link

ModuleNotFoundError: No module named 'readline' #668

Closed KeeperLifeblood closed 1 year ago

KeeperLifeblood commented 4 years ago

! ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY !

Steps to Reproduce (for bugs)

  1. open de cmd
  2. run python3 rsf.py 3.appears that error: File "rsf.py", line 10, in from routersploit.interpreter import RoutersploitInterpreter File "C:\Users\Marco\Desktop\routersploit-master\routersploit\interpreter.py", line 38, in import readline ModuleNotFoundError: No module named 'readline'

Your Environment

Current Behavior

Im try to run the rsf.py and appear that error:

File "rsf.py", line 10, in from routersploit.interpreter import RoutersploitInterpreter File "C:\Users\Marco\Desktop\routersploit-master\routersploit\interpreter.py", line 38, in import readline ModuleNotFoundError: No module named 'readline'

0xAb031n0uR commented 4 years ago

try this

sudo pip install readline
ImagineFin commented 4 years ago

@MOSTAFAABOELNOUR the same thing happened to me, expect this didnt fix it, i only got another error saying:

$ python -m pip install readline Collecting readline Using cached readline-6.2.4.1.tar.gz (2.3 MB) ERROR: Command errored out with exit status 1: command: 'C:\Python\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\TEMP.LAPTOP-IM26HHKE\AppData\Local\Temp\pip-install-kwafbs6w\readline\setup.py'"'"'; file='"'"'C:\Users\TEMP.LAPTOP-IM26HHKE\AppData\Local\Temp\pip-install-kwafbs6w\readline\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\TEMP.LAPTOP-IM26HHKE\AppData\Local\Temp\pip-pip-egg-info-hdf1bg3v' cwd: C:\Users\TEMP.LAPTOP-IM26HHKE\AppData\Local\Temp\pip-install-kwafbs6w\readline\ Complete output (1 lines): error: this module is not meant to work on Windows

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

.... I dont know what to do or where to go from here

algorithmx51 commented 4 years ago

try this : https://stackoverflow.com/questions/6622490/ipython-no-readline-available-and-pip-install-readline-error

adarshadhungel1 commented 4 years ago

pip install pyreadline should do the job

binarioGH commented 3 years ago

Since you are on windows, try pip install pyreadline its like readline, but written in python.