Skip to content

Jass does not work with Python 3.6 #1

@realies

Description

@realies

Can't get Jass to work. Had to chmod +x ./start_server.py, modify the interpreter path from #!/usr/bin/python3.5 to #!/usr/bin/python3.6 and pip3.6 install -r ./requirements.txt. Is it compatible with Python 3.6?

# ./start_server.py --setlogin realies testing --setlistenport 5000
Starting SLSK
Connnected to SLSK
[Server Thread] Sending message to server: S1
[Server Thread] Sending message to server: S2
[Server Thread] Sending message to server: S35
Starting Flask
WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.
 * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
[Jass Thread] Incoming Server Message: S1
adding to queue S1
{'code': 'S1',
 'error': 'unpack requires a buffer of 10 bytes',
 'status': 'error'}
[Flask Thread] Message To GUI: S1
emitting event "slsk" to all [/test]
192.168.1.102 - - [05/Feb/2018 05:59:37] "GET /socket.io/?EIO=3&transport=polling&t=M5a7eB- HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 05:59:37] "POST /socket.io/?EIO=3&transport=polling&t=M5a7eC6&sid=0b9202b9fa574520986e78f79e2bb6b0 HTTP/1.1" 200 -
[Jass Thread] Incoming Flask Message: J1
[Server Thread] Sending message to server: S64
192.168.1.102 - - [05/Feb/2018 05:59:37] "GET /socket.io/?EIO=3&transport=polling&t=M5a7eC7&sid=0b9202b9fa574520986e78f79e2bb6b0 HTTP/1.1" 200 -
{'browse': {}, 'code': 'J1', 'rooms': [], 'users': []}
[Flask Thread] Message To GUI: J1
emitting event "slsk" to all [/test]
192.168.1.102 - - [05/Feb/2018 05:59:37] "GET /socket.io/?EIO=3&transport=polling&t=M5a7eCH&sid=0b9202b9fa574520986e78f79e2bb6b0 HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET / HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET /js/jassSockets.js HTTP/1.1" 404 -
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET /js/jassSockets.js HTTP/1.1" 404 -
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET /socket.io/?EIO=3&transport=polling&t=M5a7eum HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 05:59:39] "POST /socket.io/?EIO=3&transport=polling&t=M5a7ev8&sid=eec48fa485ba451185c304c3cdcb5ae1 HTTP/1.1" 200 -
[Jass Thread] Incoming Flask Message: J1
[Server Thread] Sending message to server: S64
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET /socket.io/?EIO=3&transport=polling&t=M5a7evA&sid=eec48fa485ba451185c304c3cdcb5ae1 HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET /icons/favicon-32x32.png HTTP/1.1" 200 -
{'browse': {}, 'code': 'J1', 'rooms': [], 'users': []}
[Flask Thread] Message To GUI: J1
emitting event "slsk" to all [/test]
192.168.1.102 - - [05/Feb/2018 05:59:39] "GET /socket.io/?EIO=3&transport=polling&t=M5a7eCM&sid=0b9202b9fa574520986e78f79e2bb6b0 HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 05:59:40] "GET /socket.io/?EIO=3&transport=polling&t=M5a7evM&sid=eec48fa485ba451185c304c3cdcb5ae1 HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 06:00:04] "POST /socket.io/?EIO=3&transport=polling&t=M5a7k_o&sid=eec48fa485ba451185c304c3cdcb5ae1 HTTP/1.1" 200 -
192.168.1.102 - - [05/Feb/2018 06:00:04] "GET /socket.io/?EIO=3&transport=polling&t=M5a7evU&sid=eec48fa485ba451185c304c3cdcb5ae1 HTTP/1.1" 200 -
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/root/projects/Jass/server_connection.py", line 40, in run
    data, addr = self.server_sock.recvfrom(1024)
ConnectionResetError: [Errno 104] Connection reset by peer

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions