Don't work after update to 10.9
truetug opened this issue · comments
No notifications, no exceptions
In [1]: from pync import Notifier
In [2]: Notifier.notify('Hello World')
In [3]: Notifier.notify('Hello World', execute='say "OMG"')
In [4]: Notifier.list(os.getpid())
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Users/tug/Work/playground/Python/env/lib/python2.7/site-packages/django/core/management/commands/shell.pyc in <module>()
----> 1 Notifier.list(os.getpid())
/Users/tug/Work/playground/Python/env/lib/python2.7/site-packages/pync/TerminalNotifier.pyc in list(self, group)
99 If no information is available this will return [].
100 """
--> 101 output = self.execute(["-list", group]).communicate()[0]
102 res = list()
103 for line in output.splitlines()[1:]:
/Users/tug/Work/playground/Python/env/lib/python2.7/site-packages/pync/TerminalNotifier.pyc in execute(self, verbose)
75
76 def execute(self, verbose):
---> 77 output = subprocess.Popen([self.bin_path,] + verbose, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
78 if output.returncode:
79 raise Exception("Some error during subprocess call.")
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
709 p2cread, p2cwrite,
710 c2pread, c2pwrite,
--> 711 errread, errwrite)
712 except Exception:
713 # Preserve original exception in case os.close raises.
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
1306 raise
1307 child_exception = pickle.loads(data)
-> 1308 raise child_exception
1309
1310
TypeError: execv() arg 2 must contain only strings
Works fine with pync-2.0.2 and macOS 10.13.4