-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grader.check() throws UnicodeDecodeError on Windows machines #380
Comments
@wsepesi I believe I've fixed this issue. Do you mind re-installing Otter from my fork as below and verifying that this fix works for you?
|
@chrispyles It's working on my end as well, thank so you much for the prompt fix! I appreciate your work on the tool, and best wishes from the WashU CS department! |
Do you have a timeline for the release of 3.1.2 by any chance? |
Not yet. There's another bug that I'm trying to get more info on that I'd like to include in that version if possible. |
Gotcha -- if I have students trying to work on assignment this weekend, is it okay if they temporarily use the fork? There are other workarounds so no worries if not, it would just make things a bit easier for them. |
I was able to find and fix the other bug, so I've just released v3.1.2. (But for the record, yes, that would've been fine.) |
Great, thanks again! |
Describe the bug
I am using otter-grader to auto grade Jupyter Notebook assignments for an Intro to Data Science class, and using the given syntax for designing these type of files -- the result works perfectly on Mac, but on Windows running a cell that has a
grader.check("questionName")
in it throws the following UnicodeDecodeError, seemingly becauseopen(filename)
also requires an encoding argument on Windows (see this article: https://stackoverflow.com/questions/9233027/unicodedecodeerror-charmap-codec-cant-decode-byte-x-in-position-y-character). This problem also happens forgrader.export()
Error:
To Reproduce
Steps to reproduce the behavior:
otter assign
grader.check()
cellExpected behavior
grader.check()
should mirror the behavior on MacVersions
I am using the following .yml to generate a conda environment. Again, these exact same versions work on Mac.
The text was updated successfully, but these errors were encountered: