I have just got my GrovePi and am running it on my RasberryPi B with your image. When I try to run the my py Script using Sudo Python3 I get this error <module> from grovepi import *
I tried looking across this forum and the search Google but thave not found a fix.
Is there a fix and will GrovePi work with Python3x?
digitalWrite(led,1) #Blink the LED
print("Led On")
time.sleep(5) # Delay for 5 seconds
digitalWrite(led,0)
except (IOError,TypeError) as e:
print ("Error")
Sadly it does not word and produced this error:
pi@dex ~/Desktop/My_Projects/Sensors $ sudo python3 Led.py
Traceback (most recent call last):
File “Led.py”, line 3, in <module>
from grovepi import *
ImportError: No module named grovepi
I also tried using import grovepi, and the same error was caused.
sudo python3 Led.py
Traceback (most recent call last):
File “Led.py”, line 3, in <module>
import grovepi
ImportError: No module named grovepi
Hi the problem is when I use sudo python3 Led3.py, it returns the same error
Traceback (most recent call last):
File “Led.py”, line 3, in <module>
import grovepi
ImportError: No module named grovepi
Even with grovepi.py copied to the same folder, causes the same error.
How do I get the GrovePi modules installed so they run with python3x.
I have searched the internet for a sollution, and they all point back to running something like setuptools, which I believe is used for installing the GrovePi modules so python3x can use them. I have scene in the python3 documentaion that setuptools is no longer used.
Could the installation script setup.py, be at fault?
I believe this problem has been reported sometime in an easrlier post, and may not have been fixed.