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 = dayTable.data
else:
	tableData = weekTable.data
params = {'tableData':tableData}
	
system.report.executeAndDistribute(path='historyPrint',
	project='SewingStation',
	parameters = params,
	action='print', 
	actionSettings = {'primaryPrinterName':'P1Engineer',
	'copies':1})

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.