Giter Club home page Giter Club logo

Comments (11)

smith avatar smith commented on August 18, 2024

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.

twe4ked avatar twe4ked commented on August 18, 2024

Same issue here on OS X.

from hubot-skype.

twe4ked avatar twe4ked commented on August 18, 2024

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.

kfb avatar kfb commented on August 18, 2024

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.

davidcelis avatar davidcelis commented on August 18, 2024

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.

nicholasf avatar nicholasf commented on August 18, 2024

I had the same problem on OS X 10.7.4

from hubot-skype.

tszming avatar tszming commented on August 18, 2024

I have tested on both Mac OSX Lion and Ubuntu 10.04 LTS.

  1. Only on Linux, s = Skype4Py.Skype(Transport='x11') is needed
  2. For the error of The system cannot find the file specified., place your skype.py at the same level of the bin folder of hubot.

from hubot-skype.

joshvermaire avatar joshvermaire commented on August 18, 2024

Has anyone gotten this working on Mountain Lion?

from hubot-skype.

Nemoden avatar Nemoden commented on August 18, 2024

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.

netpro2k avatar netpro2k commented on August 18, 2024

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.

sandipmkhairnar avatar sandipmkhairnar commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.