Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+5 votes

When I run my program no matter where I put it or what I do I can't seem to figure out why this error is happening. Can someone please help?

asked in CSC201 Spring 2021 by (1 point)

Could you put some picture or something so i can better understand the problem?

2 Answers

+3 votes
Best answer

Zachary, try to put both smiley.py file and graphics.py file in the same folder. So that, Python can trace it and import graphics.

answered by (1 point)
selected by

Got it. Thanks!


Yes, also make sure that graphics.py is named exactly "graphics.py", not "graphics (1).py" or "graphics.pdf" or something like that. It helps if you have checked the show "file name extensions" checkbox in the view tab of folders in Microsoft Windows, as shown on the last page of the lab...

0 votes

For this error, make sure that you put all the files you need including graphics into one directory so that python can recognize.

answered by (1 point)