Closed U-r-Unknown closed 6 years ago
$ node bot.js Screenshot done { Error: spawn UNKNOWN at ChildProcess.spawn (internal/child_process.js:330:11) at Object.exports.spawn (child_process.js:500:9) at spawn (C:\HQ-Trivia-Bot\node_modules\cross-spawn\index.js:17:18) at gm._spawn (C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:224:14) at C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:101:12 at series (C:\HQ-Trivia-Bot\node_modules\array-series\index.js:11:36) at gm._preprocess (C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:177:5) at gm.write (C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:99:10) at Object.callback (C:\HQ-Trivia-Bot\bot.js:20:12) at Jimp.handleCallback (C:\HQ-Trivia-Bot\node_modules\desktop-screenshot\module.js :38:11) errno: 'UNKNOWN', code: 'UNKNOWN', syscall: 'spawn' }
i got this error. im using windows 7 (32 bit). i used this on screenshot. done everything as described in readme. Path variable is set and here it is:
c:\program files\graphicsmagick-1.3.28-q16;C:\Python36\Scripts\;C:\Python36\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd\;C:\Program Files\Tesseract-OCR\;C:\Program Files\nodejs\;C:\Program Files\Tesseract-OCR\tessdata\;
plz reply bro
Try updating node and your modules
npm version=5.7.1 node version=8.10.0 when i bash going to HQ-Trivia_Bot directory and run "npm-check-updates" it results in:
C:\HQ-Trivia-Bot>npm-check-updates [INFO]: You can also use ncu as an alias Using C:\HQ-Trivia-Bot\package.json [..................] / : All dependencies match the latest package versions :)
THEN WHEN I RUN node bot.js IT RESULTS IN:
C:\HQ-Trivia-Bot>node bot.js Screenshot done { Error: spawn UNKNOWN at _errnoException (util.js:1022:11) at ChildProcess.spawn (internal/child_process.js:323:11) at Object.exports.spawn (child_process.js:502:9) at spawn (C:\HQ-Trivia-Bot\node_modules\cross-spawn\index.js:17:18) at gm._spawn (C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:224:14) at C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:101:12 at series (C:\HQ-Trivia-Bot\node_modules\array-series\index.js:11:36) at gm._preprocess (C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:177:5) at gm.write (C:\HQ-Trivia-Bot\node_modules\gm\lib\command.js:99:10) at Object.callback (C:\HQ-Trivia-Bot\bot.js:20:12) code: 'UNKNOWN', errno: ' UNKNOWN', syscall: 'spawn' }
C:\HQ-Trivia-Bot>
plz help MAXENXE bro
Probably not a problem with my bot, I'll search online
Bro any updates regarding that error? I'm on Windows 7
The bot take a screenshot of your PC and analysis it aha
Ya. So is that a problem?
No but question and answer are made from the screenshot.jpg so you should have at least an hq screenshot opened on your PC with the right coordinate while running the bot
I dint mirror my phone. Just tried program on a screenshot by taking it's co-ordinates.
Then I made correct. It's on desktop. I took it's co-ordinates too
R u using Mac? I'm on Windows. I searched in internet about Spawn UNKNOWN seems like there is issue on Windows. But dint get how to solve it
No I'm using Windows and you're the first people to have this issue
Windows 10?
See my 1st error msg bro. And see PATH too. Should I add npm in path. If yes how?
Yep it is, I'm using Windows 7 but many people who tried it where using Windows 10 and npm is already in your path
Im using Windows 7 ultimate. Is there something missing in path? And see very first message that I sent. Is there something wrong?
Nothing wrong
Steps I followed: 1) I installed node in C Drive. It was added to path during installation by default. 2) I done git clone to ur bot address and bot was downloaded in C Drive. 3)i opened cmd in bot folder directory then ran "npm install". 4)placed snapshot on desktop and took it's co-ordinates by the application u mentioned and made changes in bot as u mentioned. 5) then went to hq directory of ur bot ad ran node bot.js(npm start too) but gives that spawn UNKNOWN msg. Did I made something wrong in these steps
delete and install modules again
how to set the coordinates rightly can you explain and it always scrrenshots my desktop screen and not the coordinates I ve specified but how's that possible with the coordinatrs placed and more over a warning like npm WARN @HQTriviaBotMaster1.0.0.0 no repository field is showing is that the reason of the bot not working properly??
the issue was graphicmagic was installed with 64 bit but im running 32 bot
$ npm install npm WARN hqtriviabot@1.0.0 No repository field.
up to date in 1.514s
IS this ERROR?