muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.21k stars 137 forks source link

mkchromecast crash #391

Open J0nnyMak0 opened 2 years ago

J0nnyMak0 commented 2 years ago

I installed mkchromecast-git on on Arch Linux via aur. When I start mkchromecast, I get a crash:

Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Local Streaming Server
[Done]
Selected backend: parec
Selected audio codec: mp3
Default bitrate used: 192k
Default sample rate used: 44100Hz.
No devices found!
 * Serving Flask app 'mkchromecast.audio' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
PID of main process: 1135
PID of streaming process: 1137
   Use a production WSGI server instead.
 * Debug mode: off
Traceback (most recent call last):
  File "/usr/bin/mkchromecast", line 311, in <module>
    mk()
  File "/usr/bin/mkchromecast", line 59, in __init__
    self.audio_linux()
  File "/usr/bin/mkchromecast", line 78, in audio_linux
    self.cc.initialize_cast()
  File "/usr/lib/python3.10/site-packages/mkchromecast/cast.py", line 206, in initialize_cast
    remove_sink()
  File "/usr/lib/python3.10/site-packages/mkchromecast/pulseaudio.py", line 46, in remove_sink
    rms = subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pactl', 'unload-module', '']' returned non-zero exit status 1.
Niklas20114552 commented 1 week ago

Same issue still here