You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same error. Removing the if clause in lines 166-169 and replacing it with self.stdout.write(command) seams like the correct fix for me.
I had this working with Python 3.4, and TBH I don't know why those lines ever worked in the first place, because in no version of Python 3 sys.stdout.write() accepted bytes, unless you call sys.stdout.detach() first.
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
The text was updated successfully, but these errors were encountered: