Giter Site home page Giter Site logo

crowdgrader-download-assignment's People

Contributors

lucadealfaro avatar michaeldorner avatar

Stargazers

 avatar

Watchers

 avatar

crowdgrader-download-assignment's Issues

SSL Download Problem

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

Students grading their own submission

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.