Plotly Missing Orca
I have small problem when exporting static chart using plotly. Plotly does not correctly recognize that I have orca installed and I have still error related to missing orca. I try
Solution 1:
try kaleido, it worked for me. It is an alternative to orca
conda install -c plotly python-kaleido
Solution 2:
From the plotly docs
pip install -U kaleido
Solution 3:
What worked for me on Windows with Pycharm and Python 3.6 is:
Following https://github.com/plotly/orca#installation - Method 4: Standalone binaries:
- Download windows-release.zip from https://github.com/plotly/orca/releases
- Install the executable
- Right click on the desktop newly created Orca icon to get the path where the application was installed.
From the plotly\io folder (in my case
C:\Users\ventafri\AppData\Local\Programs\Python\Python36\Lib\site-packages\plotly\io
) open_orca.py
Substitute:
# Try to find an executable
# -------------------------
# Search for executable name or path in config.executable
executable = which(config.executable)
path = os.environ.get("PATH", os.defpath)
formatted_path = path.replace(os.pathsep, "\n ")
with:
# Try to find an executable
# -------------------------
# Search for executable name or path in config.executable
executable = r"C:\Users\ventafri\AppData\Local\Programs\orca\orca.exe"
path = os.environ.get("PATH", os.defpath)
formatted_path = path.replace(os.pathsep, "\n ")
Solution 4:
#Try with installing these packages on Colab:
!pip install plotly==4.7.1
!wget https://github.com/plotly/orca/releases/download/v1.2.1/orca-1.2.1-
x86_64.AppImage -O /usr/local/bin/orca
!chmod +x /usr/local/bin/orca
!apt-get install xvfb libgtk2.0-0 libgconf-2-4
import plotly.graph_objects as go
Then generate your figure- not including code here
-Save the figure as:
fig.show()
fig.write_image("figname.png")#change format if needed
Or save the generated figure on Google drive as:
fig.show()
fig.write_image("gdrive/My Drive/destinationfolder/figname.png")
Solution 5:
Susanna's answer is probably much better, but what worked for me is to downgrade to orca 1.2.1:
conda remove plotly plotly-orca
conda install -c plotly plotly-orca==1.2.1
Post a Comment for "Plotly Missing Orca"