Попытка сохранить фигу с помощью Plotly через SSH

#ssh #plotly #plotly-python

Вопрос:

Попытка сохранить рисунок на сервере (работает на настольном ПК) через SSH.

Я подключаюсь к ssh-Y (потому что сначала он выдал несколько ошибок X11) и запускаю рабочий скрипт. Получите эту ошибку в последней строке (write_img):

 Traceback (most recent call last):
  File "radar_plot.py", line 49, in <module>
    fig.write_image("/home/astro/mpisketzis/scr/FMtorus-N_3_lambd_2_f_0_new_3D_vbmedium_0.5a/output_short1M/server_pics/Clip_Data.png")
  File "/home/astro/mpisketzis/anaconda3/lib/python3.8/site-packages/plotly/basedatatypes.py", line 3806, in write_image
    return pio.write_image(self, *args, **kwargs)
  File "/home/astro/mpisketzis/anaconda3/lib/python3.8/site-packages/plotly/io/_kaleido.py", line 245, in write_image
    img_data = to_image(
  File "/home/astro/mpisketzis/anaconda3/lib/python3.8/site-packages/plotly/io/_kaleido.py", line 103, in to_image
    return to_image_orca(
  File "/home/astro/mpisketzis/anaconda3/lib/python3.8/site-packages/plotly/io/_orca.py", line 1535, in to_image
    ensure_server()
  File "/home/astro/mpisketzis/anaconda3/lib/python3.8/site-packages/plotly/io/_orca.py", line 1390, in ensure_server
    validate_executable()
  File "/home/astro/mpisketzis/anaconda3/lib/python3.8/site-packages/plotly/io/_orca.py", line 1184, in validate_executable
    raise ValueError(err_msg)
ValueError:
The orca executable is required in order to export figures as static images,
but the executable that was found at '/home/astro/mpisketzis/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
https://github.com/plotly/orca

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

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

    >>> plotly.io.orca.config.executable = '/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:

    >>> plotly.io.orca.config.save()

If you're still having trouble, feel free to ask for help on the forums at
https://community.plot.ly/c/api/python

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

[Return code: 127]
/home/astro/mpisketzis/anaconda3/lib/orca_app/orca: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
 

Из этой строки,

 /home/astro/mpisketzis/anaconda3/lib/orca_app/orca: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
 

путь /home/astro/mpisketzis/anaconda3/lib/orca_app/orca действительно существует, так что это как-то странно

Есть какие-нибудь зацепки?

PS У меня нет прав sudo