Hi @ShooterBoyX,
I’m not very familiar with PyInstaller, but here are some general things to look at.
By default, plotly.py is looking for an executable name orca
on the system PATH
. The error message you mentioned above should have printed out the current directories in the PATH
, but if not you can examine these paths by looking at the output of:
import os
os.environ['PATH']
Can you confirm that this list of paths does not include the directory where you placed the orca executable?
One option is to manually add your orca directory to this path at program startup.
os.environ['PATH'] = os.pathsep.join([os.environ['PATH'], '/path/to/pyinstalled/orca/'])
(Note: '/path/to/pyinstalled/orca_dir/'
should be the directory containing the orca.exe
file, and you might need to flip the slash direction on windows)
Another option is the tell plotly.py exactly where to find orca with:
import plotly.io as pio
pio.orca.config.executable = '/path/to/pyinstalled/orca/orca.exe'
See https://plot.ly/python/orca-management/#configuring-the-executable for more information.
Hope that helps!
-Jon