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

connect async handler error #9

Open
LTorrao opened this issue Jan 4, 2021 · 4 comments
Open

connect async handler error #9

LTorrao opened this issue Jan 4, 2021 · 4 comments
Labels
awaiting replication bug Something isn't working

Comments

@LTorrao
Copy link

LTorrao commented Jan 4, 2021

Hello,

Very first time trying machine-learning-remote-ue4, could you please help me out?

Steps:

A)

  1. Downloaded current plugin source from GitHub (not the latest release, because UE4 4.26) and put it in the plugins folder of my project.
  2. Git cloned current socketio-client-ue4 source from GitHub (not the latest release, because UE4 4.26) and in the plugins folder of my project (ThirdParty OK).
  3. Successful compilation of the project, component has "hello" as default script.
  4. in blueprint, set hitting a key to run SendStringInput with a string to function "onJsonInput"

B)

  1. Downloaded current ml-remote-server (TF branch) source from GitHub (not the latest release, because UE4 4.26)
  2. changed to "tensorflow==2.2.0" in requirements.txt
  3. installed requirements (I have Python 3.8)
  4. ran the installer and started the server
  5. The server started OK

C)

  1. Back to my project, hit a key that ran SendStringInput to "onJsonInput"
  2. this is what I got:

connect async handler error Traceback (most recent call last): File "C:\Users\luist\AppData\Roaming\Python\Python38\site-packages\engineio\asyncio_server.py", line 447, in _trigger_event ret = await self.handlers[event](*args) File "C:\Users\luist\AppData\Roaming\Python\Python38\site-packages\socketio\asyncio_server.py", line 484, in _handle_eio_connect return await self._handle_connect(sid, '/') File "C:\Users\luist\AppData\Roaming\Python\Python38\site-packages\socketio\asyncio_server.py", line 408, in _handle_connect await self._send_packet(sid, packet.Packet(packet.CONNECT, File "C:\Users\luist\AppData\Roaming\Python\Python38\site-packages\socketio\asyncio_server.py", line 378, in _send_packet await self.eio.send(sid, encoded_packet, binary=False) TypeError: send() got an unexpected keyword argument 'binary'

@getnamo getnamo added bug Something isn't working awaiting replication labels Jan 11, 2021
@getnamo
Copy link
Owner

getnamo commented Jan 11, 2021

Is ml-remote-server running on windows or linux? I'll need to try to replicate the setup to see what could be causing the binary param mismatch.

At a glance it appears to be a socket.io version mismatch on python side. Make sure you're not using a too new of a version?

@LTorrao
Copy link
Author

LTorrao commented Jan 11, 2021

Thank you, @getnamo

I'm running this on a single windows 10 laptop (both UE project and server)

@LTorrao
Copy link
Author

LTorrao commented Jan 12, 2021

@getnamo this might give more info, if I run pip install python-socketio, I get:

`D:\ml-remote-server-tensorflow>pip install python-socketio
Requirement already satisfied: python-socketio in c:\users\luist\appdata\roaming\python\python38\site-packages (4.3.1)
Requirement already satisfied: six>=1.9.0 in c:\users\luist\appdata\roaming\python\python38\site-packages (from python-socketio) (1.15.0)
Requirement already satisfied: python-engineio>=3.9.0 in c:\users\luist\appdata\roaming\python\python38\site-packages (from python-socketio) (4.0.0)
WARNING: You are using pip version 19.2.3, however version 20.3.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

D:\ml-remote-server-tensorflow>`

@xukan840730
Copy link

Ran into the same issue. Tried "upgrade" python-engineio==3.13.2 and solved the issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting replication bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants