[Oisf-users] suricata-update

Eric Urban eurban at umn.edu
Fri Jan 5 13:57:16 UTC 2018


I ran into this myself this week.  It worked for me using Python 2.  This
seems to explain why that is
https://stackoverflow.com/questions/21689365/python-3-typeerror-must-be-str-not-bytes-with-sys-stdout-write/21689447
.


On Fri, Jan 5, 2018 at 5:58 AM, Vieri <rentorbuy at yahoo.com> wrote:

> Hi,
>
> This command fails:
>
> ~/.local/bin # ./suricata-update update-sources
> 5/1/2018 -- 11:53:31 - <Info> -- Downloading https://www.
> openinfosecfoundation.org/rules/index.yaml
> Traceback (most recent call last):
> File "./suricata-update", line 26, in <module>
> sys.exit(main.main())
> File "/root/.local/lib64/python3.4/site-packages/suricata/update/main.py",
> line 1445, in main
> sys.exit(_main())
> File "/root/.local/lib64/python3.4/site-packages/suricata/update/main.py",
> line 1181, in _main
> return args.func(config)
> File "/root/.local/lib64/python3.4/site-packages/suricata/update/commands/updatesources.py",
> line 48, in update_sources
> outobj.write(fileobj.getvalue())
> TypeError: must be str, not bytes
>
>
> As if it were trying to handle binary data as text?
>
> Does anyone know why?
>
> Vieri
> _______________________________________________
> Suricata IDS Users mailing list: oisf-users at openinfosecfoundation.org
> Site: http://suricata-ids.org | Support: http://suricata-ids.org/support/
> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-users
>
> Conference: https://suricon.net
> Trainings: https://suricata-ids.org/training/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20180105/efa8cc70/attachment-0002.html>


More information about the Oisf-users mailing list