Code Monkey home page Code Monkey logo

cmus-osx's People

Contributors

azadkuh avatar dmlemos avatar philiptrauner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmus-osx's Issues

ERROR: Command errored out with exit status 1:

ERROR: Command errored out with exit status 1:
command: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/setup.py'"'"'; file='"'"'/private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-record-m7pp8q0t/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pyobjc-core
cwd: /private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/
Complete output (188 lines):
running install
running build
running build_py
Overriding build_packages to copy PyObjCTest
creating build
creating build/lib.macosx-10.15-x86_64-3.9
creating build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_bridges.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_protocols.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_sequence.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsset.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_pycoder.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_lazyimport.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsstring.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_framework.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsdecimal.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_properties.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/init.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_callable_docstr.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_context.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_locking.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_descriptors.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_bridgesupport.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsdictionary.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_pythonify.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsarray.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsobject.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_category.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_compat.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_mapping.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_dyld.py -> build/lib.macosx-10.15-x86_64-3.9/objc
copying Lib/objc/_convenience_nsdata.py -> build/lib.macosx-10.15-x86_64-3.9/objc
creating build/lib.macosx-10.15-x86_64-3.9/PyObjCTools
copying Lib/PyObjCTools/Signals.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTools
copying Lib/PyObjCTools/TestSupport.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTools
copying Lib/PyObjCTools/init.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTools
copying Lib/PyObjCTools/KeyValueCoding.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTools
copying Lib/PyObjCTools/MachSignals.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTools
creating build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_voidpointer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_specialtypecodes_unichar.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test2_filepointer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_fsref.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_methodedits.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_bundleFunctions.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_specialtypecodes_struct.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_dict_proxy.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_callbacks.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_unicode.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_weakref.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_testsupport.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_protocol.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_methods.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_objcpointer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_inspect_signatures.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_archiving_interop.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_dyld.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_copying.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_nsdate_proxy.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_metadata_inheritance.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_assocations.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_classandinst.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_archiving_secure_interop.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_splitsig.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_pickling_objc.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_pickle.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_clinmeth.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test3_filepointer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_bridges.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_convenience.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_metadata_function.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_version_support.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_bundleVariables.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test3_dict_interface.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_list_proxy.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_blocks.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_array_interface.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_allocatebuffer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_deprecations.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_synthesize.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_propertiesforclass.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_specialtypecodes_charbyte.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_varargs.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_usekvo.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_metadata.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_exceptions.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_hidden_selector.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/init.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_bridgesupport.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_keyvalue.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_specialtypecodes_nsbool.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_subclass.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test2_dict_interface.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_nsdecimal.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_pointer_compat.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_set_interface.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_NULL.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_protocolNamed.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_signatures.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_classhooks.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_conversion.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_python_method.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_arrays.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_metadata_py2py.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_set_property.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_methods2.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_methres.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/fnd.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_initialized.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_method_prototypes.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_specialtypecodes_charint.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/loader.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_keyvaluecoding.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_metadata_py.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_default_selector.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_objc.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_structs.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test3_protocol.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_corefoundation.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_identity.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_compat.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_imp.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test3_typecheck.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_regr.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_nsdata.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_outputinitializer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_set_proxy.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_locking.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/helper_bridgesupport.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_archive_python.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_array_property.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_object_property.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_context.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_structpointer.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_lazy_import.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/dejagnu.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_number_proxy.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_dict_property.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_methodlookup.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_ivar.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_descriptors.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_protected.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_callable_docstr.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_framework.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_ctests.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test2_dictviews.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/keyvaluehelper.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_sockaddr.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_keyvalue_prop.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_constants.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_posing.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_bridged_classes.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_metadata_imp.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_methodaccess.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_opaque.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_leaks.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
copying PyObjCTest/test_specialtypecodes_methdef.py -> build/lib.macosx-10.15-x86_64-3.9/PyObjCTest
running build_ext
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/setup.py", line 695, in
setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
self.run_command('build')
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/setup.py", line 598, in run
CFLAGS.append("-DPyObjC_BUILD_RELEASE=%02d%02d"%( tuple(map(int, get_sdk_level(self.sdk_root).split('.')))))
ValueError: invalid literal for int() with base 10: ''
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/setup.py'"'"'; file='"'"'/private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-install-x5jj3r11/pyobjc-core/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/15/nx167sj57sb9qxtpmsx_69780000gn/T/pip-record-m7pp8q0t/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/pyobjc-core Check the logs for full command output.

