Issues with import grovepi


#1

Hey. Im new to programming and electronics and ive run in to some issues straight away.

Im trying to follow a guide on seedstudio to make the sound sensor turn on a led light, but when im supposed to import grovepi i get the error

"file “<pyshell#1>”, line 1, in <module> import grovepi
importerror: no module named grovepi

Ive tried to run the setup.py like ive seen on the forum and on different posts but it doesnt seem to fix the issue for me.

Anyone know how i could fix this?


#2

Well,
the bandaid solution would be to take a copy of grovepi.py found in /home/pi/Desktop/GrovePi/Software/Python and put it in the same folder as the code you’re trying to run.

It doesn’t fix the fact that it didn’t get installed properly, but it should allow to run your test.