UBICenter / plotly-converter

Convert pages with Plotly graphs to Python programatically
2 stars 4 forks source link

Issue producing HTML files from panda DataFrame #9

Closed yuchida522 closed 3 years ago

yuchida522 commented 3 years ago

Error when running plotly-converter on https://blog.ubicenter.org/20201214/canada-homelessness-experiment.html

Error message: Traceback (most recent call last): File "C:\Users\yuchi\src\UBI-Center\blog\jb\20201214\make_graphs.py", line 14, in io.write_html(fig, "../../plotly-converter/assets/graphs/2020-12-14-canada-homelessness-experiment-graph1.html", full_html = False, include_plotlyjs = False) NameError: name 'fig' is not defined File "C:\Users\yuchi\src\UBI-Center\blog\jb\20201214\make_graphs.py", line 70 io.write_html(fig, "../../plotly-converter/assets/graphs/2020-12-14-canada-homelessness-experiment-graph2.html", full_html = False, include_plotlyjs = False) ^ SyntaxError: invalid syntax Traceback (most recent call last): File "C:\Users\yuchi\src\UBI-Center\blog\plotly-converter\2converter.py", line 128, in for line in file: File "C:\Program Files\Python39\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 1588: character maps to