pythonxvfb

Where do I add option " {"xvfb": ""}." for xvfb?


I have installed a Python library called eml2png. This library has a dependency on "wkhtmltopdf" which I have also installed. When I try making a call, I get the following error:

You need to install xvfb(sudo apt-get install xvfb, yum install xorg-x11-server-Xvfb, etc), then add option: {"xvfb": ""}.

I have installed this library, but I have no idea where I add the option {"xvfb": ""}. Can someone please explain this?

Thanks


Solution

  • After a quick look at the source (https://github.com/poipoii/eml2png/blob/master/src/eml2png/eml2png.py) I suggest trying:

    eml2png.to_png('message.eml', options={"xvfb": "", "format": "png"})