Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+3 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 (4.3k points)

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 (4.2k points)
...