Are you by chance using "Begin to Code with Python" by Rob Miles?
I had the same error up until a few minutes ago, so I thought I'd drop you an answer in case you're still having this problem or for anyone who comes across this thread.
After searching for way too long, I realized that snaps isn't something that comes with pygame or python.
- You have to go to their website at aka.ms/BeginCodePython/downloads
- Download their sample zip file, which contains the example programs from the book.
- Unzip the folder.
- Go into samples-master.
- Then "Ch 03 Python Program Structure".
- Finally there you will find the elusive snaps.py file.
copy this over to the same folder that holds the py file trying to import it, and it should work.
mine didn't work at first, until I closed the shell and relaunched it.
I hope this helps!
I had the same error up until a few minutes ago, so I thought I'd drop you an answer in case you're still having this problem or for anyone who comes across this thread.
After searching for way too long, I realized that snaps isn't something that comes with pygame or python.
- You have to go to their website at aka.ms/BeginCodePython/downloads
- Download their sample zip file, which contains the example programs from the book.
- Unzip the folder.
- Go into samples-master.
- Then "Ch 03 Python Program Structure".
- Finally there you will find the elusive snaps.py file.
copy this over to the same folder that holds the py file trying to import it, and it should work.
mine didn't work at first, until I closed the shell and relaunched it.
I hope this helps!