Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

While your code was valid, open('~/.ssh/id_rsa.pub'...) won't work on any Python other interpreter, you need to expand ~ from the path. For example you can use:

  open(os.path.expanduser('~/.ssh/id_rsa.pub'), 'r')


Does this line not cause the above stacktrace?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: