hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.64k stars 3.75k forks source link

Trying to run hubot on Ubuntu 12.04 with Node v0.10.4 #484

Closed ChrisCinelli closed 11 years ago

ChrisCinelli commented 11 years ago

I added these dependencies:

"node-stringprep" : ">= 0.1.0",
"hubot-hipchat": ">= 1.0.2"

But I get:

    Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
    HipChat adapter options: { jid: '53434_4343@chat.hipchat.com',
      password: 'Mypassword',
      token: null,
      rooms: 'All',
      debug: false,
      host: null }
    Wobot object: { domain: null,
      _events:
       { connect: { [Function: g] listener: [Function] },
         error: [Function] },
      _maxListeners: 0,
      jabber: null,
      keepalive: null,
      name: null,
      plugins: {},
      iq_count: 1,
      jid: '53434_4343@chat.hipchat.com/wobot',
      password: 'Mypassword',
      debug: false,
      host: null,
      caps_ver: 'wobot:0.8.0',
      mucHost: 'conf.hipchat.com' }

    TypeError: Cannot read property 'message' of null
      at Bot.<anonymous> (/var/hubot/node_modules/hubot-hipchat/src/hipchat.coffee:141:20)
      at Bot.EventEmitter.emit (events.js:117:20)
      at Bot.module.exports.Bot.onStreamError (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/lib/bot.js:32:12)
      at Client.EventEmitter.emit (events.js:95:17)
      at Client.onRawStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
      at Client.EventEmitter.emit (events.js:95:17)
      at Client.Connection.onStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
      at StreamParser.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
      at StreamParser.EventEmitter.emit (events.js:95:17)
      at [object Object].<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
      at [object Object].EventEmitter.emit (events.js:95:17)
      at [object Object].Parser.parse (/var/hubot/node_modules/hubot-hipchat/node_modules/node-expat/lib/node-expat.js:18:22)
      at StreamParser.write (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:78:26)
      at Client.Connection.onData (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:184:21)
      at CleartextStream.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:53:14)
      at CleartextStream.EventEmitter.emit (events.js:117:20)
      at CleartextStream.<anonymous> (_stream_readable.js:710:14)
      at CleartextStream.EventEmitter.emit (events.js:92:17)
      at emitReadable_ (_stream_readable.js:382:10)
      at _stream_readable.js:375:7
      at process._tickCallback (node.js:415:13)

    Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
    HipChat adapter options: { jid: '53434_4343@chat.hipchat.com',
      password: 'Mypassword',
      token: null,
      rooms: 'All',
      debug: false,
      host: null }
    Wobot object: { domain: null,
      _events:
       { connect: { [Function: g] listener: [Function] },
         error: [Function] },
      _maxListeners: 0,
      jabber: null,
      keepalive: null,
      name: null,
      plugins: {},
      iq_count: 1,
      jid: '53434_4343@chat.hipchat.com/wobot',
      password: 'Mypassword',
      debug: false,
      host: null,
      caps_ver: 'wobot:0.8.0',
      mucHost: 'conf.hipchat.com' }

    TypeError: Cannot read property 'message' of null
      at Bot.<anonymous> (/var/hubot/node_modules/hubot-hipchat/src/hipchat.coffee:141:20)
      at Bot.EventEmitter.emit (events.js:117:20)
      at Bot.module.exports.Bot.onStreamError (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/lib/bot.js:32:12)
      at Client.EventEmitter.emit (events.js:95:17)
      at Client.onRawStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
      at Client.EventEmitter.emit (events.js:95:17)
      at Client.Connection.onStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
      at StreamParser.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
      at StreamParser.EventEmitter.emit (events.js:95:17)
      at [object Object].<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
    "/var/log/hubot.log" 94L, 5082C                                                                                                                                                                                       1,1           Top
      jabber: null,
      keepalive: null,
      name: null,
      plugins: {},
      iq_count: 1,
      jid: '53434_4343@chat.hipchat.com/wobot',
      password: 'Mypassword',
      debug: false,
      host: null,
      caps_ver: 'wobot:0.8.0',
      mucHost: 'conf.hipchat.com' }

    TypeError: Cannot read property 'message' of null
      at Bot.<anonymous> (/var/hubot/node_modules/hubot-hipchat/src/hipchat.coffee:141:20)
      at Bot.EventEmitter.emit (events.js:117:20)
      at Bot.module.exports.Bot.onStreamError (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/lib/bot.js:32:12)
      at Client.EventEmitter.emit (events.js:95:17)
      at Client.onRawStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
      at Client.EventEmitter.emit (events.js:95:17)
      at Client.Connection.onStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
      at StreamParser.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
      at StreamParser.EventEmitter.emit (events.js:95:17)
      at [object Object].<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
      at [object Object].EventEmitter.emit (events.js:95:17)
      at [object Object].Parser.parse (/var/hubot/node_modules/hubot-hipchat/node_modules/node-expat/lib/node-expat.js:18:22)
      at StreamParser.write (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:78:26)
      at Client.Connection.onData (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:184:21)
      at CleartextStream.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:53:14)
      at CleartextStream.EventEmitter.emit (events.js:117:20)
      at CleartextStream.<anonymous> (_stream_readable.js:710:14)
      at CleartextStream.EventEmitter.emit (events.js:92:17)
      at emitReadable_ (_stream_readable.js:382:10)
      at _stream_readable.js:375:7
      at process._tickCallback (node.js:415:13)

I tried to use "node-stringprep" : "= 0.1.0", but I get:

    > node-stringprep@0.1.0 install /var/hubot/node_modules/node-stringprep
    > ./install.sh

    ./install.sh: 11: ./install.sh: node-waf: not found
    npm ERR! node-stringprep@0.1.0 install: `./install.sh`
    npm ERR! `sh "-c" "./install.sh"` failed with 1
    npm ERR!
    npm ERR! Failed at the node-stringprep@0.1.0 install script.
    npm ERR! This is most likely a problem with the node-stringprep package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     ./install.sh
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls node-stringprep
    npm ERR! There is likely additional logging output above.

    npm ERR! System Linux 3.2.0-24-virtual
    npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "node-stringprep"
    npm ERR! cwd /var/hubot
    npm ERR! node -v v0.10.4
    npm ERR! npm -v 1.2.18
    npm ERR! code ELIFECYCLE
    npm ERR!
    npm ERR! Additional logging details can be found in:
    npm ERR!     /var/hubot/npm-debug.log
    npm ERR! not ok code 0
technicalpickles commented 11 years ago

This looks like it may be an issue with the hubot-hipchat adapter, which is a separate repo. Might want to check there first: https://github.com/hipchat/hubot-hipchat

On Apr 23, 2013, at 10:00 PM, Chris Cinelli notifications@github.com wrote:

I added these dependencies:

"node-stringprep" : ">= 0.1.0", "hubot-hipchat": ">= 1.0.2" But I get:

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
HipChat adapter options: { jid: '53434_4343@chat.hipchat.com',
  password: 'Mypassword',
  token: null,
  rooms: 'All',
  debug: false,
  host: null }
Wobot object: { domain: null,
  _events:
   { connect: { [Function: g] listener: [Function] },
     error: [Function] },
  _maxListeners: 0,
  jabber: null,
  keepalive: null,
  name: null,
  plugins: {},
  iq_count: 1,
  jid: '53434_4343@chat.hipchat.com/wobot',
  password: 'Mypassword',
  debug: false,
  host: null,
  caps_ver: 'wobot:0.8.0',
  mucHost: 'conf.hipchat.com' }

TypeError: Cannot read property 'message' of null
  at Bot.<anonymous> (/var/hubot/node_modules/hubot-hipchat/src/hipchat.coffee:141:20)
  at Bot.EventEmitter.emit (events.js:117:20)
  at Bot.module.exports.Bot.onStreamError (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/lib/bot.js:32:12)
  at Client.EventEmitter.emit (events.js:95:17)
  at Client.onRawStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
  at Client.EventEmitter.emit (events.js:95:17)
  at Client.Connection.onStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
  at StreamParser.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
  at StreamParser.EventEmitter.emit (events.js:95:17)
  at [object Object].<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
  at [object Object].EventEmitter.emit (events.js:95:17)
  at [object Object].Parser.parse (/var/hubot/node_modules/hubot-hipchat/node_modules/node-expat/lib/node-expat.js:18:22)
  at StreamParser.write (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:78:26)
  at Client.Connection.onData (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:184:21)
  at CleartextStream.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:53:14)
  at CleartextStream.EventEmitter.emit (events.js:117:20)
  at CleartextStream.<anonymous> (_stream_readable.js:710:14)
  at CleartextStream.EventEmitter.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:382:10)
  at _stream_readable.js:375:7
  at process._tickCallback (node.js:415:13)

