YuvrajRaghuvanshiS / WhatsApp-Key-Database-Extractor

The most advanced and complete solution for extracting WhatsApp key/DB from package directory (/data/data/com.whatsapp) without root access.
MIT License
463 stars 59 forks source link

Module termcolor not recognized #32

Closed roberts011 closed 3 years ago

roberts011 commented 3 years ago

Describe the bug wa_kdbe.py doesn't detect the termcolor package.

To Reproduce Steps to reproduce the behavior:

  1. run 'python wa_kdbe.py'

Expected behavior wa_kdbe.py to run

Screenshots image

Desktop (please complete the following information):

YuvrajRaghuvanshiS commented 3 years ago

requirements is installed with pip3 however program is run with python. Try python -m pip install -r requirements.txt or pip install -r requirements.txt

roberts011 commented 3 years ago

image tried both, didn't work

YuvrajRaghuvanshiS commented 3 years ago

Try some suggestions from StackOverflow. https://stackoverflow.com/questions/51530437/no-module-named-termcolor?answertab=active#tab-top

YuvrajRaghuvanshiS commented 3 years ago

Now that is some issue LoL

roberts011 commented 3 years ago

Try some suggestions from StackOverflow. https://stackoverflow.com/questions/51530437/no-module-named-termcolor?answertab=active#tab-top

Sadly neither are the case for me, only python 3.9 here and correctly spelled termcolor. Btw, whats termcolor for?

YuvrajRaghuvanshiS commented 3 years ago

Sadly neither are the case for me, only python 3.9 here and correctly spelled termcolor

I don't know what we're missing here.

Btw, whats termcolor for?

Colorful texts in terminal. I will send modified CustomCI.py right away to work without termcolor.

YuvrajRaghuvanshiS commented 3 years ago

Modified CustomCI.py to work without termcolor

import datetime

def CustomInput(textToInput, color='green', attr=[], getTime=True):
    time = GetTime() if getTime else ''
    return input(time + textToInput)

def CustomPrint(textToPrint, color='green', attr=[], getTime=True):
    time = GetTime() if getTime else ''
    textToPrint = str(textToPrint)
    print(time + textToPrint)

def GetTime():
    return '[' + str(datetime.datetime.now().time()) + '] '
YuvrajRaghuvanshiS commented 3 years ago

Try this

pip3 install -r requirements.txt --user
roberts011 commented 3 years ago

Try this

pip3 install -r requirements.txt --user

same result

image

roberts011 commented 3 years ago

If you took the module reference out then this is solved right?

YuvrajRaghuvanshiS commented 3 years ago

No this is just a workaround to continue without this module anyways.

roberts011 commented 3 years ago

Why not just remove the module reference and put the workaround in as the standard method? less dependencies

YuvrajRaghuvanshiS commented 3 years ago

Why don't I just put 10-20 commands in readme to copy paste in terminal? No dependencies.

roberts011 commented 3 years ago

well maybe not in readme, but somewhere where it can autorun

YuvrajRaghuvanshiS commented 3 years ago

Why don't I just put 10-20 commands in readme to copy paste in terminal? No dependencies.

It was rhetorical

YuvrajRaghuvanshiS commented 3 years ago

Closing because of inactivity.