Write_image() got an unexpected keyword argument 'engine'

Hi,

Iā€™m trying to use pio.write_image to export an image of a figure. When I do this on my personal computer using the following it works:

pio.write_image(fig, ā€˜images/figā€™ + str(fig_num) + ā€˜.pngā€™, engine=ā€œkaleidoā€)

But when I try it on my work computer I get the following error:

write_image() got an unexpected keyword argument ā€˜engineā€™

On both my work and personal computers Iā€™m using Plotly 4.6. Does anyone know whatā€™s wrong? I canā€™t use orca because I get the following error:

The plotly.io.orca.config.use_xvfb property is set to True, but the
xvfb-run executable could not be found on the system path.

Yet xvfb is installed. On my personal computer I am able to specify an engine but for some reason I canā€™t pass that to write_image at work.