Last answered:

03 Jun 2024

Posted on:

24 Mar 2024

0

File Reading Error

Thanks for this great course. I have been on this error for a while now.

The image file is in the same folder as the .py file, and I cannot understand why I am still getting an error. 

Please advise.


Charlemagne




4 answers ( 0 marked as helpful)
Instructor
Posted on:

25 Mar 2024

1

Hey Charlemagne,


Thank you for reaching out! We're happy to hear you're enjoying the course!


Could you please take a screenshot of the capstone_solution.py and capstone_coins.png files inside your folder? It should look something like this:



Kind regards,

365 Hristina

Posted on:

02 Jun 2024

1

I think I have the same problem.

Instructor
Posted on:

03 Jun 2024

0

Hey Chrisant,


Thank you for reaching out!


Could you please start by commenting out all the lines of the code, then uncomment and test each line sequentially?


For example, first, comment out lines 5-9 and run the script to check if it returns an error. If no error occurs, uncomment line 5 while keeping lines 6-9 commented. Run the script again and check for errors.


Continue this process line by line. Once completed, please let me know on which specific line the code fails.


Kind regards,

365 Hristina

Posted on:

03 Jun 2024

0

It failed when running lines 1-4

Submit an answer