Trying to get EPG (ATSC with zap2xml) working with TVheadend

I got everything working with TVheadend but I can’t for the life of me get the EPG to work. I tried to install zap2xml using the python and perl scripts and I get errors like this:

File “”, line 7

SyntaxError: invalid syntax

osmc@osmc:~/Downloads$ perl
Bareword found where operator expected at line 1, near “zap2xml”

Finally I tried installing the addon via edit4ever’s github and I can’t find “tv_grab_zap2xml” in my internal grabber settings via the TVheadend web gui nor are addon settings in Kodi to configure the directory.