Notifications not working after installing pyenv

Hi there!

I love this utility. Works perfect. Yesterday I installed pyenv in order to run some packages with Python 3.5.2. cmus-osx media keys function is still working great but the notifications stopped showing up. I've made sure python 2.7.11 is the one being globally used when I execute cmus-osx.py, but it isn't working.

I'm a newbie programmer, so any idea on how could I make the notifications work again? Or how could I debug it?

Thanks.

NSNotificationCenter.defaultNotificationCenter returns None

i get this funny little error when i run install.py. traced it back to NSNotificationCenter.defaultNotificationCenter returning None instead of, you know.

Traceback (most recent call last):
  File "/Users/eris/.config/cmus/cmus-osx/notify.py", line 146, in <module>
    center.removeAllDeliveredNotifications()
AttributeError: 'NoneType' object has no attribute 'removeAllDeliveredNotifications'

media keys functionality works fine.

  • python 3.5.1
  • pyenv 1.1.0
  • macos 10.12.5

Cannot change iTunes permissions

Hi,
I recently upgraded my Mac to use Mojave and cmus-osx didn't seem to be working, so I uninstalled and reinstalled it. However I get the following error msg:

╰─$ sudo ./setup.py install
Password:
cmus config directory: '/Users/jiqbal/.config/cmus/'
Disabling iTunes. Uninstall to re-enable!
chmod: Unable to change file mode on /Applications/iTunes.app/Contents/MacOS/iTunes: Operation not permitted
Installed. To enable notifications execute
set status_display_program=/Users/jiqbal/.config/cmus/cmus-osx/notify.py
in cmus.

I did some googling, but couldn't find any solution for this. The next and previous media keys work fine, but pressing pause|play opens up itunes.

Oh, forgot to add, I have looked at #11 and added
export PYTHON_CONFIGURE_OPTS="--enable-framework"
to my .zshrc
Also am using pyenv 1.2.8 and Python 3.6.5

HOME variable is expanding again

Since the last release, home variable is expanding again, both in the rc and autosave files, as well as the scripts.

I would honestly prefer to not have hard-coded paths to maintain portability of the configuration.

Is it possible to revert back to call the python scripts directly in the cmus config files? ala shell ~/.cmus/cmus-osx/media-keys.py &

I don't mind doing a PR for this. Already made some changes to it.

Dependencies installation failed

I tried building on macOS 10.14.2 and Python 3.7.2. When running pip3 install -r requirements.txt I get this error:

    Modules/_AppKit_inlines.m:9:3: error: "Install Xcode 8.1"
    # error "Install Xcode 8.1"
      ^
    1 error generated.
    error: command 'clang' failed with exit status 1

    ----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/39/
pgr2dqt5657bd0fny8ydpsm00000gn/T/pip-install-5x41j4mu/pyobjc-framework-Cocoa/setup.py';f=getattr(tokenize, 'open',
 open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --re
cord /private/var/folders/39/pgr2dqt5657bd0fny8ydpsm00000gn/T/pip-record-3aym7t0v/install-record.txt --single-vers
ion-externally-managed --compile" failed with error code 1 in /private/var/folders/39/pgr2dqt5657bd0fny8ydpsm00000
gn/T/pip-install-5x41j4mu/pyobjc-framework-Cocoa/

My XCode CLI tools are installed, and is at version 10.1.

Any help would be greatly appreciated.

Thanks!

Broken on current --HEAD

The setup script worked with the release when you use brew install cmus, however that version of cmus is broken with .aac/.m4a/.alac playback

