[solved] Emojify error: Cell #13. Can't compile the student's code. Error: ValueError('shapes (5,2) and (1,2) not aligned: 2 (dim 1) != 1 (dim 0)',)

Hi,

I am trying to resolve the following grader error:

Cell #13. Can't compile the student's code. Error: ValueError('shapes (5,2) and (1,2) not aligned: 2 (dim 1) != 1 (dim 0)',)

How can I find out what cell 13 is? Is this 0-based or 1-based? Counting only the code cells, or also the markup cells?

How can I get the Python stack trace from this error, instead of just the message, please?

Kees Jan

Hi @Kees_Jan_Koster,

The count only includes the code cells.

Are you not getting a stack trace within the assignment ?

You cannot get the full error stack from the grader.

It is possible your code passes all of the test cases in the notebook but still has errors when running the grader. The test cases don’t catch all possible errors.

I don’t get any errors when I run the notebook, restarting the kernel etc. does not reveal any issues. I’ll try counting the cells to find the problematic one.

If that count 0-based or 1-based?

I found it. I had an error on how I calculated the averages, but in a completely different function.

Anyway, thank you for your help.