Closed ckdarby closed 11 years ago
+1 I have this same issue. Both on OS X and when trying to deploy to heroku.
@yyolk Make sure you have all the exports set; If you're still having problems I installed the xmpp plugin & just set the host to the google xmpp info.
@ckdarby I am having the same problem with the xmpp plugin:
$: HUBOT_XMPP_USERNAME=octobot HUBOT_XMPP_PASSWORD=NOPE HUBOT_XMPP_ROOMS=hubot HUBOT_XMPP_HOST=yolk.cc bin/hubot -a xmpp
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
[Sun Nov 04 2012 12:47:17 GMT-0600 (CST)] ERROR Cannot load adapter xmpp - TypeError: Cannot read property 'prototype' of undefined
TypeError: Cannot call method 'on' of null
at Object.<anonymous> (/Volumes/underfabric/code/node/hubot/node_modules/hubot/bin/hubot:105:19)
at Object.<anonymous> (/Volumes/underfabric/code/node/hubot/node_modules/hubot/bin/hubot:109:4)
at Module._compile (module.js:449:26)
at Object.exports.run (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25)
at compileScript (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
at fs.stat.notSources.(anonymous function) (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
Here is my package.json:
{
"name": "hosted-hubot",
"version": "2.2.0",
"author": "GitHub Inc.",
"keywords": "github hubot campfire bot",
"description": "A simple helpful Robot for your Company",
"licenses": [{
"type": "MIT",
"url": "http://github.com/github/hubot/raw/master/LICENSE"
}],
"repository" : {
"type" : "git",
"url" : "http://github.com/github/hubot.git"
},
"dependencies": {
"hubot-xmpp": ">= 0.0.1",
"hubot": "2.2.0",
"hubot-scripts": ">=2.0.8",
"optparse": "1.0.3"
}
}
One of the export variables are null On Nov 4, 2012 1:49 PM, "Joseph Chiocchi" notifications@github.com wrote:
I am having the same problem with the xmpp plugin:
$: HUBOT_XMPP_USERNAME=octobot HUBOT_XMPP_PASSWORD=NOPE HUBOT_XMPP_ROOMS=hubot HUBOT_XMPP_HOST=yolk.cc bin/hubot -a xmpp
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep' [Sun Nov 04 2012 12:47:17 GMT-0600 (CST)] ERROR Cannot load adapter xmpp - TypeError: Cannot read property 'prototype' of undefined TypeError: Cannot call method 'on' of null at Object.
(/Volumes/underfabric/code/node/hubot/node_modules/hubot/bin/hubot:105:19) at Object. (/Volumes/underfabric/code/node/hubot/node_modules/hubot/bin/hubot:109:4) at Module._compile (module.js:449:26) at Object.exports.run (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25) at compileScript (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:177:29) at fs.stat.notSources.(anonymous function) (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:152:18) at fs.readFile (fs.js:176:14) at Object.oncomplete (fs.js:297:15) — Reply to this email directly or view it on GitHubhttps://github.com/atmos/hubot-gtalk/issues/19#issuecomment-10053780.
@ckdarby can you possibly pass along how you got it working…? Specifically your export of the variables? I would be greatly appreciative
On Sun, Nov 4, 2012 at 1:43 PM, Cory notifications@github.com wrote:
One of the export variables are null On Nov 4, 2012 1:49 PM, "Joseph Chiocchi" notifications@github.com wrote:
I am having the same problem with the xmpp plugin:
$: HUBOT_XMPP_USERNAME=octobot HUBOT_XMPP_PASSWORD=NOPE HUBOT_XMPP_ROOMS=hubot HUBOT_XMPP_HOST=yolk.cc bin/hubot -a xmpp
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep' [Sun Nov 04 2012 12:47:17 GMT-0600 (CST)] ERROR Cannot load adapter xmpp
- TypeError: Cannot read property 'prototype' of undefined TypeError: Cannot call method 'on' of null at Object.
(/Volumes/underfabric/code/node/hubot/node_modules/hubot/bin/hubot:105:19) at Object. (/Volumes/underfabric/code/node/hubot/node_modules/hubot/bin/hubot:109:4) at Module._compile (module.js:449:26) at Object.exports.run (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25) at compileScript (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
at fs.stat.notSources.(anonymous function) (/Volumes/underfabric/code/node/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
at fs.readFile (fs.js:176:14) at Object.oncomplete (fs.js:297:15)
— Reply to this email directly or view it on GitHub< https://github.com/atmos/hubot-gtalk/issues/19#issuecomment-10053780>.
— Reply to this email directly or view it on GitHubhttps://github.com/atmos/hubot-gtalk/issues/19#issuecomment-10054477.
i hit the same issue. i packaged up the latest hubot from the source (which was very easy, thank you hubot devs) and ran the gtalk adapter from that. It works nicely except for what i'm hitting in #23.
my guess is that the latest hubot-gtalk won't run correctly against v2.2.0 of hubot.
This was solved by making sure to run hubot with all the proper export variables being set.
corby@Boxola:~/hubot$ bin/hubot -a gtalk Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep' [Thu Sep 27 2012 19:01:19 GMT+0000 (UTC)] ERROR Cannot load adapter gtalk - TypeError: Cannot read property 'prototype' of undefined TypeError: Cannot call method 'on' of null at Object. (/home/corby/hubot/node_modules/hubot/bin/hubot:105:19) at Object. (/home/corby/hubot/node_modules/hubot/bin/hubot4) at Module._compile (module.js:441:26) at Object.run (/home/corby/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25) at /home/corby/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:177:29 at /home/corby/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:152:18 at [object Object]. (fs.js:115:5) at [object Object].emit (events.js:64:17) at afterRead (fs.js:1117:12) at Object.wrapper as oncomplete