Cannot load StringPrep-0.1.0 bindings. You may need to `npm install node-stringprep'
HipChat adapter options: { jid: '53434_4343@chat.hipchat.com',
  password: 'Mypassword',
  token: null,
  rooms: 'All',
  debug: false,
  host: null }
Wobot object: { domain: null,
  _events:
   { connect: { [Function: g] listener: [Function] },
     error: [Function] },
  _maxListeners: 0,
  jabber: null,
  keepalive: null,
  name: null,
  plugins: {},
  iq_count: 1,
  jid: '53434_4343@chat.hipchat.com/wobot',
  password: 'Mypassword',
  debug: false,
  host: null,
  caps_ver: 'wobot:0.8.0',
  mucHost: 'conf.hipchat.com' }

TypeError: Cannot read property 'message' of null
  at Bot.<anonymous> (/var/hubot/node_modules/hubot-hipchat/src/hipchat.coffee:141:20)
  at Bot.EventEmitter.emit (events.js:117:20)
  at Bot.module.exports.Bot.onStreamError (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/lib/bot.js:32:12)
  at Client.EventEmitter.emit (events.js:95:17)
  at Client.onRawStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
  at Client.EventEmitter.emit (events.js:95:17)
  at Client.Connection.onStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
  at StreamParser.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
  at StreamParser.EventEmitter.emit (events.js:95:17)
  at [object Object].<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
"/var/log/hubot.log" 94L, 5082C                                                                                                                                                                                       1,1           Top
  jabber: null,
  keepalive: null,
  name: null,
  plugins: {},
  iq_count: 1,
  jid: '53434_4343@chat.hipchat.com/wobot',
  password: 'Mypassword',
  debug: false,
  host: null,
  caps_ver: 'wobot:0.8.0',
  mucHost: 'conf.hipchat.com' }

TypeError: Cannot read property 'message' of null
  at Bot.<anonymous> (/var/hubot/node_modules/hubot-hipchat/src/hipchat.coffee:141:20)
  at Bot.EventEmitter.emit (events.js:117:20)
  at Bot.module.exports.Bot.onStreamError (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/lib/bot.js:32:12)
  at Client.EventEmitter.emit (events.js:95:17)
  at Client.onRawStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/client.js:124:18)
  at Client.EventEmitter.emit (events.js:95:17)
  at Client.Connection.onStanza (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:237:14)
  at StreamParser.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:136:14)
  at StreamParser.EventEmitter.emit (events.js:95:17)
  at [object Object].<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:42:22)
  at [object Object].EventEmitter.emit (events.js:95:17)
  at [object Object].Parser.parse (/var/hubot/node_modules/hubot-hipchat/node_modules/node-expat/lib/node-expat.js:18:22)
  at StreamParser.write (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/stream_parser.js:78:26)
  at Client.Connection.onData (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:184:21)
  at CleartextStream.<anonymous> (/var/hubot/node_modules/hubot-hipchat/node_modules/wobot/node_modules/node-xmpp/lib/xmpp/connection.js:53:14)
  at CleartextStream.EventEmitter.emit (events.js:117:20)
  at CleartextStream.<anonymous> (_stream_readable.js:710:14)
  at CleartextStream.EventEmitter.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:382:10)
  at _stream_readable.js:375:7
  at process._tickCallback (node.js:415:13)

I tried to use "node-stringprep" : "= 0.1.0", but I get:

> node-stringprep@0.1.0 install /var/hubot/node_modules/node-stringprep
> ./install.sh

./install.sh: 11: ./install.sh: node-waf: not found
npm ERR! node-stringprep@0.1.0 install: `./install.sh`
npm ERR! `sh "-c" "./install.sh"` failed with 1
npm ERR!
npm ERR! Failed at the node-stringprep@0.1.0 install script.
npm ERR! This is most likely a problem with the node-stringprep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./install.sh
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-stringprep
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-24-virtual
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "node-stringprep"
npm ERR! cwd /var/hubot
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /var/hubot/npm-debug.log
npm ERR! not ok code 0

— Reply to this email directly or view it on GitHub.

tombell commented 11 years ago

Looks like your system doesn't have the required libraries installed to build node-stringprep.

ericjeedunn commented 11 years ago

node-waf was shipped with nodejs-dev package but Node v0.10 does not come with it anymore. So node-stringprep 0.1.0 does not compile because of this and node-stringprep 0.1.5 cause the hipchat adaptor to complain about the binding requiring 0.1.0