Comments (11)
I'm getting the same type of thing on Windows (Server 2008):
ERR
CreateProcessW:
ERR
The system cannot find the file specified.
child process exited with code 127
If I change https://github.com/netpro2k/hubot-skype/blob/master/src/skype.coffee#L24 to the absolute path to skype.py I get a different error:
ERR
CreateProcessW:
ERR
%1 is not a valid Win32 application.
child process exited with code 127
from hubot-skype.
Same issue here on OS X.
from hubot-skype.
If I change https://github.com/netpro2k/hubot-skype/blob/master/src/skype.coffee#L24 to the absolute path to skype.py
I don't get error 127 if I use an absolute path, I get child process exited with code null
and OS X pops up with a 'Python quit unexpectedly` dialogue. Also using Python 2.7.
from hubot-skype.
I was able to get this working on Linux using X11 messaging rather than DBus. In skype.py
, change the line
s = Skype4Py.Skype()
to read
s = Skype4Py.Skype(Transport='x11')
from hubot-skype.
The above didn't work on OSX for me, but I have the developer preview of Mountain Lion installed (which no longer includes X11, but instead includes Quartz). I can test this on Linux with X11 installed tomorrow to verify
from hubot-skype.
I had the same problem on OS X 10.7.4
from hubot-skype.
I have tested on both Mac OSX Lion and Ubuntu 10.04 LTS.
- Only on Linux,
s = Skype4Py.Skype(Transport='x11')
is needed - For the error of
The system cannot find the file specified.
, place yourskype.py
at the same level of thebin
folder of hubot.
from hubot-skype.
Has anyone gotten this working on Mountain Lion?
from hubot-skype.
Same here. s = Skype4Py.Skype(Transport='x11')
didn't work for me on Ubuntu Linux 10.04 LTS - the issue remains.
$ bin/hubot -v
2.3.2
Even if I type exit(1), nothing happens - seems like skype.py
don't even run.
$ ./bin/hubot -a skype
ERR
execvp(): No such file or directory
child process exited with code 127
I've straced
this issue and found the child process can't find skype.py
, so I've just copied skype.py
to the directory I'm running command from.
Such a headache and, finally, it works fine.
The problem caused by script node_modules/hubot-skype/src/skype.coffee
:
@skype = require('child_process').spawn('./skype.py')
so, replace it with:
@skype = require('child_process').spawn(__dirname + '/skype.py')
BTW, If I don't specify Transport='x11'
, I'm getting:
$ ./bin/hubot -a skype
child process exited with code 1
so, Transport='x11'
is needed anyway
from hubot-skype.
I have now updated this to work with the latest version of hubot, published to npm, added better error reporting, as well as notes on OS specific issues in the readme.
Let me know if you are still having issues with the latest version.
from hubot-skype.
Hello,
After running bin/hubot -a skype getting below error.
npm ERR! not a package /root/tmp/npm-5020/1386597313749-0.7098843608982861/tmp.tgz
npm ERR! Error: ENOENT, open '/root/tmp/npm-5020/1386597313749-0.7098843608982861/package/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR! System Linux 2.6.32-431.el6.i686
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /root/myhubot
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! path /root/tmp/npm-5020/1386597313749-0.7098843608982861/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/myhubot/npm-debug.log
npm ERR! not ok code 0
[Mon Dec 09 2013 19:25:17 GMT+0530 (IST)] ERROR Cannot load adapter skype - Error: Cannot find module 'hubot-skype'
My package.json file looks like
{
"name": "hosted-hubot",
"version": "2.6.3",
"author": "GitHub Inc.",
"keywords": [
"github",
"hubot",
"campfire",
"bot"
],
"description": "A simple helpful robot for your Company",
"licenses": [{
"type": "MIT",
"url": "https://github.com/github/hubot/raw/master/LICENSE"
}],
"repository" : {
"type": "git",
"url": "https://github.com/github/hubot.git"
},
"dependencies": {
"hubot": ">= 2.6.0 < 3.0.0",
"hubot-skype": "https://github.com/datr/hubot-scripts/",
"coffee-script": "~> 1.4.0",
"optparse": "1.0.3",
"scoped-http-client": "0.9.7",
"log": "1.3.0"
},
"engines": {
"node": ">= 0.8.x",
"npm": ">= 1.1.x"
}
Could you please help me to resole this one.
from hubot-skype.
Related Issues (16)
- 'hubot-skype' is not in the npm registry. HOT 17
- Is it possible to deploy hubot-skype on heroku? HOT 2
- Cannot find module 'hubot' HOT 1
- ERROR Cannot load adapter skype - TypeError: Cannot read property 'prototype' of undefined HOT 1
- Hubot reacts to own messages
- Debugging possibilities HOT 2
- ERROR Lost connection with Skype... Exiting HOT 13
- ERROR Cannot load adapter skype - Error: Cannot find module 'hubot-skype' HOT 2
- hubot-skype requires to be asked two times to respond back HOT 5
- Installation is very hard HOT 3
- Hubot doesn't respond specialty room(upper limit?) HOT 3
- Skype Desktop API is dead. No more work this adaptor. HOT 3
- Add `hubot-adapter` topic
- ERROR Cannot load adapter skype - TypeError: Object #<Object> has no method 'robot' HOT 5
- does not work in ubuntu 12 LTS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-skype.