C2_W1 stderr error

The process_data function doesn’t seem to be graded, says:

“There was a problem grading your submission. Check stderr for more details.”

Even though all tests are passed. Any idea why this is? I’ve tried restarting and also running it directly, not locally, same thing.

Maybe you are hard coding something or maybe an older version of the notebook!

All my results match their corresponding Expected results

Reason could be any of the below for grading failing according to the details shared by you

  1. any code error especially related like using global variable instead of local variable or vice versa.
  2. Removing any of the codes or instructions outside of markers ###START AND END CODE HERE###
  3. if you have added too many #print options
  4. if you have added or deleted any other cells other than grade cell.
  5. if you have renamed your assignment file.
  6. CHECK if you have left any None between the codes.

to resolve this issue in case you are confident of your codes, then get a fresh copy and re-do assignment.

To get a fresh copy follow below link, refer 1a

But make sure this time you only write codes between markers ###START AND END CODE HERE###

Regards
Dp

What do you mean by stderr ? Can you show us ?

To me, this sounds more like a deep C thing; Or something, somewhere deep down is not compiling…

@Deepti_Prasad @gent.spah Ha, and to my friends, I think the student made a simple mistake. But I was wondering how they could hit it so hard to crash it ?

That error message is some weird default message in the grader that Coursera provides. Software is not really Cousera’s specialty.

Most of the courses use a custom grader that DLAI created - but not all courses use the custom grader.

That is not necessarily sufficient to pass the unique test cases the grader uses.

This is the message it displays for that particular grading

can you DM the process data cell code via personal DM?

Ok

Hi @Ernest_Divine

Two points which I felt might need a look, not that your codes are incorrect but recalled incorrectly

  1. The input argument wants you to recall the designated shakespeare.txt’ text file recalled as file_name but you have add the descriptive part.

  2. while converting every word to lower case, instructions given is below
    For the pattern, decide between using ‘\s’, ‘\w’, ‘\s+’ or ‘\w+’. What do you think are the differences

but you have used multiples patterns, as the instructions before the above instruction mentions

  • Look for the “Raw String Notation” section in the Python ‘re’ documentation to understand the difference between r’\W’, r’\W’ and ‘\W’.

Hope this resolves your issue.

Regards
DP

2 Likes

Thank you for taking your time for your response, and I am sure you are correct.

I just LOL’d at the grade that came up.

image

Like, anybody, ‘float overflow’ ?