Comments (17)
If you are interested in the systray, pass the -t
option: python mkchromecast.py -t
.
from mkchromecast.
I may have fixed it here da8d1f4. But as I was working in the sonos
branch I commited there, and the change is not still there in devel
or master
. Sorry about that!. I will try to merge sonos
back to devel
maybe later this week.
from mkchromecast.
Wanted to check in on this -- is in dev
or master
? After a few days of play, I get six different null outputs
in my sound prefs, making it hard to figure out which one is live. Appreciate it.
from mkchromecast.
It is in the sonos
branch if you want to test the fix. Thank you!.
from mkchromecast.
It looks like the sonos
branch is only available on OSX
. I'm running Linux
:
sudo python3 setup.py install
warning: no directories found matching 'doc/_static'
warning: no directories found matching 'doc/_templates'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dSYM' found anywhere in distribution
warning: no previously-included files matching '*.dSYM/*' found anywhere in distribution
warning: no previously-included files matching '*__pycache__*' found anywhere in distribution
no previously-included directories found matching 'examples/*/build'
no previously-included directories found matching 'examples/*/dist'
no previously-included directories found matching 'examples/*/*/build'
no previously-included directories found matching 'examples/*/*/dist'
no previously-included directories found matching 'examples/*/*/*/build'
no previously-included directories found matching 'examples/*/*/*/dist'
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 161, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 147, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/easy_install-zl3mnmi1/py2app-0.12/setup.py", line 686, in run
distutils.errors.DistutilsPlatformError: This distribution is only supported on MacOSX
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 243, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 273, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 242, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-zl3mnmi1/py2app-0.12/setup.py", line 789, in <module>
File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: This distribution is only supported on MacOSX
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1087, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 246, in run_setup
raise
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 243, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 273, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 242, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-zl3mnmi1/py2app-0.12/setup.py", line 789, in <module>
File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
raise SystemExit("error: " + str(msg))
SystemExit: error: This distribution is only supported on MacOSX
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 73, in <module>
setup_requires=['py2app'],
File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 269, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1092, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1104, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 663, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 693, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 873, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1101, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1089, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: This distribution is only supported on MacOSX
from mkchromecast.
The setup.py
is only there for macOs, that's true. But you can just execute python mkchromecast.py
from the cloned repository. I should fix the setup.py
file.
from mkchromecast.
Oops. Got it! Was using setup.py
.
from mkchromecast.
Oops. Got it! Was using setup.py.
There are many things I still have to fix :) sorry about that!. Hope that this change fixes the issue.
from mkchromecast.
Unfortunately, when running sonos
using python mkchromecast.py
, it does not appear to fix the null output
issue. Running it in terminal
does not start the applet, should it?
from mkchromecast.
The change introduced will not create another sink if there is already one named mkchromecast
. If this is not working, then something a bit more aggressive should be done (pulseaudio -k
see this). But not sure if that is going to be very welcomed.
from mkchromecast.
Let me restart and see what happens. There is no sink named mkchromecast
, but that may be residual nulls.
from mkchromecast.
Let me restart and see what happens. There is no sink named mkchromecast, but that may be residual nulls.
Yes, that may help to sort this out. On my case, if I kill the application suddenly (using kill -9 processnumber
), no new sinks are created although sometimes the only one working after I restart mkchromecast takes the Null Output
name. But that is better than having many of them.
from mkchromecast.
I restarted and switched sinks. Looks like it is working. I'm not sure why, but sometimes it shows up as mkchromecast
and sometimes null output
-- sometimes simultaneously (see picture below). In Sound
and pavucontrol
it seems to usually have mkchromecast
. Using sound switcher indicator
it seems to usually show null output
, regardless of the others.
from mkchromecast.
Thank you. It is exactly the same that happens for me. I will keep using it to see if that can also be improved. Thanks for reporting back!.
from mkchromecast.
Are you still having the issue of multiple sinks or only one sink but having sometimes the Null
name?.
from mkchromecast.
Sorry man. I couldn't get the delay down short enough so I stopped using it. If I recall correctly, you had fixed that issue in one of the builds.
I should note that I tried to install mkchromecast
on a few temporary Linux USBs and was unable to. There is no install on the main repositories and even the deb didn't work for want of a number of dependencies (not the list of ones you have on the main site, additional ones).
from mkchromecast.
Thanks for replying. I really don't remember at what point it was fixed, but I will try again later to solve this issue. I will proceed to close this report.
from mkchromecast.
Related Issues (20)
- Allowing port 5000 on UFW is not enough to communicate with SONOS HOT 1
- module 'pychromecast' has no attribute 'get_chromecasts_as_dict'.
- Can't find my Sonos
- can you please add PCM/WAVE support, and set as preferred streaming method? HOT 3
- Trying to install soco for Sonos and it does not work HOT 2
- Refactor mkchromecast to make `__init__.py` minimal and avoid `import __init__`
- Deprecate youtube-dl for yt-dlp HOT 2
- Add encapsulation, reduce code duplication, and simplify cascading logic
- Does not play any audio on google speakers HOT 1
- sys tray disappears after searching for devices
- TypeError: Descriptors cannot not be created directly. HOT 2
- Using --video crashes the app HOT 2
- archlinux mkchromecast-git package targets unstable `master` branch HOT 5
- Error with start HOT 2
- Support for playlists
- Restore ability to use updated settings without restarting mkchromecast HOT 1
- How is it possible to transmit the volume, pause and resume via command line?
- `-n` fails to find Chromecast when TV is powered off
- Crash when I try to connect to a pair of Sonos One SL HOT 1
- Installing mkchromecast with brew HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkchromecast.