question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error '/usr/bin/orca' does not seem to be a valid plotly orca executable

See original GitHub issue

New to plotly, I tried the code below and got the following error:

import plotly.io as pio
from plotly.offline import iplot, init_notebook_mode
import numpy as np
import plotly.graph_objs as go
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, 'plot.png')

I got this error

ValueError                                Traceback (most recent call last)
<ipython-input-2-f198cc1664f7> in <module>
     22 iplot(fig)
     23 
---> 24 pio.write_image(fig, 'plot.png')

~/.local/lib/python3.5/site-packages/plotly/io/_orca.py in write_image(fig, file, format, scale, width, height, validate)
   1510                         width=width,
   1511                         height=height,
-> 1512                         validate=validate)
   1513 
   1514     # Open file

~/.local/lib/python3.5/site-packages/plotly/io/_orca.py in to_image(fig, format, width, height, scale, validate)
   1292     # Make sure orca sever is running
   1293     # -------------------------------
-> 1294     ensure_server()
   1295 
   1296     # Handle defaults

~/.local/lib/python3.5/site-packages/plotly/io/_orca.py in ensure_server()
   1161     # Validate orca executable
   1162     if status.state == 'unvalidated':
-> 1163         validate_executable()
   1164 
   1165     # Acquire lock to make sure that we keep the properties of orca_state

~/.local/lib/python3.5/site-packages/plotly/io/_orca.py in validate_executable()
   1007 
   1008 {help_result}
-> 1009 """.format(executable=executable, help_result=help_result))
   1010 
   1011     # Get orca version

** I read previous issues on orca so I checked <$which orca> and <$ orca --help > and got the ff responses:** </usr/bin/orca>

/usr/lib/python3/dist-packages/pyatspi/__init__.py:17: PyGIWarning: Atspi was imported without specifying a version first. Use gi.require_version('Atspi', '2.0') before import to ensure that the right version gets loaded.
  from gi.repository import Atspi
Usage: orca [-h] [-v] [-r] [-s] [-t] [-l] [-e OPTION] [-d OPTION] [-p NAME]
            [-u DIR] [--debug-file FILE] [--debug]

Optional arguments:
  -h, --help                   Show this help message and exit
  -v, --version                3.18.2
  -r, --replace                Replace a currently running instance of this
                               screen reader
  -s, --setup                  Set up user preferences (GUI version)
  -t, --text-setup             Set up user preferences (text version)
  -l, --list-apps              Print the known running applications
  -e OPTION, --enable OPTION   Force use of option
  -d OPTION, --disable OPTION  Prevent use of option
  -p NAME, --profile NAME      Load profile
  -u DIR, --user-prefs DIR     Use alternate directory for user preferences
  --debug-file FILE            Send debug output to the specified file
  --debug                      Send debug output to debug-YYYY-MM-DD-
                               HH:MM:SS.out

Report bugs to orca-list@gnome.org.

What should I do? I want to save my plotly file without doing it manually in the browser. Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
paulmenzelcommented, Nov 11, 2021
0reactions
janxkocicommented, Nov 11, 2021

Report bugs to orca-list@gnome.org.

Last time, it was 3.18.2

This is because your orca was not from plotly, but a GNOME screen reader Orca. Pretty funky name collision (and quite avoidable by plotly, as Orca has been around for a long time).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Orca executable does not seem to be valid #1641 - GitHub
I have updated plotly to 3.10.0 in order to try producing static plots as suggested here. Something broke and I have installed Anaconda...
Read more >
Problem with Plotly-Orca to export as PDF
Hi all, I have trouble with using Plotly-Orca to export plots as PDFs and I assume ... does not seem to be a...
Read more >
Plotly orca not working after conda install
On installing plotly-orca i get the following error message: The orca executable is required in order to export figures as static images,
Read more >
Cannot find orca executable in Jupyter Notebook - Plotly Python
but the executable that was found at '/usr/bin/orca' does not seem to be a valid plotly orca executable. Please refer to the end...
Read more >
Python Orca error - Plotly Community Forum
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...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found