You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the docker container environment I am getting a UnicodeDecodeError. More speciffically:
prepared_questions = []
for line in open('data/text_prepare_tests.tsv'):
line = text_prepare(line.strip())
prepared_questions.append(line)
text_prepare_results = '\n'.join(prepared_questions)
grader.submit_tag('TextPrepare', text_prepare_results)
Is giving the following error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 79: ordinal not in range(128)
In order to run it I had to change it to:
prepared_questions = []
for line in open('data/text_prepare_tests.tsv', encoding='utf-8'):
line = text_prepare(line.strip())
prepared_questions.append(line)
text_prepare_results = '\n'.join(prepared_questions)
grader.submit_tag('TextPrepare', text_prepare_results)
Can also be solved by using pd.read_csv.
Is this error reproducible to anyone else?
The text was updated successfully, but these errors were encountered:
Using the docker container environment I am getting a
UnicodeDecodeError
. More speciffically:Is giving the following error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 79: ordinal not in range(128)
In order to run it I had to change it to:
Can also be solved by using
pd.read_csv
.Is this error reproducible to anyone else?
The text was updated successfully, but these errors were encountered: