New Loebner Prize Protocol

  • 3 Replies
  • 3739 Views
*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
New Loebner Prize Protocol
« on: May 14, 2017, 05:41:54 pm »
Shared here, for the sake of discussion only, here is my BASH script prototype to install the New Loebner Prize Protocol on Linux.  Please do not try to run this script on a computer.  I removed the shebang #!/bin/bash from the top of the script, so it can not run.  This early work in progress is throwing errors as of this post.

Disclaimer: Any and all use of the this BASH script in any form is strictly prohibited. It is strictly for discussion purposes only.

Code
(Removed the shebang so the BASH shell can not interpret this script.)

sudo -s

# Install npm:

apt install npm

# Install express

apt install node-express-generator

# Install socket.io

npm install -g socket.io

# Install socket.io-client

npm install -g socket.io-client



After the script finished a test run... Running the server on node.js

Code
node server.js

produced this error:  Cannot find module 'socket.io'

Code
DEPRECATED use https://github.com/pillarjs/path-to-regexp
module.js:328
    throw err;
    ^

Error: Cannot find module 'socket.io'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/human/Downloads/LoebnerPrizeProtocol-master/server/server.js:5:8)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)

It seems the script may have successfully installed socket.io  which can be found here: /usr/local/lib/node_modules/socket.io  and also express which can be found here:  /usr/local/lib/node_modules/express.  But this is all going to have to be looked at more closely.

Please refrain from disparaging the new LPP here.  The purpose of this thread is to discuss how to setup the new Loebner Prize Protocol.

Reference:  https://github.com/jhudsy/LoebnerPrizeProtocol
« Last Edit: May 14, 2017, 06:13:58 pm by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: New Loebner Prize Protocol
« Reply #1 on: May 14, 2017, 06:22:46 pm »
UPDATE:   server.js is "listening"

Edited file: server.js

Code
//var io=require('socket.io')(http);
var io = require('/usr/local/lib/node_modules/socket.io')(http);
//var client=require('socket.io-client');
client=require('/usr/local/lib/node_modules/socket.io-client');

Quote
LinuxShell#: node server.js
DEPRECATED use https://github.com/pillarjs/path-to-regexp
listening




This is a proof of concept that the new LPP server is running on Linux.  Once again, it is for discussion purposes only.  Obviously, it has had minimal testing.  Exporting the shared libraries on Linux can be done later...  Next on the agenda, let's try to test run some chatbot contestants and judges.



« Last Edit: May 15, 2017, 04:24:45 pm by 8pla.net »
My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: New Loebner Prize Protocol
« Reply #2 on: May 14, 2017, 10:02:39 pm »
Code
node server.js

Code
DEPRECATED use https://github.com/pillarjs/path-to-regexp
listening
connection detected
connection detected
#:/server/server.js:227
    clients[o.to].emit("message",JSON.stringify(o));
                 ^

TypeError: Cannot read property 'emit' of undefined
    at handleCommunicationMessage (/var/www/html/LPC/server/server.js:227:18)
    at Socket.<anonymous> (/var/www/html/LPC/server/server.js:321:38)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at /usr/local/lib/node_modules/socket.io/lib/socket.js:509:12
    at nextTickCallbackWith0Args (node.js:419:9)
    at process._tickCallback (node.js:348:13)

The server starts.

Connections are detected.

Crashes on first client input, "hello"

NOTE:  This is a test run on a "localhost:8080" instead of '127.0.0.1:8080'

My Very Enormous Monster Just Stopped Using Nine

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: New Loebner Prize Protocol
« Reply #3 on: May 15, 2017, 03:36:06 pm »
Code
//var io=require('socket.io')(http);
var io = require('/usr/local/lib/node_modules/socket.io')(http);
//var client=require('socket.io-client');
var client=require('/usr/local/lib/node_modules/socket.io-client');

Oops!  I made a syntax error in my patch, and fixed it by adding "var" to the client variable.  Please note, this patch should be considered a temporary workaround.  However, the new Loebner Prize Protocol seems to be running in Linux, though testing is minimal at this point.   


Quote
node server.js
listening
connection detected
connection detected
connection detected
{"robot":"conf3","id":"judge0","secret":"alice"}
{"robot":"ai1","id":"judge0","secret":"alice"}


This is still a work in progress for discussion purposes only.
My Very Enormous Monster Just Stopped Using Nine

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

352 Guests, 0 Users

Most Online Today: 482. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles