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

subprocess.CalledProcessError: Command 'osascript -l JavaScript #11

Open
jazzii36 opened this issue Apr 12, 2021 · 7 comments
Open

subprocess.CalledProcessError: Command 'osascript -l JavaScript #11

jazzii36 opened this issue Apr 12, 2021 · 7 comments

Comments

@jazzii36
Copy link

image

hey,can you help me with it ?
@jazzii36
Copy link
Author

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

@RiccardoPerello
Copy link

RiccardoPerello commented May 12, 2021

Same problem here...
thank you for help.

@Rolstenhouse
Copy link
Owner

python3, what version of macOS are you using?

@RiccardoPerello
Copy link

python3, what version of macOS are you using?

MacOS Big Sur 11.2.3

@Tooba-sp
Copy link

Tooba-sp commented Sep 8, 2022

anyone able to solve this issue

@jazzii36
Copy link
Author

jazzii36 commented Sep 8, 2022 via email

@vlad-stack
Copy link

vlad-stack commented May 12, 2023

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: #12

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

5 participants