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?
Hi Nicholas,
Thanks for taking the time to report this bug in cloud-init!
On 09/06/15 12:34, Nicholas Van Wiggeren wrote: bazaar. launchpad. net/~cloud- init-dev/ cloud- view/head: /cloudinit/ config/ cc_apt_ configure. py#L39 that bazaar. launchpad. net/~cloud- init-dev/ cloud- view/head: /cloudinit/ config/ cc_apt_ configure. py#L113
> The way cc_apt_configure.py writes out the script to fetch GPG keys
> breaks when using Python 3.
>
> * There's a constant, http://
> init/trunk/
> contains the script.
>
> * In getkeybyid, it's written to a temporary file:
> http://
> init/trunk/
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