简体   繁体   中英

Python Plotly static image export (Orca) getting html error 404

I am running the Plotly offline static image export example as in https://plot.ly/python/static-image-export/ . Unfortunately I get the following error running the below line I cant decipher. Every other step is successful, including plot render. Is it reaching out to an external address?

pio.write_image(fig, format='png',file='images/fig1.png')

Error:

ValueError: 
The image request was rejected by the orca conversion utility
with the following error:
 404: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 
4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii">
</HEAD>
<BODY><h2>Not Found</h2>
<hr><p>HTTP Error 404. The requested resource is not found.</p>
</BODY></HTML>

您需要将NO_PROXY环境变量设置为localhost maty。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM