dibgerge / ml-coursera-python-assignments

Python assignments for the machine learning class by andrew ng on coursera with complete submission for grading capability and re-written instructions.
5.45k stars 2.16k forks source link

The Grader files are changed and now we can't submit the assignment. PLEASE FIX ASAP #81

Closed prasanna-sai closed 3 years ago

prasanna-sai commented 3 years ago

Coursera added a new section which is located just before programming assignment 1 section of week 2. They have also changed the token duration and now token is going to expire in 30 minutes.

After these updates, I am unable to submit the assignment. When I submitted the assignment, it is showing HTTPError: HTTP Error 500: Internal Server Error

The entire error is below

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
<ipython-input-5-a776c0c55379> in <module>
      3 
      4 # send the added functions to coursera grader for getting a grade on this part
----> 5 grader.grade()

~\Downloads\ML Assignments - Python\submission.py in grade(self)
     30         for part_id, result in self:
     31             parts[str(part_id)] = {'output': sprintf('%0.5f ', result)}
---> 32         result, response = self.request(parts)
     33         response = json.loads(response.decode("utf-8"))
     34 

~\Downloads\ML Assignments - Python\submission.py in request(self, parts)
     79 
     80         params = urlencode({'jsonBody': json.dumps(params)}).encode("utf-8")
---> 81         f = urlopen(self.submit_url, params)
     82         try:
     83             return 0, f.read()

C:\Program Files (x86)\lib\urllib\request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
    220     else:
    221         opener = _opener
--> 222     return opener.open(url, data, timeout)
    223 
    224 def install_opener(opener):

C:\Program Files (x86)\lib\urllib\request.py in open(self, fullurl, data, timeout)
    529         for processor in self.process_response.get(protocol, []):
    530             meth = getattr(processor, meth_name)
--> 531             response = meth(req, response)
    532 
    533         return response

C:\Program Files (x86)\lib\urllib\request.py in http_response(self, request, response)
    638         # request was successfully received, understood, and accepted.
    639         if not (200 <= code < 300):
--> 640             response = self.parent.error(
    641                 'http', request, response, code, msg, hdrs)
    642 

C:\Program Files (x86)\lib\urllib\request.py in error(self, proto, *args)
    567         if http_err:
    568             args = (dict, 'default', 'http_error_default') + orig_args
--> 569             return self._call_chain(*args)
    570 
    571 # XXX probably also want an abstract factory that knows when it makes

C:\Program Files (x86)\lib\urllib\request.py in _call_chain(self, chain, kind, meth_name, *args)
    500         for handler in handlers:
    501             func = getattr(handler, meth_name)
--> 502             result = func(*args)
    503             if result is not None:
    504                 return result

C:\Program Files (x86)\lib\urllib\request.py in http_error_default(self, req, fp, code, msg, hdrs)
    647 class HTTPDefaultErrorHandler(BaseHandler):
    648     def http_error_default(self, req, fp, code, msg, hdrs):
--> 649         raise HTTPError(req.full_url, code, msg, hdrs, fp)
    650 
    651 class HTTPRedirectHandler(BaseHandler):

HTTPError: HTTP Error 500: Internal Server Error
Abhishek-michael commented 3 years ago

Its the new grader system someone needs to look into it

prasanna-sai commented 3 years ago

So, We can't submit the assignments until someone fixes the issue.

Red-Sky7 commented 3 years ago

I'm facing the same issue. It seems they updated their grader. Hope it's fixed soon. This port is great.

Debanjan2001 commented 3 years ago

I am facing the same problem too.

Anshumalin commented 3 years ago

Hope we get the fix asap .

NourEldin-Osama commented 3 years ago

I am facing the same problem too, Hope we get the fix asap.

shai-2-0 commented 3 years ago

Same for me. I hope that can be fixed.

On 11 Jul 2021, at 15:55, NOURELDIN OSAMA @.***> wrote:

I am facing the same problem too, Hope we get the fix asap.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dibgerge/ml-coursera-python-assignments/issues/81#issuecomment-877794946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOC7OZPI5DOEBAUSHYDM54DTXGIC3ANCNFSM5AAC6Q2Q.

MohamedElhadidy0019 commented 3 years ago

same error for me need fix ASAP please

andywot commented 3 years ago

Hey guys, I just created a pull request for the new grader. If you can't wait you can just change the grader file yourself and see if it works with the new grading system.

Red-Sky7 commented 3 years ago

Hey guys, I just created a pull request for the new grader. If you can't wait you can just change the grader file yourself and see if it works with the new grading system.

Can confirm it's working. Thanks a ton. 👏

prasanna-sai commented 3 years ago

Hey guys, I just created a pull request for the new grader. If you can't wait you can just change the grader file yourself and see if it works with the new grading system.

It is working now. Thank you very much.

Debanjan2001 commented 3 years ago

Hey guys, I just created a pull request for the new grader. If you can't wait you can just change the grader file yourself and see if it works with the new grading system.

Thank you @andywot

NourEldin-Osama commented 3 years ago

Thank you @andywot 🥰😊 @dibgerge Please merge the pull request

Abhishek-michael commented 3 years ago

its still not working for me it throws the same error i cloned the @andywot 's branch and copy pasted earlier code for ex 2 and when i go to grade it throws same error

andywot commented 3 years ago

@Abhishek-michael I think I know what happened. Did you clone from the correct branch new-grader instead of master?

HVossi92 commented 3 years ago

Hey guys, I just created a pull request for the new grader. If you can't wait you can just change the grader file yourself and see if it works with the new grading system.

Thank you so much! :)

Abhishek-michael commented 3 years ago

@Abhishek-michael I think I know what happened. Did you clone from the correct branch new-grader instead of master?

thank you so much apparently i cant clone the branch (im net to git so please bear with me) i ended up getting the zip file and it worked

archanfel commented 3 years ago

Hey guys, I just created a pull request for the new grader. If you can't wait you can just change the grader file yourself and see if it works with the new grading system.

thank you so much : )

dibgerge commented 3 years ago

Thank @andywot ! I have merged the new code. Closing this.