Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cb is not a function #7

Open
dgrim1214 opened this issue Apr 21, 2016 · 1 comment
Open

cb is not a function #7

dgrim1214 opened this issue Apr 21, 2016 · 1 comment
Labels

Comments

@dgrim1214
Copy link

Despite following the installation instructions for hubot and hubot-ector, I have been unable to make it work. Upon launching hubot, I receive these two errors:

Error while loading cn.json
Error: ENOENT: no such file or directory, open 'cn.json'

Then, during operation of the bot, any string not caught by other hubot scripts will return

ERROR TypeError: cb is not a function
  at [object Object].ConceptNetwork.addNode (/home/xxxx/domibot/node_modules/concept-network/lib/concept-network.js:66:5)
  at Object.Ector.addEntry (/home/xxxx/domibot/node_modules/hubot-ector/node_modules/ector/lib/ector.js:134:30)
  at /home/xxxx/domibot/node_modules/hubot-ector/src/ector.coffee:58:7, <js>:51:15
  at Listener.callback (/home/xxxx/domibot/node_modules/hubot/src/robot.coffee:236:52, <js>:162:16)
  at executeListener (/home/xxxx/domibot/node_modules/hubot/src/listener.coffee:65:11, <js>:53:19)
  at allDone (/home/xxxx/domibot/node_modules/hubot/src/middleware.coffee:44:37, <js>:34:16)
  at /home/xxxx/domibot/node_modules/hubot/node_modules/async/lib/async.js:274:13
  at Object.async.eachSeries (/home/xxxx/domibot/node_modules/hubot/node_modules/async/lib/async.js:142:20)
  at Object.async.reduce (/home/xxxx/domibot/node_modules/hubot/node_modules/async/lib/async.js:268:15)
  at /home/xxxx/domibot/node_modules/hubot/src/middleware.coffee:49:7, <js>:37:22
  at _combinedTickCallback (internal/process/next_tick.js:67:7)
  at process._tickCallback (internal/process/next_tick.js:98:9)
@parmentf parmentf added the bug label Apr 23, 2016
@parmentf
Copy link
Owner

parmentf commented Apr 23, 2016

Oh, yes. This is due to bug in node-ector's dependencies. See parmentf/node-ector#4
When I'll have the energy, I'll fix the dependency.
In the interval, you can always modify the package.json of the node-ector node_module, by removing the ^ character on the concept-network line...
Then go to the directory of node-ector, and run npm install.

Sorry for the inconvenience.

sabino added a commit to sabino/hubot-ector that referenced this issue Aug 19, 2016
Due to this bug parmentf#7 (possibly fixed here parmentf/node-ector#4) the dependency was not changed so I think it should be changed in order to get the latest version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants