holehe icon indicating copy to clipboard operation
holehe copied to clipboard

SyntaxError: invalid syntax

Open trashmanbrah opened this issue 2 years ago • 4 comments

Describe the bug Running Holhe returns a Syntax Error.

To Reproduce Steps to reproduce the behavior:

  1. run holhe
  2. Errored Copy and Paste File "/usr/local/lib/python3.6/dist-packages/holehe/modules/products/samsung.py", line 90 if found := re.search(phone_number_pattern, req.text):

trashmanbrah avatar Aug 11 '22 13:08 trashmanbrah

Traceback (most recent call last): File "/usr/local/bin/holehe", line 11, in load_entry_point('holehe==1.61', 'console_scripts', 'holehe')() File "/usr/local/lib/python3.6/dist-packages/holehe/core.py", line 226, in main trio.run(maincore) File "/usr/local/lib/python3.6/dist-packages/trio/_core/_run.py", line 1932, in run raise runner.main_task_outcome.error File "/usr/local/lib/python3.6/dist-packages/holehe/core.py", line 199, in maincore modules = import_submodules("holehe.modules") File "/usr/local/lib/python3.6/dist-packages/holehe/core.py", line 46, in import_submodules results.update(import_submodules(full_name)) File "/usr/local/lib/python3.6/dist-packages/holehe/core.py", line 44, in import_submodules results[full_name] = importlib.import_module(full_name) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 665, in _load_unlocked File "", line 674, in exec_module File "", line 781, in get_code File "", line 741, in source_to_code File "", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.6/dist-packages/holehe/modules/products/samsung.py", line 90 if found := re.search(phone_number_pattern, req.text):

trashmanbrah avatar Aug 11 '22 13:08 trashmanbrah

Do you have the error after the if found ?

SamirPS avatar Aug 11 '22 18:08 SamirPS

Yeah i sent the full record log

On Aug 11, 2022, at 2:40 PM, SamirPS @.***> wrote:

 Do you have the error after the if found ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

trashmanbrah avatar Aug 11 '22 18:08 trashmanbrah

You are using python 3.6, but samsung.py use the walrus operator which require python at least python 3.8

dkeraudren avatar Aug 18 '22 12:08 dkeraudren