Hi All,
have you been able to solve this issue ?
I’m on windows with a firewall ( within a company that’s why i need full offline)
when using
!orca graph “{ “data”: [{“y”: [1,2,60]}] }” -o fig.png
on a command window it works though.
Could there be a way around this problem by using the command window method within a .py file ?
Thanks so much !
ValueError Traceback (most recent call last)
in
1 import plotly.io as pio
2 pio.orca.config
----> 3 pio.write_image(fig, ‘images/fig1.png’)
C:\ProgramData\Anaconda3\lib\site-packages\plotly\io_orca.py in write_image(fig, file, format, scale, width, height, validate)
1703 # Do this first so we don’t create a file if image conversion fails
1704 img_data = to_image(
-> 1705 fig, format=format, scale=scale, width=width, height=height, validate=validate
1706 )
1707
C:\ProgramData\Anaconda3\lib\site-packages\plotly\io_orca.py in to_image(fig, format, width, height, scale, validate)
1480 # Make sure orca sever is running
1481 # -------------------------------
-> 1482 ensure_server()
1483
1484 # Handle defaults
C:\ProgramData\Anaconda3\lib\site-packages\plotly\io_orca.py in ensure_server()
1342 # Validate orca executable
1343 if status.state == “unvalidated”:
-> 1344 validate_executable()
1345
1346 # Acquire lock to make sure that we keep the properties of orca_state
C:\ProgramData\Anaconda3\lib\site-packages\plotly\io_orca.py in validate_executable()
1041 executable=config.executable,
1042 formatted_path=formatted_path,
-> 1043 instructions=install_location_instructions,
1044 )
1045 )
ValueError:
The orca executable is required to export figures as static images,
but it could not be found on the system path.
Searched for executable ‘C:\ProgramData\Anaconda3\orca_app’ on the following path:
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Library\mingw-w64\bin
C:\ProgramData\Anaconda3\Library\usr\bin
C:\ProgramData\Anaconda3\Library\bin
C:\ProgramData\Anaconda3\Scripts
C:\ProgramData\Anaconda3\bin
C:\ProgramData\Anaconda3\condabin
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Library\mingw-w64\bin
C:\ProgramData\Anaconda3\Library\usr\bin
C:\ProgramData\Anaconda3\Library\bin
C:\ProgramData\Anaconda3\Scripts
C:\windows\System32
C:\windows
C:\windows\System32\Wbem
C:\ProgramData\Oracle\Java\javapath
C:\progra~1\sybase\DBISQL\bin
C:\progra~1\sybase\DataAccess64\ADONET\dll
C:\progra~1\sybase\DataAccess\ADONET\dll
C:\progra~1\sybase\DataAccess64\ODBC\dll
C:\progra~1\sybase\DataAccess\ODBC\dll
C:\progra~1\sybase\DataAccess64\OLEDB\dll
C:\progra~1\sybase\DataAccess\OLEDB\dll
C:\progra~1\sybase\OCS-15_0\lib3p64
C:\progra~1\sybase\OCS-15_0\lib3p
C:\progra~1\sybase\OCS-15_0\dll
C:\progra~1\sybase\OCS-15_0\bin
C:\windows\System32\WindowsPowerShell\v1.0
c:\programdata\IPGM\OraPGM64\Oracle\Client11gR2\bin
c:\programdata\IPGM\OraPGM32\Oracle\Client11gR2\bin
C:\PROGRA~1\IBM\SQLLIB\BIN
C:\PROGRA~1\IBM\SQLLIB\FUNCTION
C:\Program Files (x86)\SafeCom\SafeComPrintClient
C:\Program Files (x86)\Enterprise Vault\EVClient
C:\Program Files\MiKTeX 2.9\miktex\bin\x64
C:\windows\System32\WindowsPowerShell\v1.0
C:\Users\P885880\ml
C:\Users\P885880\AppData\Local\Continuum\anaconda3
C:\Users\P885880\AppData\Local\Temp
C:\Program Files (x86)\Enterprise Vault\EVClient
C:\Program Files\nodejs
C:\ProgramData\Anaconda3\orca_app
C:\Users\P885880\AppData\Local\Programs\Python\Python37-32\Scripts
C:\Users\P885880\AppData\Local\Programs\Python\Python37-32
C:\Program Files (x86)\Bloomberg\DAPI
C:\Program Files (x86)\Bloomberg\DAPI\DDE
C:\Program Files (x86)\Mozilla Firefox
C:\windows\System32
C:\windows
C:\windows\System32\Wbem
C:\progra~1\sybase\DBISQL\bin
C:\progra~1\sybase\DataAccess64\ADONET\dll
C:\progra~1\sybase\DataAccess\ADONET\dll
C:\progra~1\sybase\DataAccess64\ODBC\dll
C:\progra~1\sybase\DataAccess\ODBC\dll
C:\progra~1\sybase\DataAccess64\OLEDB\dll
C:\progra~1\sybase\DataAccess\OLEDB\dll
C:\progra~1\sybase\OCS-15_0\lib3p64
C:\progra~1\sybase\OCS-15_0\lib3p
C:\progra~1\sybase\OCS-15_0\dll
C:\progra~1\sybase\OCS-15_0\bin
C:\windows\System32\WindowsPowerShell\v1.0
c:\programdata\IPGM\OraPGM64\Oracle\Client11gR2\bin
c:\programdata\IPGM\OraPGM32\Oracle\Client11gR2\bin
C:\PROGRA~1\IBM\SQLLIB\BIN
C:\PROGRA~1\IBM\SQLLIB\FUNCTION
C:\Program Files (x86)\SafeCom\SafeComPrintClient
C:\Program Files (x86)\Enterprise Vault\EVClient
\U13pfl01.hd00.unicreditgroup.eu\p885880$\P885880.HOME\Redirected_Profile\AppData\npm
C:\ProgramData\Anaconda3\orca_app
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\scripts
C:\ProgramData\Anaconda3\orca_app
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.plotly.com/c/api/python