Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jass does not work with Python 3.6 #1

Open
realies opened this issue Feb 5, 2018 · 3 comments
Open

Jass does not work with Python 3.6 #1

realies opened this issue Feb 5, 2018 · 3 comments

Comments

@realies
Copy link

realies commented Feb 5, 2018

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

@daverickdunn
Copy link
Owner

Hi, this project is far from complete, and probably wasn't left in a great state. I'm exceptionally busy with work so it will be a while before I can resume working on it, but I do intend to do so at some point, I'm just not sure when that will be. I suggest you 'watch' the repo and you'll be notified of any activity.

@carcabot
Copy link

carcabot commented Mar 26, 2018

Same issue,

unpack requires a bytes object of length 10

Still waiting for an improvement

Keep up the good work.

@daverickdunn
Copy link
Owner

Still waiting for an improvement

Feel free to send a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants