[Oisf-users] suricata-update

Jason Ish lists at ish.cx
Fri Jan 5 15:44:56 UTC 2018


On 2018-01-05 05:58 AM, Vieri 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?

There have been a few Python 3 related fixups in the master branch since 
the release of 1.0.0a, and this looks like one of them.

If you'd like to try, you should be able to update with a command like:

pip install --upgrade 
https://github.com/OISF/suricata-update/archive/master.zip

Thanks,
Jason





More information about the Oisf-users mailing list