Skip to content

Python3 AGI: write() argument must be str, not bytes #40

@marrold

Description

@marrold

When using asterisk.agi with python 3.5, Asterisk 14 and Debian, I get the following exception

write() argument must be str, not bytes

I noticed if I replace lines 166-169:

https://github.com/rdegges/pyst2/blob/bd61a408412aef6119c750352ea2f38a71f6d596/asterisk/agi.py#L166-L169

With the following:

self.stdout.write(command)

It works fine.

Does anyone have any ideas how to fix this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions