Report as inappropriate

ok so for some reason on your system its not finding gettext. Could be based on where you have it installed, or where you're running it from...
You could try commenting it out and not get the error message translated at all.
The gettext() is doing language translation and if you're ok with english maybe you don't need it.
e.g. just remove gettext.gettext( and its closing bracket ) from that line (or any line using gettext)