question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes silently after the banner (while trying to CheckJava)

See original GitHub issue

Hi, thanks for the tool, looks great!

Describe the bug The program crashes silently when trying to check whether Java is installed.

To Reproduce

  1. run β€˜python.exe .\wa_kdbe.py’ or double click the file
  2. Quits 1 second after the banner

Expected behavior Shows a crash error or shows me whether Java is installed or not.

Screenshots Here I have modified the script with print calls as on the screenshot to find out which line is responsible for the crash. image

Desktop:

  • OS: [e.g. Windows 10]

First run log

First run : Auto installing python requirements.

Collecting packaging
  Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 40 kB 2.5 MB/s
Collecting psutil
  Downloading psutil-5.8.0-cp39-cp39-win_amd64.whl (246 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 246 kB 3.3 MB/s
Collecting termcolor
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
Collecting requests
  Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 61 kB ...
Collecting tqdm
  Downloading tqdm-4.60.0-py2.py3-none-any.whl (75 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 75 kB 2.0 MB/s
Collecting pyparsing>=2.0.2
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 67 kB ...
Collecting certifi>=2017.4.17
  Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 147 kB ...
Collecting chardet<5,>=3.0.2
  Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 178 kB ...
Collecting idna<3,>=2.5
  Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 58 kB ...
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.4-py2.py3-none-any.whl (153 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 153 kB ...
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Installing collected packages: urllib3, pyparsing, idna, chardet, certifi, tqdm, termcolor, requests, psutil, packaging
  WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] Le fichier spΓ©cifiΓ© est introuvable: 'c:\\python39\\Scripts\\chardetect.exe' -> 'c:\\python39\\Scripts\\chardetect.exe.deleteme'

Collecting termcolor
  Using cached termcolor-1.1.0.tar.gz (3.9 kB)
Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
Installing collected packages: termcolor
    Running setup.py install for termcolor ... done
Successfully installed termcolor-1.1.0
Collecting packaging
  Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting requests
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting tqdm
  Using cached tqdm-4.60.0-py2.py3-none-any.whl (75 kB)
Requirement already satisfied: pyparsing>=2.0.2 in c:\python39\lib\site-packages (from packaging) (2.4.7)
Requirement already satisfied: idna<3,>=2.5 in c:\python39\lib\site-packages (from requests) (2.10)
Collecting certifi>=2017.4.17
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python39\lib\site-packages (from requests) (1.26.4)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\python39\lib\site-packages (from requests) (4.0.0)
Installing collected packages: certifi, tqdm, requests, packaging
  WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an OSError: [WinError 2] Le fichier spΓ©cifiΓ© est introuvable: 'c:\\python39\\Scripts\\tqdm.exe' -> 'c:\\python39\\Scripts\\tqdm.exe.deleteme'

Collecting packaging
  Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting requests
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Requirement already satisfied: tqdm in c:\python39\lib\site-packages (4.60.0)
Requirement already satisfied: pyparsing>=2.0.2 in c:\python39\lib\site-packages (from packaging) (2.4.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\python39\lib\site-packages (from requests) (2020.12.5)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python39\lib\site-packages (from requests) (1.26.4)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\python39\lib\site-packages (from requests) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in c:\python39\lib\site-packages (from requests) (2.10)
Installing collected packages: requests, packaging
Successfully installed packaging-20.9 requests-2.25.1
cannot connect to daemon at tcp:5037: cannot connect to 127.0.0.1:5037: Aucune connexion n’a pu Γͺtre Γ©tablie car l’ordinateur cible l’a expressΓ©ment refusΓ©e. (10061)
* daemon not running; starting now at tcp:5037
* daemon started successfully
Traceback (most recent call last):
  File "C:\Users\nathan\bin\WhatsApp-Key-Database-Extractor\wa_kdbe.py", line 309, in <module>
    ADBSerialId = deviceId.init()
  File "C:\Users\nathan\bin\WhatsApp-Key-Database-Extractor\helpers\ADBDeviceSerialId.py", line 43, in init
    CustomPrint(
  File "C:\Users\nathan\bin\WhatsApp-Key-Database-Extractor\helpers\CustomCI.py", line 21, in CustomPrint
    cprint(time + textToPrint, color, attrs=attr)
NameError: name 'cprint' is not defined

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
YuvrajRaghuvanshiScommented, May 15, 2021

πŸ˜† It’s awesome it’s it!

0reactions
nathanvogelcommented, May 15, 2021

Just wanted to say thank you! It worked πŸ˜„

Read more comments on GitHub >

github_iconTop Results From Across the Web

Putting 1 banner and 1 dye in loom crashes the game - Mojang
Put in a few dye and a few banner into loom, removed the extra and was left with 1 banner and 1 dye...
Read more >
android | App keeps crashing when I add admob banner ad ...
I've tried implementing ads over 6 times, and got the same response every time I launched the app. A crash. I'm pretty new...
Read more >
IntelliJ IDEA 2022.2 crashes silently when loading any project
I have the same symptoms - IDE silently crashes when I try to load any project, no traces in the logs, and it...
Read more >
banner.Destroy() causes rare crash in production #690 - GitHub
I'm getting a crash in production in a small subset of cases, less than 1% of players, but still a lot of crashes....
Read more >
Crashes | Android Developers
When an app crashes, Android terminates the app's process and ... then try turning on airplane mode while your application attempts to useΒ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found