Programing/Data Science
[Plotly][ValueError] executable=" ".join(executable_list), help_result=help_result
mjune.kim
2020. 4. 3. 17:48
다음과 같은 경우에 발생하는 에러입니다.
1) orca 가 설치되어 있지 않다.
2) 실행경로에 실행하려는 orca가 없다.
3) 실행경로에 다른 orca 파일이 존재한다. 저의 경우에는 /usr/bin/orca 파일이 존재했으며 해당 실행파일은 plotly에서 필요한 파일이 아닙니다. 그래서 plotly.io.orca.config.executable = ${home}/anaconda2/bin/orca 를 추가로 선언해줘야 했습니다.
Boolean Series key will be reindexed to match DataFrame index. Usage: orca [-h] [-v] [-r] [-s] [-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.34.0 -r, --replace Replace a currently running instance of this screen reader -s, --setup Set up user preferences (GUI 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. Traceback (most recent call last): File "./analysis/draw_graph.py", line 91, in plotly.io.write_image(fig=client_fig, file = arg_result_path + "/client_ss.png", format='png') File "/home/june/.local/lib/python2.7/site-packages/plotly/io/_orca.py", line 1768, in write_image fig, format=format, scale=scale, width=width, height=height, validate=validate File "/home/june/.local/lib/python2.7/site-packages/plotly/io/_orca.py", line 1533, in to_image ensure_server() File "/home/june/.local/lib/python2.7/site-packages/plotly/io/_orca.py", line 1391, in ensure_server validate_executable() File "/home/june/.local/lib/python2.7/site-packages/plotly/io/_orca.py", line 1207, in validate_executable executable=" ".join(executable_list), help_result=help_result ValueError: The orca executable is required in order to export figures as static images, 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 of this message for details on what went wrong. 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.plot.ly/c/api/python The error encountered is that unexpected output was returned by the command $ /usr/bin/orca --help Usage: orca [-h] [-v] [-r] [-s] [-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.34.0 -r, --replace Replace a currently running instance of this screen reader -s, --setup Set up user preferences (GUI 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. |