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.

Categories

+4 votes

Why do I get a ModuleNotFoundError: No module named 'graphics2' error when trying to import button.py? I tried putting graphics, graphics 2, button, and the file I was working on into one folder and it's still bringing up the same error. Any thoughts on how I can fix this?

asked in CSC201 Spring 2021 by (1 point)

1 Answer

0 votes

You have to put all the files of graphics, graphics 2, button in the same folder with your current working .py file. Basically, when those files are not in the same folder, Python could not trace on them to import.

Hope this helps!

answered by (1 point)
...