aiva icon indicating copy to clipboard operation
aiva copied to clipboard

Clients fail to join in time

Open ghost opened this issue 8 years ago • 11 comments

I ran 'npm run setup --debug' on my Dell and, like many others here, it would exit as "clients" would fail to join in time and then hang. Increasing the timeout in src/start-io.js to 150000 ms also didn't help, so I reduced the client count to a custom 2. It doesn't throw errors, but it still hangs. Any help?

ghost avatar Feb 06 '17 05:02 ghost

Do you have another error in the logs, like a module missing? Are you running it on Python 3?

znat avatar Feb 06 '17 20:02 znat

@znat initially it showed 'autocorrect' missing in 'convo_classifiers.py' but I removed the import statement to make it run for a change

ghost avatar Feb 07 '17 03:02 ghost

That's the error I had too. Once fixed (install the package) it worked, all the clients were connected in time

znat avatar Feb 07 '17 14:02 znat

@znat where can I download it from?

ghost avatar Feb 07 '17 14:02 ghost

pip install autocorrect

Le mar. 7 févr. 2017 9:23 AM, Nitish Kulshrestha [email protected] a écrit :

@znat https://github.com/znat where can I download it from?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kengz/aiva/issues/37#issuecomment-278013878, or mute the thread https://github.com/notifications/unsubscribe-auth/ADhgKtgQUsBxNjP-4CqVN_kkwmhfdSX_ks5raH5ZgaJpZM4L3zT1 .

znat avatar Feb 07 '17 15:02 znat

@znat that failed to work :-1:

ghost avatar Feb 08 '17 13:02 ghost

Try to start the IO components individually: in on terminal window run this:

npm run server

in another, run this:

python3 ./lib/client.py

See what the outputs are?

A known issue is from the websocket, if that's the case try a reinstall

pip3 uninstall websocket
pip3 install websocket

kengz avatar Feb 17 '17 14:02 kengz

@kengz npm run still hung my machine but running client.py showed:

`An incompatible websocket library is conflicting with the one we need. You can remove the incompatible library and install the correct one by running the following commands:

yes | pip uninstall websocket websocket-client pip install -U websocket-client`

but i had it already installed!

ghost avatar Feb 23 '17 11:02 ghost

Yep that's a known problem with that python dependency. Could you do an uninstall and reinstall for it as shown above? Then retry - that should fix it

On Feb 23, 2017, 6:20 AM -0500, Nitish Kulshrestha [email protected], wrote:

@kengz (https://github.com/kengz) npm run still hung my machine but running client.py showed:

`An incompatible websocket library is conflicting with the one we need. You can remove the incompatible library and install the correct one by running the following commands:

yes | pip uninstall websocket websocket-client pip install -U websocket-client`

but i had it already installed!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/kengz/aiva/issues/37#issuecomment-281966162), or mute the thread (https://github.com/notifications/unsubscribe-auth/AH1Db4xhAAaRVKXNgo4vc0T57qsXD4_Xks5rfWtzgaJpZM4L3zT1).

kengz avatar Feb 23 '17 16:02 kengz

I successfully uninstalled it but when I install websocket it says: 'Requirement already up-to-date' :-/

ghost avatar Feb 24 '17 03:02 ghost

python3? just to be absolute do it in py3 (since aiva uses py3)

python3 -m pip uninstall websocket
python3 -m pip install websocket

kengz avatar Feb 24 '17 05:02 kengz