$ python3 mymail.py Traceback (most recent call last): File "mymail.py", line 46, in count_was = update(count_was) File "mymail.py", line 24, in update completed_process = subprocess.run(['pass', 'mail/ak'], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding=True); File "/usr/lib/python3.6/subprocess.py", line 423, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.6/subprocess.py", line 716, in __init__ encoding=encoding, errors=errors) TypeError: TextIOWrapper() argument 2 must be str or None, not bool During handling of the above exception, another exception occurred: Traceback (most recent call last): File "mymail.py", line 51, in except (errors.HttpError, ServerNotFoundError, OSError) as error: NameError: name 'errors' is not defined