Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when starting #417

Open
tkalfaoglu opened this issue Jun 14, 2023 · 0 comments
Open

Crash when starting #417

tkalfaoglu opened this issue Jun 14, 2023 · 0 comments

Comments

@tkalfaoglu
Copy link

I just did a git clone,installed the prerequisites on Fedora 38.
Here is what happens:

$ bin/mkchromecast --debug
ALSA device name: None.
Google Cast name: None.
backends: ['ffmpeg', 'avconv', 'parec', 'gstreamer']
ALSA device name: None.
Google Cast name: None.
backends: ['ffmpeg', 'avconv', 'parec', 'gstreamer']
USER =turgut
PATH =/home/turgut/bin:/home/turgut/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin:/home/turgut/.composer/vendor/bin:/home/turgut/.local/bin:/home/turgut/bin
Mkchromecast v0.3.9
Creating Pulseaudio Sink...
Open Pavucontrol and Select the Mkchromecast Sink.
Starting Local Streaming Server
[Done]
:::audio::: chunk_size, frame_size, buffer_size: 64, 2048, 8192
Selected backend: parec
Selected audio codec: mp3
Default bitrate used: 192k
Default sample rate used: 44100Hz.
:::audio::: command ['lame', '-b', '192', '-r', '-']
PID of main process: 40712
PID of streaming process: 40719
/usr/lib/python3.11/site-packages/zeroconf/_services/browser.py:180: FutureWarning: <pychromecast.discovery.CastListener object at 0x7fbc842cc390> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
warnings.warn(

  • Serving Flask app 'mkchromecast.audio'
  • Debug mode: off
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
  • Running on http://192.168.1.114:5000
    Press CTRL+C to quit
    self.cclist [[0, 'Kitchen display', 'Gcast'], [1, 'Living Room speaker', 'Gcast']]
    if len(self.cclist) != 0 and self.select_device == False:

List of Devices Available in Network:

Index Types Friendly Name
===== ===== =============
0 Gcast Kitchen display
1 Gcast Living Room speaker

Casting to first device shown above!
Select devices by using the -s flag.

Kitchen display

def get_devices(self):
def play_cast(self):
The IP of Kitchen display is: 192.168.1.105
Your local IP is: 192.168.1.114

The media type string used is: audio/mpeg
Traceback (most recent call last):
File "/home/turgut/mkchromecast/bin/mkchromecast", line 311, in
mk()
File "/home/turgut/mkchromecast/bin/mkchromecast", line 59, in init
self.audio_linux()
File "/home/turgut/mkchromecast/bin/mkchromecast", line 80, in audio_linux
self.cc.play_cast()
File "/home/turgut/mkchromecast/bin/../mkchromecast/cast.py", line 394, in play_cast
media_controller.play_media(
File "/usr/local/lib/python3.11/site-packages/pychromecast/controllers/media.py", line 546, in play_media
receiver_ctrl.launch_app(self.app_id, callback_function=app_launched_callback)
File "/usr/local/lib/python3.11/site-packages/pychromecast/socket_client.py", line 1065, in launch_app
self.update_status(
File "/usr/local/lib/python3.11/site-packages/pychromecast/socket_client.py", line 1054, in update_status
self.send_message(
File "/usr/local/lib/python3.11/site-packages/pychromecast/controllers/init.py", line 90, in send_message
self.send_message_nocheck(data, inc_session_id, callback_function)
File "/usr/local/lib/python3.11/site-packages/pychromecast/controllers/init.py", line 94, in send_message_nocheck
self._message_func(self.namespace, data, inc_session_id, callback_function)
File "/usr/local/lib/python3.11/site-packages/pychromecast/socket_client.py", line 829, in send_platform_message
return self.send_message(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pychromecast/socket_client.py", line 771, in send_message
self._ensure_channel_connected(destination_id)
File "/usr/local/lib/python3.11/site-packages/pychromecast/socket_client.py", line 867, in _ensure_channel_connected
self.send_message(
File "/usr/local/lib/python3.11/site-packages/pychromecast/socket_client.py", line 821, in send_message
raise NotConnected(
pychromecast.error.NotConnected: Chromecast 192.168.1.105:8009 is connecting...
[turgut@tk-minilaptop mkchromecast]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant