Skip to content

Running on Windows Subsystem for Linux with Pulseaudio working - /!\ Cannot open audio device. #685

@ronilaukkarinen

Description

@ronilaukkarinen

Subject of the issue

Trying to run pianobar on WSL, Hyper terminal, Ubuntu 16.04. Getting it to run, but just skipping tracks with /!\ Cannot open audio device. message without any sound.

Your environment

  • 2019.02.14-dev
  • Windows 10, WSL (Ubuntu 16.04)
  • ffmpeg version 3.4.4-1~16.04.york0

config:

user = 
password = 

#control_proxy = http://98.102.88.158:8080
#control_proxy = http://208.114.192.126:8080

# https://www.us-proxy.org/
control_proxy = http://153.92.5.186:8080

fifo = /home/rolle/.config/pianobar/ctl
#audio_quality = high
#autostart_station = 829594236901097823

# http://proxylist.hidemyass.com/search-1303410#listable
# http://www.gatherproxy.com/proxylist/country/?c=United%20States

#event_command = /home/rolle/.config/pianobar/events.py

Steps to reproduce

  1. Install WSL
  2. Install all dependencies and pianobar (followed this tutorial: https://gist.github.com/paulbaker3/2886698)
  3. Configure pulseaudio for Windows https://token2shell.com/howto/x410/enabling-sound-in-wsl-ubuntu-let-it-sing/ and testing https://community.mycroft.ai/t/experimental-mycroft-on-wsl-with-pulseaudio/5464

Expected behaviour

Songs should play normally with sound without errors.

Actual behaviour

Sound works when running paplay test.wav on Terminal. It just needs export PULSE_SERVER=tcp:127.0.0.1 to be run before. However, when running pianobar, it looks like this (debug on):

rolle@Optimus:/mnt/c/Users/Optimus/pianobar$ pianobar
debug: Loaded driver null (built-in)
debug: Loaded driver wav (built-in)
debug: Loaded driver raw (built-in)
debug: Loaded driver au (built-in)
debug: Loading driver plugins from /usr/lib/x86_64-linux-gnu/ao/plugins-4...
debug: Loaded driver alsa
ERROR: Failed to load plugin /usr/lib/x86_64-linux-gnu/ao/plugins-4/libesd.so => dlopen() failed
ERROR: Failed to load plugin /usr/lib/x86_64-linux-gnu/ao/plugins-4/libnas.so => dlopen() failed
debug: Loaded driver oss
debug: Loaded driver pulse
Welcome to pianobar (2019.02.14-dev)! Press ? for a list of commands.
(i) Login... Ok.
(i) Get stations... Ok.
|>  Station "QuickMix" (829594236901097823)
(i) Receiving new playlist... Ok.
|>  "Let Me" by "Widowspeak" on "Expect the Best" @ Shoegaze Radio
debug: Testing drivers to find playback default...
/!\ Cannot open audio device.
|>  "Rapture At Sea" by "Eastern Sun" on "Groove Closet" @ Know Where Radio
debug: Testing drivers to find playback default...
/!\ Cannot open audio device.
|>  "Love Is Here To Stay (1959)" by "Oscar Peterson" on "Oscar Peterson Plays The George Gershwin Song Book" @ Jazz Instrumentals Radio
/!\ Unable to open audio file (Immediate exit requested)
|>  "If You Can't Help Your Own" by "Hank Williams III" on "Damn Right, Rebel Proud (Explicit)" @ Hank Williams III Radio
/!\ Unable to open audio file (Immediate exit requested)
rolle@Optimus:/mnt/c/Users/Optimus/pianobar$ ^C

/etc/libao.conf:

rolle@Optimus:/mnt/c/Users/Optimus/pianobar$ sudo cat /etc/libao.conf
default_driver=pulse
dev=default
debug=1
server=127.0.0.1
#quiet

Alsa is currently not functional on WSL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions