[Windows] UnicodeDecodeError #13
Comments
I'm sorry you are having issues using HiPlot :/ I have several questions to try to narrow down the issue:
Thank you! |
Hello @danthe3rd,
this is my full track.
|
Thank you for the details! It looks like it's trying to read the from pathlib import Path
import hiplot as hip
bundle_js = hip.__file__.split('__init__')[0] + 'static/built/hiplot.bundle.js'
text = Path(bundle_js).read_text() # This should trigger the same UnicodeDecodeError If you replace the last line with Looking at your trace, it looks like you modified Thank you! |
I managed to reproduce the issue on windows in the CI. Adding the |
Version Let me know if it works for you :) |
Hello, it works! thank you so much :) have a nice day :) |
Hello, I believe that I am having a similar problem with the use of hiplot-render that I cannot resolve. Here is the traceback of the error I am getting:
I think the issue is in
I checked and the file path I am using returns I'm on Windows 10. |
Hi @pandrich Can you try to modify the file elif args.format == 'html':
exp.to_html(sys.stdout) with elif args.format == 'html':
import codecs
exp.to_html(codecs.getwriter("utf-8")(sys.stdout)) Let me know if it works - if so I can update HiPlot with this fix. |
Hey @danthe3rd, Thanks a lot for this very quick response. And yes sorry, I do realize that it is challenging to address this without the original file and while working on Linux. Just as a note, I should mention that all works well if I work in WSL. I tried using your suggestion but that results in a different error:
Thanks again! |
Oh interesting. Can you try this now? if args.format == 'csv':
exp.to_csv(sys.stdout)
elif args.format == 'html':
exp.to_html(sys.stdout)
else:
assert False, args.format with: import codecs
stdout_writer = codecs.getwriter("utf-8")(sys.stdout.buffer)
if args.format == 'csv':
exp.to_csv(stdout_writer)
elif args.format == 'html':
exp.to_html(stdout_writer)
else:
assert False, args.format |
This seems to work perfectly! |
This is now merged and will be in the next release - thanks for the report and help :) |
Great! Thank you @danthe3rd for sorting this out so quickly! |
Hello, i want to try the demo but i got this issue, i try to change render.py with encoding but it not works.
i use
`import hiplot as hip
data = [{'dropout':0.1, 'lr': 0.001, 'loss': 10.0, 'optimizer': 'SGD'},
{'dropout':0.15, 'lr': 0.01, 'loss': 3.5, 'optimizer': 'Adam'},
{'dropout':0.3, 'lr': 0.1, 'loss': 4.5, 'optimizer': 'Adam'}]
hip.Experiment.from_iterable(data).display()`
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9e in position 122350: character maps to <undefined>
The text was updated successfully, but these errors were encountered: