Closed meetgyn closed 4 years ago
Hi @meetgyn. Readline is generally only available on GNU based os, which is usually some flavor linux. Recon-ng will still work without it, but you simply wont have command completion or history. Are you on running on linux? Also, this is the marketplace repo, this error might be better suited for the framework repo for future reference.
Look sorry for my ignorance. I'm using Debian 9
That error doesn't even make any sense because I am capturing the readline exception and accounting for it. I believe it has something to do with the f-string formatting, not readline. You are probably running an older version of Python 3, before those were supported. What version are you running?
i have python 3.7.4
Well, that became available in Python 3.6, so 3.7.4 should be fine. There is definitely something different about your environment. What you pasted above is not the entire error because it is missing the traceback and exception type. Please send the entire error so we have additional context.
Here is the error message in full:
File "./recon-ng", line 16 print(f"{Colors.R}[!] Module 'readline' not available. Tab complete disabled.{Colors.N}") ^ SyntaxError: invalid syntax
I am using python3.6 and installed with pip3.
I need more information. OS you are using, method of install, command used to launch, etc. The only time I can replicate this error is when I launch Recon-ng with Python 2, or something under Python 3.6. It's an environmental issue. Based on that error, the only 2 things it can be is your version of python not supporting the print
function or f-strings.
I was using Ubuntu 16.04. Turns out, updating to 18.04 resolved the issue.
Yep. Had to be an environmental thing. Likely the same for the OP too.
root@xxxx:/opt/ferramentas/osint/recon-ng# python3 recon-ng File "recon-ng", line 16 print(f"{Colors.R}[!] Module 'readline' not available. Tab complete disabled.{Colors.N}") ^ Help men