loading...

re: How to set up a Discord music bot VIEW POST

FULL DISCUSSION
 

Error: Could not find an Opus module! Please install node-opus or opusscript.
at new OpusStream (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\prism-media\src\opus\Opus.js:41:13)
at new Decoder (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\prism-media\src\opus\Opus.js:163:1)
at AudioPlayer.playOpusStream (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\discord.js\src\client\voice\player\BasePlayer.js:79:23)
at VoiceConnection.play (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\discord.js\src\client\voice\util\PlayInterface.js:74:28)
at VoiceConnection.onSessionDescription (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\discord.js\src\client\voice\VoiceConnection.js:455:29)
at VoiceWebSocket.emit (events.js:198:13)
at VoiceWebSocket.onPacket (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\discord.js\src\client\voice\networking\VoiceWebSocket.js:188:14)
at VoiceWebSocket.onMessage (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\discord.js\src\client\voice\networking\VoiceWebSocket.js:139:19)
at WebSocket.onMessage (C:\Users\WunderKid\Desktop\Master-Bot\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:198:13)

 

Did you install node-opus?

npm install node-opus

 

I get an error when I try to install node opus. Can you suggest what I should do?

node-opus@0.3.3 install C:\Users\georg\Downloads\Master-Bot\node_modules\node-opus

node-gyp rebuild

C:\Users\georg\Downloads\Master-Bot\node_modules\node-opus>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\georg\AppData\Local\Programs\Python\Python38-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\georg\Downloads\Master-Bot\node_modules\node-opus
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN discord.js@12.0.0-dev requires a peer of @discordjs/uws@11.149.1 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@12.0.0-dev requires a peer of bufferutil@4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@12.0.0-dev requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@12.0.0-dev requires a peer of libsodium-wrappers@0.7.4 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@12.0.0-dev requires a peer of sodium@3.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@12.0.0-dev requires a peer of zlib-sync@0.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@12.0.0-dev requires a peer of zucc@0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of @types/better-sqlite3@5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of better-sqlite3@5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of discord.js@12.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.11.0-dev requires a peer of sqlite@3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN prism-media@1.1.0 requires a peer of opusscript@0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN master-bot@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-opus@0.3.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-opus@0.3.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\georg\AppData\Roaming\npm-cache_logs\2019-10-30T20_20_37_834Z-debug.log

You are using python version 3.x and it requires python version 2.7

code of conduct - report abuse