nandub / hubot-irc

IRC adapter for Hubot
MIT License
299 stars 128 forks source link

Cannot find module 'hubot' #27

Closed steckel closed 12 years ago

steckel commented 12 years ago

While using a new copy of Hubot (Hubot v2.0.0 & v2.0.1), I'm getting the error of

[Tue May 29 2012 15:32:08 GMT-0700 (PDT)] ERROR Cannot load adapter irc - Error: Cannot find module 'hubot' Error: Cannot find module 'hubot'

after cloning a new hubot, running npm install hubot-irc along with exporting the proper environment variables.

steckel commented 12 years ago

Needed to add hubot to the hubot-irc package.json dependancies.

nandub commented 12 years ago

For more info use the following guides located here

make sure you use the latest for hubot - 2.2.1 and hubot-irc - 0.0.8 on the package.json

nidonato commented 11 years ago

i followed this to the letter and i still have the problem.

jgable commented 11 years ago

Can you give this a try... making sure to start fresh. Note that you must use the hubot code from the downloads page link.

I literally just 5 minutes ago followed this and had no problems.

Installation and Setup

NOTICE: This bot is now upgraded to Hubot 2.3. You should specify 0.0.8 as your hubot-irc dependency for older versions of Hubot (<2.3.0).

nidonato commented 11 years ago

that worked! probably a path issue for me thanks! Also any way to push this into the background as a process? I am more fluent with Eggdrop :) so its new territory.

janl commented 11 years ago

Seeing this with Hubot 2.5 and hubot-irc 0.1.15 node 0.8.19

git clone https://github.com/github/hubot.git
cd hubot
npm install
npm install hubot-irc --save
cat package.json | grep irc
    "hubot-irc": "~0.1.15"
env | grep HUB
HUBOT_LOG_LEVEL=debug
HUBOT_IRC_ROOMS=#myroom
HUBOT_IRC_DEBUG=true
HUBOT_IRC_NICK=myhubot
HUBOT_IRC_SERVER=irc.freenode.net
./bin/hubot -a irc
[Mon Jul 08 2013 22:04:37 GMT+0200 (CEST)] DEBUG Loading adapter irc
[Mon Jul 08 2013 22:04:38 GMT+0200 (CEST)] ERROR Cannot load adapter irc - Error: Cannot find module 'hubot'
jgable commented 11 years ago

You cannot simply clone the hubot repo. The hubot repo says that directly in its readme. I'd recommend you either:

  1. Follow the directions provided above
  2. Clone the https://github.com/jgable/hubot-irc-runnable repo and follow its directions
  3. Follow the actual instructions on the hubot repo readme.
janl commented 11 years ago

@jgable thanks a lot, feeling a little stupid right there. I was following https://github.com/github/hubot/wiki/Deploying-Hubot-onto-UNIX which does recommend the direct clone. I’ll try the methods you pointed out, thanks!

gholadr commented 10 years ago

when running

bin/hubot -a irc --name sbot

Hubot seems to just hang with the following message

WARNING The HUBOT_AUTH_ADMIN environment variable not set
INFO Data for brain retrieved from Redis

I've checked the HUBOT variables and everything seems fine...

jgable commented 10 years ago

What directions did you follow to get it setup?

gholadr commented 10 years ago

nm - there was a problem with my grove setup. followed the directions as stated above and they work fine. thanks.