py-iMessage icon indicating copy to clipboard operation
py-iMessage copied to clipboard

subprocess.CalledProcessError: Command 'osascript -l JavaScript

Open jazzii36 opened this issue 4 years ago • 7 comments

image hey,can you help me with it ?

jazzii36 avatar Apr 12 '21 09:04 jazzii36

by the way,which version of pthon in your project? please help me~

jazzii36 avatar Apr 12 '21 09:04 jazzii36

Same problem here... thank you for help.

RiccardoPerello avatar May 12 '21 08:05 RiccardoPerello

python3, what version of macOS are you using?

Rolstenhouse avatar May 12 '21 21:05 Rolstenhouse

python3, what version of macOS are you using?

MacOS Big Sur 11.2.3

RiccardoPerello avatar May 14 '21 07:05 RiccardoPerello

anyone able to solve this issue

Tooba-sp avatar Sep 08 '22 19:09 Tooba-sp

来信已收到,谢谢。

jazzii36 avatar Sep 08 '22 19:09 jazzii36

any update? Tried Big sure, Monterey, seems like something changed in Mac API?

python 3.8.16

sending:

/Users/vlad/.local/share/virtualenvs/mac-SI5XOqcW/lib/python3.8/site-packages/py_imessage/osascript/send_message.js: execution error: Error: TypeError: messagesApp.buddies.whose is not a function. (In 'messagesApp.buddies.whose({handle:{_contains: number}})', 'messagesApp.buddies.whose' is undefined) (-2700)
>>> 

Screen Shot 2023-05-12 at 9 01 50 PM

checking compatibility:

/Users/vlad/.local/share/virtualenvs/mac-SI5XOqcW/lib/python3.8/site-packages/py_imessage/osascript/check_imessage.js: execution error: Error: Error: Invalid index. (-1719)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/vlad/.local/share/virtualenvs/mac-SI5XOqcW/lib/python3.8/site-packages/py_imessage/imessage.py", line 39, in check_compatibility
    output = subprocess.check_output(cmd, shell=True)
  File "/Users/vlad/.pyenv/versions/3.8.16/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Users/vlad/.pyenv/versions/3.8.16/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'osascript -l JavaScript /Users/vlad/.local/share/virtualenvs/mac-SI5XOqcW/lib/python3.8/site-packages/py_imessage/osascript/check_imessage.js 1234567890' returned non-zero exit status 1.

update:

Seems to be the OS version problem: https://github.com/Rolstenhouse/py-iMessage/issues/12

vlad-stack avatar May 12 '23 17:05 vlad-stack