I had to install cmus again via

version 2.0 roadmap

this is an open discussion about the future release of cmus-osx due to new design mostly done by @PhilipTrauner.

there are some missing features or issues in current master branch in comparison to the older releases (i.e. v1.2):

  • the filename /tmp/notify.log is so global: use a more specific file name (to help name clashing with other logs)

  • the notification badge on Notification center does not show the cover / album art:

screen shot 1395-10-19 at 18 28 06

  • the current status of cmus (playing, paused, ...) is missed. imho it's nice to include them

  • automatic installation of cmus-osx/notify.py in ~/.config/cmus/autosave by setup.py

  • when streaming from internet, no notification is created.

  • we are programmer, we may need a graphic designer to make a good looking logo/icon! ;-)

Error during installation

pip3 install cmus-osx
Collecting cmus-osx
  Downloading cmus_osx-3.0.6-py3-none-any.whl (12 kB)
Collecting Pillow<9.0,>=8.0 (from cmus-osx)
  Downloading Pillow-8.4.0.tar.gz (49.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.4/49.4 MB 9.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting click<8.0,>=7.0 (from cmus-osx)
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 2.7 MB/s eta 0:00:00
Requirement already satisfied: mutagen<2.0,>=1.42 in /usr/local/lib/python3.11/site-packages (from cmus-osx) (1.47.0)
Collecting pyobjc<7.0,>=6.2 (from cmus-osx)
  Downloading pyobjc-6.2.2-py3-none-any.whl (2.9 kB)
Collecting pyobjc-core==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc-core-6.2.2.tar.gz (780 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 780.3/780.3 kB 6.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pyobjc-framework-AddressBook==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc_framework_AddressBook-6.2.2-cp36-abi3-macosx_10_9_x86_64.whl (11 kB)
Collecting pyobjc-framework-AppleScriptKit==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc_framework_AppleScriptKit-6.2.2-py2.py3-none-any.whl (3.8 kB)
Collecting pyobjc-framework-ApplicationServices==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc_framework_ApplicationServices-6.2.2-py2.py3-none-any.whl (20 kB)
Collecting pyobjc-framework-Automator==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc_framework_Automator-6.2.2-py2.py3-none-any.whl (4.9 kB)
Collecting pyobjc-framework-CFNetwork==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc_framework_CFNetwork-6.2.2-cp36-abi3-macosx_10_9_x86_64.whl (13 kB)
Collecting pyobjc-framework-Cocoa==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Downloading pyobjc-framework-Cocoa-6.2.2.tar.gz (3.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 7.0 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/pg/dddg79tj6yjczvtrt8t7ypnm0000gn/T/pip-install-z_affq5y/pyobjc-framework-cocoa_e4152d7098b2438aa2607e42d130d69f/setup.py", line 23, in <module>
          Extension(
        File "/private/var/folders/pg/dddg79tj6yjczvtrt8t7ypnm0000gn/T/pip-install-z_affq5y/pyobjc-framework-cocoa_e4152d7098b2438aa2607e42d130d69f/pyobjc_setup.py", line 436, in Extension
          % (tuple(map(int, os.path.basename(data)[6:-4].split("."))))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ValueError: invalid literal for int() with base 10: ''
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Looks like a problem in installation, am not good enough to diagnose.
I am on macOS Sonoma, on a Macbook Air Intel 2020.
If somebody could at least take a look, thank you very much.

Any plan to support other filetype?

I have a bunch of m4a files in my library.
cmus-osx works perfectly, but album cover doesn't displayed.
Is there any plan to support other filetype?

Cmus-osx dependency issue

Seems like there is a issue with the "pyobjc-framework-AddressBook==6.2.2" package

pip install cmus-osx

Collecting cmus-osx
  Using cached cmus_osx-3.0.6-py3-none-any.whl (12 kB)
Collecting Pillow<9.0,>=8.0 (from cmus-osx)
  Using cached Pillow-8.4.0.tar.gz (49.4 MB)
  Preparing metadata (setup.py) ... done
Collecting click<8.0,>=7.0 (from cmus-osx)
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting mutagen<2.0,>=1.42 (from cmus-osx)
  Using cached mutagen-1.46.0-py3-none-any.whl (193 kB)
Collecting pyobjc<7.0,>=6.2 (from cmus-osx)
  Using cached pyobjc-6.2.2-py3-none-any.whl (2.9 kB)
Collecting pyobjc-core==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc-core-6.2.2.tar.gz (780 kB)
  Preparing metadata (setup.py) ... done
Collecting pyobjc-framework-AddressBook==6.2.2 (from pyobjc<7.0,>=6.2->cmus-osx)
  Using cached pyobjc-framework-AddressBook-6.2.2.tar.gz (76 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/cc/_ql001f16s5ghysj8_r503jc0000gn/T/pip-install-av5m88pj/pyobjc-framework-addressbook_631427901e1b4e298635708febebebe5/setup.py", line 23, in <module>
          Extension(
        File "/private/var/folders/cc/_ql001f16s5ghysj8_r503jc0000gn/T/pip-install-av5m88pj/pyobjc-framework-addressbook_631427901e1b4e298635708febebebe5/pyobjc_setup.py", line 441, in Extension
          "-DPyObjC_BUILD_RELEASE=%02d%02d" % (tuple(map(int, os_level.split("."))))
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      TypeError: not enough arguments for format string
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

notify.py not working

so, how exactly should notification work?
should cmus it do it by itself?
i tried to run it manually and i'm getting invalid arguments message...

Itunes start automatically

When pressing the play button, iTunes opens automatically. Is it possible to prevent this?
I know i can disable that feature for iTunes but if i use something like mpsyt it works just fine (without opening iTunes)

media keys not working

I installed it. Notifications are working, but media keys not. iTunes is not staring anymore, which is nice :), but cmus is also doing nothing. Do I miss something?

  • running macOS Sierra 10.12.6
  • pyenv and python3 installed with brew

option to configure notifications

Is there an option to configure how cmus notifications work? Popup notifications on every track change is too distracting to me and I would like to disable it. I am fine with keeping just the Notifcation Center info about the currently playing track, tucked away and ready to invoke when needed.

I was able to stop the track change popups by going to Mac OS's "System Preferences" -> "Notifications" -> "Python" -> None (may not be these exact words, my Mac OS is not in English). But this is inelegant as it will affect all other Python scripts.

I found a mention to a "notification mode" in an old repo of cmus-osx, but maybe this got lost with refactoring over time: https://github.com/z3t0/cmus-osx/blob/master/under-the-hood.md#configs

Media keys work; but action immediately reveresed

When using the media keys both on the my Mac and an external keyboard, they register but the action is immediately reversed. So if I press play I hear the music playing for a fraction of a second then stops. And if I press pause the music stops for a fraction of a second and plays again.

In both cases notifications are triggered.

Playing an album from flac+cue files breaks notifications

The error is because the file is trying to reach is not found:

ERROR:root:Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/mutagen/_util.py", line 235, in _openfile
    fileobj = open(filename, "rb+" if writable else "rb")
FileNotFoundError: [Errno 2] No such file or directory: "cue:///Users/yyy/Music/08 A Collection Of Beatles Oldies (UK Mono)/The Beatles - A Collection Of Beatles Oldies (UK Mono).cue/8"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/yyy/.cmus/cmus-osx/notify.py", line 97, in <module>
    file = File(status["file"])
  File "/usr/local/lib/python3.7/site-packages/mutagen/_util.py", line 147, in wrapper_func
    writable, create) as h:
  File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.7/site-packages/mutagen/_util.py", line 256, in _openfile
    raise MutagenError(e)
mutagen.MutagenError: [Errno 2] No such file or directory: "cue:///Users/yyy/Music/08 A Collection Of Beatles Oldies (UK Mono)/The Beatles - A Collection Of Beatles Oldies (UK Mono).cue/8"

It doesn't happen when playing flac files by themselves.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.