lucadealfaro / crowdgrader-download-assignment Goto Github PK
View Code? Open in Web Editor NEWCode to download data from CrowdGrader assignments.
License: MIT License
Code to download data from CrowdGrader assignments.
License: MIT License
When using the bulk downloader script with python 2.7.6 I get the following error:
Joes-MacBook-Pro:CS185 Grading joe$ python download_assignment.py ~/Downloads/CMPS_185-_Assignment_1_data\ \(1\).json test7
Downloading submission for: [redacted]@ucsc.edu
Error in download: <urlopen error [Errno 8] _ssl.c:507: EOF occurred in violation of protocol>
Retrying
Error in download: <urlopen error [Errno 8] _ssl.c:507: EOF occurred in violation of protocol>
Retrying
Error in download: <urlopen error [Errno 8] _ssl.c:507: EOF occurred in violation of protocol>
Retrying
Failed
Traceback (most recent call last):
File "download_assignment.py", line 204, in <module>
main()
File "download_assignment.py", line 60, in main
write_assignment_data(dest_dir, assignment_data)
File "download_assignment.py", line 98, in write_assignment_data
download_submissions(dir_name, subm)
File "download_assignment.py", line 128, in download_submissions
download_text(subm_dir_name, text_url, name='submission.txt')
File "download_assignment.py", line 160, in download_text
sub = simplejson.loads(w)
File "/Library/Python/2.7/site-packages/simplejson/__init__.py", line 505, in loads
return _default_decoder.decode(s)
File "/Library/Python/2.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/Library/Python/2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Initially I thought it might be a bad json object, but I ran it through a validator and it worked fine. Then I realized it was an ssl error as is obvious for the error line. The temporary hack of a fix is to replace all instances of https
with http
in the json file. This isn't ideal from a security perspective, but might help other people. I think the bug is related to SSL/TLS/OpenSSL but I'm not 100% sure. Just thought I'd post this in case anyone else has issues.
Thanks,
Joe
Student's can randomly get assigned their own submission for review. I use CrowdGrader for peer review for both large and medium size classes. It's a reasonable likelihood in the smaller classes for students to get their own submission. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.