Comment 1 for bug 1463373

Revision history for this message
Dan Watkins (oddbloke) wrote : Re: [Bug 1463373] [NEW] cc_apt_configure does not work with python3

Hi Nicholas,

Thanks for taking the time to report this bug in cloud-init!

On 09/06/15 12:34, Nicholas Van Wiggeren wrote:
> The way cc_apt_configure.py writes out the script to fetch GPG keys
> breaks when using Python 3.
>
> * There's a constant, http://bazaar.launchpad.net/~cloud-init-dev/cloud-
> init/trunk/view/head:/cloudinit/config/cc_apt_configure.py#L39 that
> contains the script.
>
> * In getkeybyid, it's written to a temporary file:
> http://bazaar.launchpad.net/~cloud-init-dev/cloud-
> init/trunk/view/head:/cloudinit/config/cc_apt_configure.py#L113

Thanks for the breakdown, that's really helpful.

> Python 3 throws an exception: 'str' does not support the buffer
> interface when doing the write.

Could you paste the full traceback you hit, if you can get one easily?

Thanks,

Dan