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:
Live in a Linux environment with Python3.9 and Poetry
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):
OS: Debian 11 (5.10.0-28-amd64, x86_64)
Python version: 3.9.2
Torbot version: commit 98901ac on dev branch.
Additional context
Other versions lead to other errors in my environment:
v4.0.0 or current main can't find a __main__ module (main.py is not renamed yet)
v3.1.2 leads to an AttributeError in modules/config.py (module 'logging' has no attribute 'getLevelNamesMapping')
Describe the bug Starting torbot with Python 3.9 (after
poetry install
orpip install -r requirements.txt
) results in a TypeError (because of a "pipe" syntax included in 3.10?).To Reproduce Steps to reproduce the behavior:
git clone https://github.com/DedSecInside/TorBot.git torbot
cd torbot
poetry install
poetry run python torbot -h
Expected behavior Syntactic help displayed in terminal.
Desktop (please complete the following information):
dev
branch.Additional context Other versions lead to other errors in my environment:
v4.0.0
or currentmain
can't find a__main__
module (main.py
is not renamed yet)v3.1.2
leads to anAttributeError
inmodules/config.py
(module 'logging' has no attribute 'getLevelNamesMapping'
)