Running python scripts with @pvieito's PythonKit , but hit this error:
PythonKit/Python.swift:598: Fatal error: 'try!' expression unexpectedly raised an error: Python exception: [Errno 2] No such file or directory: 'astris'
Traceback:
File "/Users/weinamao/Documents/ShowCase/ShowCase/APAHandler.py", line 14, in APAHandler
result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/AppleInternal/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/AppleInternal/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/AppleInternal/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
I won't get such error if I run in a normal python3 environment. Any thoughts on this?