DedSecInside / TorBot

Dark Web OSINT Tool
Other
2.73k stars 509 forks source link

Launching with Python3.9 fails with TypeError #339

Closed Eusebius closed 2 months ago

Eusebius commented 3 months ago

Describe the bug Starting torbot with Python 3.9 (after poetry install or pip install -r requirements.txt) results in a TypeError (because of a "pipe" syntax included in 3.10?).

To Reproduce Steps to reproduce the behavior:

  1. Live in a Linux environment with Python3.9 and Poetry
  2. git clone https://github.com/DedSecInside/TorBot.git torbot
  3. cd torbot
  4. poetry install
  5. poetry run python torbot -h
  6. Get a TypeError exception with the following stacktrace:
    Traceback (most recent call last):
    File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
    File "<redacted>/torbot/torbot/__main__.py", line 15, in <module>
    from modules.linktree import LinkTree
    File "<redacted>/torbot/torbot/modules/linktree.py", line 43, in <module>
    class LinkTree(Tree):
    File "<redacted>/torbot/torbot/modules/linktree.py", line 54, in LinkTree
    def _append_node(self, id: str, parent_id: str | None) -> None:
    TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Expected behavior Syntactic help displayed in terminal.

Desktop (please complete the following information):

Additional context Other versions lead to other errors in my environment: