<div dir="ltr">I ran into this myself this week. It worked for me using Python 2. This seems to explain why that is <a href="https://stackoverflow.com/questions/21689365/python-3-typeerror-must-be-str-not-bytes-with-sys-stdout-write/21689447">https://stackoverflow.com/questions/21689365/python-3-typeerror-must-be-str-not-bytes-with-sys-stdout-write/21689447</a>.<div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 5, 2018 at 5:58 AM, Vieri <span dir="ltr"><<a href="mailto:rentorbuy@yahoo.com" target="_blank">rentorbuy@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
This command fails:<br>
<br>
~/.local/bin # ./suricata-update update-sources<br>
5/1/2018 -- 11:53:31 - <Info> -- Downloading <a href="https://www.openinfosecfoundation.org/rules/index.yaml" rel="noreferrer" target="_blank">https://www.<wbr>openinfosecfoundation.org/<wbr>rules/index.yaml</a><br>
Traceback (most recent call last):<br>
File "./suricata-update", line 26, in <module><br>
sys.exit(main.main())<br>
File "/root/.local/lib64/python3.4/<wbr>site-packages/suricata/update/<wbr>main.py", line 1445, in main<br>
sys.exit(_main())<br>
File "/root/.local/lib64/python3.4/<wbr>site-packages/suricata/update/<wbr>main.py", line 1181, in _main<br>
return args.func(config)<br>
File "/root/.local/lib64/python3.4/<wbr>site-packages/suricata/update/<wbr>commands/updatesources.py", line 48, in update_sources<br>
outobj.write(fileobj.getvalue(<wbr>))<br>
TypeError: must be str, not bytes<br>
<br>
<br>
As if it were trying to handle binary data as text?<br>
<br>
Does anyone know why?<br>
<br>
Vieri<br>
______________________________<wbr>_________________<br>
Suricata IDS Users mailing list: <a href="mailto:oisf-users@openinfosecfoundation.org">oisf-users@<wbr>openinfosecfoundation.org</a><br>
Site: <a href="http://suricata-ids.org" rel="noreferrer" target="_blank">http://suricata-ids.org</a> | Support: <a href="http://suricata-ids.org/support/" rel="noreferrer" target="_blank">http://suricata-ids.org/<wbr>support/</a><br>
List: <a href="https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users" rel="noreferrer" target="_blank">https://lists.<wbr>openinfosecfoundation.org/<wbr>mailman/listinfo/oisf-users</a><br>
<br>
Conference: <a href="https://suricon.net" rel="noreferrer" target="_blank">https://suricon.net</a><br>
Trainings: <a href="https://suricata-ids.org/training/" rel="noreferrer" target="_blank">https://suricata-ids.org/<wbr>training/</a></blockquote></div><br></div></div>