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

osascript 2020.12.3 and python 3.6.9 #9

Open
mlliarm opened this issue Nov 25, 2021 · 0 comments
Open

osascript 2020.12.3 and python 3.6.9 #9

mlliarm opened this issue Nov 25, 2021 · 0 comments

Comments

@mlliarm
Copy link

mlliarm commented Nov 25, 2021

Hello,

Thanks for creating this, it looks like a cool project.

I tried running the example command that you have on your README.md from inside a virtualenv that had a python 3.6.9 (I know it's pretty old) and got the following stacktrace:

Python 3.6.9 (default, Jan 26 2021, 15:33:00) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import osascript as osa
>>> code, out, err = osa.run('display dialog "42"')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/milia/.venvs/osx/lib/python3.6/site-packages/osascript/__init__.py", line 24, in run
    r = runcmd.run(cmd, background=background)
  File "/home/milia/.venvs/osx/lib/python3.6/site-packages/runcmd/__init__.py", line 150, in run
    return Command().run(args, cwd=cwd, background=background)
  File "/home/milia/.venvs/osx/lib/python3.6/site-packages/runcmd/__init__.py", line 142, in run
    process = subprocess.Popen(args, **kwargs)
  File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'osascript': 'osascript'

Version of osascript I'm running

(osx) milia@Newton:~$ pip list |grep osascript
osascript        2020.12.3

Friendly request:

  • Can you please let me know if I'm doing something wrong?
  • Is your library osascript (version 2020.12.3) backwards compatible with older versions of python3?
  • If yes, and you don't need any additional info from me, could you look into this when possible?

Thank you in advance !

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

1 participant