ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Email Data Feed - urllib2.HTTP error


Article ID: 172979


Updated On:


Email Email Threat Detection and Response


Unable to generate log files produced by the Email Data Feed service.

The following error will be displayed when the Python script is run from command prompt: 


File "C:\NdfConfig\", line 98
  except urllib2.HTTPError, ex:
SyntaxError: invalid syntax


"" script was run using Python version 3.x

The script has a dependency on Python 2.x version. Due to changes to urllib in Python 3.x the script requires modification to run on Python 3.x.


Email Threat Detection and Response


Locate and download Python 2.x version for your environment, and ensure that your system recognizes files with the .py extension and associates them with the interpreter.