daledale icon indicating copy to clipboard operation
daledale copied to clipboard

Not working on ubuntu

Open metehus opened this issue 4 years ago β€’ 1 comments

Not working on Ubuntu 20.04, with this error message:

matheus@matheus:~/Downloads$ npx daledale
npx: installed 1 in 0.758s
Error: Command failed: paplay /home/matheus/.npm/_npx/7023/lib/node_modules/daledale/daledale.ogg
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

    at ChildProcess.exithandler (child_process.js:303:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'paplay /home/matheus/.npm/_npx/7023/lib/node_modules/daledale/daledale.ogg'
}

metehus avatar Sep 17 '20 21:09 metehus

Hello @metehus !

The problem isn't the package, but the audio execution in Linux. Most likely your Ubuntu does not have any audio driver or sound servers (like PulseAudio). Check this.

If you running your ubuntu in a VM, do not forget to take a look in the Audio Section in VirtualBox and verify if the driver is set correctly.

But, if you running your Ubuntu in a WSL/WSL2, you can use this tutorial to use pulseaudio in your Windows with WSL2.

onepushmain avatar Oct 06 '20 13:10 onepushmain