"OverflowError: Python int too large to convert to C long" error

I know that there is a thread for that already but even following the instructions I was not able to fix the problem.

I am still seeing the “OverflowError: Python int too large to convert to C long” error even after making the changes into lab_utils_uni.py file.

I am running the jupyter notebooks locally using Visual Studio Code.

Can someone help please?

That’s the problem. The labs are intended to be run on Coursera.

Most likely you have some package versions that are newer (and not compatible) with the notebook’s code.

Ok, but I think every student is willing to re-use the code in later projects. Can you guide us on how to still make use of those notebooks after the course ?


You need to figure what module is causing an integer overflow.

I believe there is information in the MLS course FAQ about how to run the assignment locally.