title: locate lib Orca with python
body: <p>I´m trying to export the plot into a jpg file. For that, I´m using this code:</p>
  
  <pre><code>from plotly.offline import iplot, init_notebook_mode
  import plotly.graph_objs as go
  import plotly.io as pio
  import plotly
  
  import os
  import numpy as np
  
  init_notebook_mode(connected=True)
  
  N = 100
  x = np.random.rand(N)
  y = np.random.rand(N)
  colors = np.random.rand(N)
  sz = np.random.rand(N)*30
  
  fig = go.Figure()
  fig.add_scatter(x=x,
                  y=y,
                  mode='markers',
                  marker={'size': sz,
                          'color': colors,
                          'opacity': 0.6,
                          'colorscale': 'Viridis'
                         });
  iplot(fig)
  
  pio.write_image(fig, 'fig1.png')
  </code></pre>
  
  <p>The problem that I have is with ORCA. This lib can be locate but it’s installed. This is the error that I got:</p>
  
  <p>ValueError: 
  The orca executable is required in order to export figures as static images,
  but the executable that was found at '/opt/conda/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.</p>
  
  <p>If you haven't installed orca yet, you can do so using conda as follows:</p>
  
  <pre><code>$ conda install -c plotly plotly-orca
  </code></pre>
  
  <p>Alternatively, see other installation methods in the orca project README at
  <a href="https://github.com/plotly/orca" rel="nofollow noreferrer">https://github.com/plotly/orca</a>.</p>
  
  <p>After installation is complete, no further configuration should be needed. </p>
  
  <p>If you have installed orca, then for some reason plotly.py was unable to
  locate it. In this case, set the <code>plotly.io.orca.config.executable</code>
  property to the full path of your orca executable. For example:</p>
  
  <pre><code>&gt;&gt;&gt; plotly.io.orca.config.executable = '/path/to/orca'
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>&gt;&gt;&gt; plotly.io.orca.config.save() 
  </code></pre>
  
  <p>If you're still having trouble, feel free to ask for help on the forums at
  <a href="https://community.plot.ly/c/api/python" rel="nofollow noreferrer">https://community.plot.ly/c/api/python</a></p>
  
  <p>Here is the error that was returned by the command
      $ /opt/conda/bin/orca --help</p>
  
  <p>[Return code: 127]
  /opt/conda/lib/orca_app/orca: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory</p>
  
  <p>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 (<a href="https://github.com/plotly/orca" rel="nofollow noreferrer">https://github.com/plotly/orca</a>) for instructions on using
  orca with Xvfb.</p>
  
  <p>Anyone know how to fix this error?</p>