leostat / rtfm

A database of common, interesting or useful commands, in one handy referable form
https://necurity.co.uk/osprog/2017-02-27-RTFM-Pythonized/
GNU General Public License v3.0
745 stars 93 forks source link

terminaltables - kali #84

Closed rowbot1 closed 9 months ago

rowbot1 commented 5 years ago

Terminaltables installed but rtfm wont run it

  /opt/terminaltables   master  pip install terminaltables                                                                           

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: terminaltables in /usr/local/lib/python2.7/dist-packages (3.1.0)
  /opt/terminaltables   master  rtfm -e x11 -pP           
[WARNING]: Unable to have pretty output,  Please 'pip install terminaltables' or remove these lines :)
Traceback (most recent call last):
  File "/opt/rtfm/rtfm.py", line 786, in <module>
    run()
  File "/opt/rtfm/rtfm.py", line 149, in run
    Search(conn, sqlcmd, sqltpl, sqllst)
  File "/opt/rtfm/rtfm.py", line 171, in Search
    PrintThing(cmd)
  File "/opt/rtfm/rtfm.py", line 599, in PrintThing
    table = AsciiTable(table_data)
NameError: name 'AsciiTable' is not defined
  /opt/terminaltables   master  

even updating it i get an terminaltables error:

  ~/Desktop/rosee  rtfm -u        
[WARNING]: Unable to have pretty output,  Please 'pip install terminaltables' or remove these lines :)
[OK]: This may appear to hang. Run with debug to get more info
[OK]: Program version information :
0.9.8
 Added A way of fixing typo's in the database 
leostat commented 5 years ago

It looks like the version of RTFM is out of date, it should be 1.0.1, But its also meant to tell you that there is an update! 0.9.8 was in python 2.7 whereas 1.0.1 is in python 3 and should work (hopefully)

could you try

pip3 install terminaltables

I think its because I was assuming Pip was linked to python3 pip

rowbot1 commented 5 years ago

thats it, ty