Print Report From RPi Does Not Work With Parameter Override

I’m trying to print a report from a client running on a RPi using executeandDistribute. If I don’t supply the parameters field it runs fine, if I include it I get this error

com.inductiveautomation.ignition.client.gateway_interface.GatewayException:  com.inductiveautomation.ignition.client.gateway_interface.GatewayException:  ImportError:  No module named factorypmi
caused by GatewayException:  ImportError:  No module named factorypmi
caused by ImportError:  No module named factorypmi
dayTable = event.source.parent.getComponent('dayTable')
weekTable = event.source.parent.getComponent('weekTable')

if dayTable.visible:
	tableData =
	tableData =
params = {'tableData':tableData}'historyPrint',
	parameters = params,
	actionSettings = {'primaryPrinterName':'P1Engineer',

EDIT: v7.9.12 Java: Rasbian 11.0.3

I couldn’t get it to work by providing a dataset parameter to override the default value. I replaced it by using some queries. It works, but not quite as convenient as just overriding a dataset parameter would’ve been.