Project

General

Profile

Actions

Bug #2549

closed

Use and support python3

Added by Robert Haist almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

suricata-update is not ready to be used with python3.
I consider this a severe bug in 2018 :)

One example:

$ suricata-update -D /tmp/supdate enable-source et/pro
23/7/2018 -- 14:14:34 - <Warning> -- No suricata application binary found on path.
23/7/2018 -- 14:14:34 - <Info> -- Using default Suricata version of 4.0.0
The source et/pro requires a subscription. Subscribe here:
  https://www.proofpoint.com/us/threat-insight/et-pro-ruleset
Traceback (most recent call last):
  File "/tmp/supdate/env/bin/suricata-update", line 26, in <module>
    sys.exit(main.main())
  File "/tmp/supdate/env/lib/python3.5/site-packages/suricata/update/main.py", line 1372, in main
    sys.exit(_main())
  File "/tmp/supdate/env/lib/python3.5/site-packages/suricata/update/main.py", line 1149, in _main
    return args.func()
  File "/tmp/supdate/env/lib/python3.5/site-packages/suricata/update/commands/enablesource.py", line 85, in enable_source
    r = raw_input("%s (%s): " % (prompt, param))
NameError: name 'raw_input' is not defined

Related issues 1 (0 open1 closed)

Related to Suricata-Update - Bug #2550: add-source: user not being prompted if name and url left outClosedJason IshActions
Actions

Also available in: Atom PDF