0

I am using pyaudio but I got some error

import pyaudio
 p = pyaudio.PyAudio()

This is my error

shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

shared memfd open() failed: Function not implemented
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

Any help please

Ujjwal Dash
  • 767
  • 1
  • 4
  • 8
  • I've got the exact same error message on my odroid u3 with ubuntu 18.04 trying to use vlc: `shared memfd open() failed: Function not implemented` – mschoenebeck Aug 22 '20 at 00:32

1 Answers1

0

You are using a headless linux-subsystem, which doesn't provide a connection to a PulseAudio server by default. (That's why you get this connection error.)

You have to setup a connection yourself (via tcp for example). This is discussed here and here.

user1511417
  • 1,880
  • 3
  • 20
  • 41