On prettytable version 3.12.0 I get a warning:
DeprecationWarning: the 'ALL' constant is deprecated, use the 'HRuleStyle' and 'VRuleStyle' enums instead from prettytable import PrettyTable, ALL
Corrected it as follows:
table.hrules = True