MachineLearningRemote-Unreal
MachineLearningRemote-Unreal copied to clipboard
connect async handler error
Hello,
Very first time trying machine-learning-remote-ue4, could you please help me out?
Steps:
A)
- Downloaded current plugin source from GitHub (not the latest release, because UE4 4.26) and put it in the plugins folder of my project.
- 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).
- Successful compilation of the project, component has "hello" as default script.
- in blueprint, set hitting a key to run SendStringInput with a string to function "onJsonInput"
B)
- Downloaded current ml-remote-server (TF branch) source from GitHub (not the latest release, because UE4 4.26)
- changed to "tensorflow==2.2.0" in requirements.txt
- installed requirements (I have Python 3.8)
- ran the installer and started the server
- The server started OK
C)
- Back to my project, hit a key that ran SendStringInput to "onJsonInput"
- 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'
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?
Thank you, @getnamo
I'm running this on a single windows 10 laptop (both UE project and server)
@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>`
Ran into the same issue. Tried "upgrade" python-engineio==3.13.2 and solved the issue.