C1 M2 book assignment no grade when submission

I passed all the exercises but it shows “There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: No module named ‘openai’“.

I can’t get any grade to pass the assignment. I don’t have any AI beside google gemini in my laptop, neither imported openai for responses but it’s showing no module named openai, I tried to restart the brower, also restart the kernel and remove all the outputs, even redo the exercise but still got stuck with this process.

Please help me out..

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not. You can share the errors you get)

If you are getting this, it means that you are importing the library somewhere where you shouldn’t be.

Let me send you a direct message regarding this.

After looking at your code, as suspected, you are using lines of code in the exercise which you shouldn’t have had. Removing those should get you the grade.

A general rule of thumb, these assignments are designed in a certain way for a reason. At no point should you feel like they or the exercise instructions lack something which you feel the need to add. Always stick to the exact exercise instructions, only do what is asks, and do not do anything extra. Otherwise, as in this case, you’ll come across many inconvenient errors.

Best,
Mubsi