Python Orca error

When i am using plotly.to_image it give me error. It is mainly because of the connection error to orca. I dont know how to solve it
Traceback (most recent call last):
File “app/Libraries/”, line 409, in
File “app/Libraries/”, line 399, in send_welcome
img_bytes = pio.to_image(fig, format=‘svg’)
File “anaconda3/lib/python3.6/site-packages/plotly/io/”, line 1294, in to_image
File “anaconda3/lib/python3.6/site-packages/plotly/io/”, line 1163, in ensure_server
File “anaconda3/lib/python3.6/site-packages/plotly/io/”, line 994, in validate_executable
raise ValueError(err_msg)
The orca executable is required in order to export figures as static images,
but the executable that was found at ‘anaconda3/bin/orca’
does not seem to be a valid plotly orca executable. Please refer to the end of
this message for details on what went wrong.

If you haven’t installed orca yet, you can do so using conda as follows:

$ conda install -c plotly plotly-orca

Alternatively, see other installation methods in the orca project README at

After installation is complete, no further configuration should be needed.

If you have installed orca, then for some reason was unable to
locate it. In this case, set the
property to the full path of your orca executable. For example:

>>> = '/path/to/orca'

After updating this executable property, try the export operation again.
If it is successful then you may want to save this configuration so that it
will be applied automatically in future sessions. You can do this as follows:


If you’re still having trouble, feel free to ask for help on the forums at

Here is the error that was returned by the command
$ anaconda3/bin/orca --help

[Return code: 1]

Note: When used on Linux, orca requires an X11 display server, but none was
detected. Please install X11, or configure your system with Xvfb. See
the orca README ( for instructions on using
orca with Xvfb.

Hi @gridiron9999,

I think this part of the error message is the key:

Are you running this on a headless linux server? If so you’ll need to use xvfb as discussed in the link above.