Closed taylorkline closed 9 years ago
FileNotFoundError
is a Python 3 exception which does not exist in Python 2. So my guess is that you are trying to run Promptastic with Python 2.
Can you make sure that your file promptastic.py
starts with #!/usr/bin/env python3
?
Btw I am planning to update Promptastic soon and make it compatible with both Python 2 and 3.
I definitely have Python 3 installed and the shebang is there:
https://github.com/jkdf2/dotfiles/blob/master/bash/promptastic/promptastic.py
After reading this: http://stackoverflow.com/questions/15032108/pythons-open-throws-different-errors-for-file-not-found-how-to-handle-b
I changed FileNotFoundError to OSError. All seems to be working now.
I am suddenly getthing this error whenever I am not in a directory of a git repo:
I don't think I changed anything...