mushorg / tanner

He who flays the hide
GNU General Public License v3.0
222 stars 103 forks source link

Python 3.10 breaks Tanner #422

Closed t3chn0m4g3 closed 7 months ago

t3chn0m4g3 commented 2 years ago

Tanner currently does not support Python 3.10 due to the TypeError: As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary:

tanner          |
tanner          |       _________    _   ___   ____________
tanner          |      /_  __/   |  / | / / | / / ____/ __ \
tanner          |       / / / /| | /  |/ /  |/ / __/ / /_/ /
tanner          |      / / / ___ |/ /|  / /|  / /___/ _, _/
tanner          |     /_/ /_/  |_/_/ |_/_/ |_/_____/_/ |_|
tanner          |
tanner          |
tanner          | Debug logs will be stored in /tmp/tanner/tanner.log
tanner          | Error logs will be stored in /tmp/tanner/tanner.err
tanner          | Data logs will be stored in /var/log/tanner/tanner_report.json
tanner          | Traceback (most recent call last):
tanner          |   File "/usr/bin/tanner", line 4, in <module>
tanner          |     __import__('pkg_resources').run_script('Tanner==0.6.0', 'tanner')
tanner          |   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 656, in run_script
tanner          |     self.require(requires)[0].run_script(script_name, ns)
tanner          |   File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1460, in run_script
tanner          |     exec(script_code, namespace, namespace)
tanner          |   File "/usr/lib/python3.10/site-packages/Tanner-0.6.0-py3.10.egg/EGG-INFO/scripts/tanner", line 37, in <module>
tanner          |   File "/usr/lib/python3.10/site-packages/Tanner-0.6.0-py3.10.egg/EGG-INFO/scripts/tanner", line 32, in main
tanner          |   File "/usr/lib/python3.10/site-packages/Tanner-0.6.0-py3.10.egg/tanner/server.py", line 22, in __init__
tanner          |   File "/usr/lib/python3.10/site-packages/Tanner-0.6.0-py3.10.egg/tanner/sessions/session_manager.py", line 13, in __init__
tanner          |   File "/usr/lib/python3.10/site-packages/Tanner-0.6.0-py3.10.egg/tanner/sessions/session_analyzer.py", line 15, in __init__
tanner          |   File "/usr/lib/python3.10/asyncio/queues.py", line 34, in __init__
tanner          |     super().__init__(loop=loop)
tanner          |   File "/usr/lib/python3.10/asyncio/mixins.py", line 17, in __init__
tanner          |     raise TypeError(
tanner          | TypeError: As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary
t3chn0m4g3 commented 7 months ago

Fixed with 2803c2773b8797d2632c6e36c6e5ea716b95c3b1 by @glaslos