Open Fabs opened 12 years ago
Did you try to install StringPrep? (A 2nd line of your log.)
I'm new to node.js, I thought it was only a warning. I'm doing it right now.
Just for record. Trying to run npm install node-stringprep fails on Mac OSX 10.7. I first had to do this:
brew install icu4c
ln -s /usr/local/Cellar/icu4c/
Them npm install node-stringprep.
Now whenever i start hubot, I got this:
npm WARN node-stringprep@0.1.4 package.json: bugs['name'] should probably be bugs['url']
node-stringprep@0.1.4 install /Volumes/Sensitive/fabsn/rep/hubot/node_modules/node-stringprep sh ./install.sh
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local/Cellar/node/0.6.1
'configure' finished successfully (0.153s)
Waf: Entering directory /Volumes/Sensitive/fabsn/rep/hubot/node_modules/node-stringprep/build' Waf: Leaving directory
/Volumes/Sensitive/fabsn/rep/hubot/node_modules/node-stringprep/build'
'build' finished successfully (0.025s)
[Mon, 12 Mar 2012 04:08:46 GMT] INFO Loading scripts from /Volumes/Sensitive/fabsn/rep/hubot/scripts
[Mon, 12 Mar 2012 04:08:46 GMT] INFO Loading scripts from /Volumes/Sensitive/fabsn/rep/hubot/src/scripts
[Mon, 12 Mar 2012 04:08:46 GMT] INFO Loading hubot-scripts from /Volumes/Sensitive/fabsn/rep/hubot/node_modules/hubot-scripts/src/scripts
The "sys" module is now called "util". It should have a similar interface.
[Mon, 12 Mar 2012 04:08:46 GMT] INFO Successfully connected to Redis
undefined
I have also fixed the checking for node path by exporting the path to nodepath, so now i get:
Checking for node path : ok /usr/local/lib/node
Still, I dunno why they run the build every time i run npm install.
“Still, I dunno why they run the build every time i run npm install.”
I had the same thing when I tried to install Hubot on my shared hosting. Two days of compiling dependencies, full screens of errors… and then I made it work. But I’m not shure I could do it again :)
Finally I have this in my ~/.bashrc:
# Node
export NODE_PATH=$HOME/usr/node
# Hubot
export HUBOT_GTALK_USERNAME="elebotus@gmail.com"
export HUBOT_GTALK_PASSWORD="MyGoodPassword"
export HUBOT_GTALK_WHITELIST_USERS="artem@sapegin.ru"
I have everything set as you showed, but still it does not work with gtalk. I'm using it with campfire.
you can uninstall the node-stringprep module if you want run gtalk adapter , it's works without node-stringprep. except has a message :
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
I am not sure if this is the same issue but I've also setup the env variables but when I run hubot -a gtalk
I simply get this:
Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
undefined
Tried installing the node-stringprep
and as described by @Fabs it just builds the package and nothing else.
Could some1 help me with this?
@Fabs Same thing happened here. I already installed node-stringprep
Hi, I have got same issue. I switched to older versions of hubot and hubot-gtalk and now it finally works for me.
"hubot-gtalk": "1.0.2",
"hubot": "2.2.0",
my package.json file:
{
"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-gtalk": "1.0.2",
"hubot": "2.2.0",
"hubot-scripts": ">=2.0.8",
"optparse": ">= 1.0.3",
"node-expat": "1.6.1"
},
"engines": {
"node": "0.6.x",
"npm": "1.0.x"
}
}
Procfile (nothing special):
web: bin/hubot -a gtalk -n Hubot
And script I use for deployment:
#!/bin/bash
heroku apps:destroy my_app_name --confirm my_app_name
heroku create my_app_name
heroku config:add HUBOT_GTALK_USERNAME="email@gmail.com" HUBOT_GTALK_PASSWORD="my_password"
heroku addons:add redistogo:nano
git push heroku master
heroku ps:scale web=1
I have downloaded hubot-2.1.3 and changed packed json to include hubot-gtalk: "dependencies": { "hubot": "2.1.3", "hubot-gtalk": ">= 0.0.1", "hubot-scripts": ">=2.0.4", "optparse": "1.0.3" }
I have exported different HUBOT_GTALK_USERNAME , HUBOT_GTALK_PASSWORD and ran bin/hubot -a gtalk, npm installed all dependencies. The server starts but nothing happens, the hubot simple does not answer to the gtalk account.
[master hubot] bin/hubot -a gtalk Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep' [Mon, 12 Mar 2012 02:14:41 GMT] INFO Loading scripts from /Volumes/Sensitive/fabsn/rep/hubot/scripts [Mon, 12 Mar 2012 02:14:41 GMT] INFO Loading scripts from /Volumes/Sensitive/fabsn/rep/hubot/src/scripts [Mon, 12 Mar 2012 02:14:41 GMT] INFO Loading hubot-scripts from /Volumes/Sensitive/fabsn/rep/hubot/node_modules/hubot-scripts/src/scripts The "sys" module is now called "util". It should have a similar interface. [Mon, 12 Mar 2012 02:14:41 GMT] INFO Successfully connected to Redis undefined
I've tried multiple gmail, and goole app account. It seems to have something to do with this "undefined". But i don't know what it is.
Any tip?