I am trying to create and download a new SSH key using boto, as in this question, and I am using the steps outlined in this answer:
key_cass = conn.create_key_pair('cassandra_keypair')
key_cass.save('path/to/folder/'.encode('utf-8'))
In this case, it tells me that:
TypeError: Can't mix strings and bytes in path components
When I remove the explicit encoding:
key_cass.save('path/to/folder/')
I get:
TypeError: 'str' does not support the buffer interface
If it helps, I am using boto version 2.36.0 on Python 3.4.3.