Closed tw4l closed 2 years ago
Hi Tessa, I believe I ran into a related (or the same) error today. Here's the output:
Traceback (most recent call last):
File "/Users/[user]/anaconda3/bin/brunnhilde.py", line 1387, in
I ran the error past Dianne D. who said:
My hunch is that it's failing again in the except block and pointed to these lines:
https://github.com/tw4l/brunnhilde/blob/98882e842320fc77c58b67724f46e154b2917381/brunnhilde.py#L287 https://github.com/tw4l/brunnhilde/blob/98882e842320fc77c58b67724f46e154b2917381/brunnhilde.py#L290
But she also said she wasn't entirely sure.
We did test brunnhilde against another directory of files and it worked as expected.
We're using OSX 12.1 and managing brunnhilde via pip.
Thanks! Brian
Thanks @bdietz ! I think Dianne's right that the except
block routine there isn't working as intended. Will take a look shortly! If you could share the offending CSV file by email that would be helpful!
Yeah, for sure. Thank you @tw4l. I'm sorry to ask, do you want the siegried.csv file? IIRC, that's the point at which brunnhilde was failing, after siegfried wrapped up.
@bdietz yes exactly, and thanks for clarifying!
Hey Brian, I have a fix in the development branch that uses Python's errors
argument with the "ignore"
setting, which will silently skip characters that would otherwise throw a UnicodeDecodeError
when reading the Siegfried CSV. I've tested that this resolves the issue with the Siegfried CSV file you emailed me. I'm just running the tests now and then will cut a 1.9.4 patch release with the fix and push it to PyPI this week :)
Thanks for the detailed bug report and the nudge to get this fixed!
Awesome. Thank you!
Fixed in commit https://github.com/tw4l/brunnhilde/commit/09defef8270d8647f5f49acdc27a0625d951ab15. The fix is now released to PyPI so sudo pip3 install --upgrade brunnhilde
should fix it for you!
Need to add error handling around unicode handling