FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
679 stars 169 forks source link

TypeError: cannot set 'is_timeout' attribute of immutable type 'TimeoutError #382

Closed k-bx closed 1 year ago

k-bx commented 2 years ago

Running a fresh installation of FreeTakServer:

root@stardust:~# python3 -m FreeTAKServer.controllers.services.FTS
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.10/dist-packages/FreeTAKServer/controllers/services/FTS.py", line 14, in <module>
    from FreeTAKServer.controllers.services.TCPDataPackageService import TCPDataPackageService as TCPFlaskFunctions
  File "/usr/local/lib/python3.10/dist-packages/FreeTAKServer/controllers/services/TCPDataPackageService.py", line 1, in <module>
    from .DataPackageServer import FlaskFunctions, Path, dp_directory, os, app, eventlet, const
  File "/usr/local/lib/python3.10/dist-packages/FreeTAKServer/controllers/services/DataPackageServer.py", line 20, in <module>
    import eventlet
  File "/usr/local/lib/python3.10/dist-packages/eventlet/__init__.py", line 10, in <module>
    from eventlet import convenience
  File "/usr/local/lib/python3.10/dist-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/local/lib/python3.10/dist-packages/eventlet/green/socket.py", line 4, in <module>
    __import__('eventlet.green._socket_nodns')
  File "/usr/local/lib/python3.10/dist-packages/eventlet/green/_socket_nodns.py", line 11, in <module>
    from eventlet import greenio
  File "/usr/local/lib/python3.10/dist-packages/eventlet/greenio/__init__.py", line 3, in <module>
    from eventlet.greenio.base import *  # noqa
  File "/usr/local/lib/python3.10/dist-packages/eventlet/greenio/base.py", line 32, in <module>
    socket_timeout = eventlet.timeout.wrap_is_timeout(socket.timeout)
  File "/usr/local/lib/python3.10/dist-packages/eventlet/timeout.py", line 166, in wrap_is_timeout
    base.is_timeout = property(lambda _: True)
TypeError: cannot set 'is_timeout' attribute of immutable type 'TimeoutError'
brothercorvo commented 2 years ago

You are running python 3.10 that is not supported. Read the docs

On Sat., Oct. 29, 2022, 11:58 a.m. Kon Rybnikov, @.***> wrote:

Running a fresh installation of FreeTakServer:

@.**:~# python3 -m FreeTAKServer.controllers.services.FTS Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.10/dist-packages/FreeTAKServer/controllers/services/FTS.py", line 14, in from FreeTAKServer.controllers.services.TCPDataPackageService import TCPDataPackageService as TCPFlaskFunctions File "/usr/local/lib/python3.10/dist-packages/FreeTAKServer/controllers/services/TCPDataPackageService.py", line 1, in from .DataPackageServer import FlaskFunctions, Path, dp_directory, os, app, eventlet, const File "/usr/local/lib/python3.10/dist-packages/FreeTAKServer/controllers/services/DataPackageServer.py", line 20, in import eventlet File "/usr/local/lib/python3.10/dist-packages/eventlet/init.py", line 10, in from eventlet import convenience File "/usr/local/lib/python3.10/dist-packages/eventlet/convenience.py", line 7, in from eventlet.green import socket File "/usr/local/lib/python3.10/dist-packages/eventlet/green/socket.py", line 4, in import('eventlet.green._socket_nodns') File "/usr/local/lib/python3.10/dist-packages/eventlet/green/_socket_nodns.py", line 11, in from eventlet import greenio File "/usr/local/lib/python3.10/dist-packages/eventlet/greenio/init.py", line 3, in from eventlet.greenio.base import # noqa File "/usr/local/lib/python3.10/dist-packages/eventlet/greenio/base.py", line 32, in socket_timeout = eventlet.timeout.wrap_is_timeout(socket.timeout) File "/usr/local/lib/python3.10/dist-packages/eventlet/timeout.py", line 166, in wrap_is_timeout base.istimeout = property(lambda : True) TypeError: cannot set 'is_timeout' attribute of immutable type 'TimeoutError'

— Reply to this email directly, view it on GitHub https://github.com/FreeTAKTeam/FreeTakServer/issues/382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPIAPILBLG6RPK2LFQ6MHDWFU3P5ANCNFSM6AAAAAARR2LQKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

brothercorvo commented 1 year ago

python 3.10 and 3.11 will be supported in the coming 2.x family