ImportError No Module named grovepi


#1

Hello

My english is not so good but i will try to write
i have 4 grovepi´s and i have do this from this side

https://www.dexterindustries.com/GrovePi/programming/using-multiple-grovepis-together/

before i do this i have one grovepi and have do this

https://www.dexterindustries.com/GrovePi/get-started-with-the-grovepi/setting-software/

but i have the problem ImportError No Module named grovepi

what can i do

sorry for my bad english


#2

sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: 03 04 05 06 – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --


#3
 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: 03 04 05 06 – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --


#4

Hello @soenke21

Can I ask you for a bit more troubleshooting?
If you do
cd /home/pi/Desktop/GrovePi/Script/multi_grovepi_installer/
ls
do the files grovepi3.py, grovepi4.py, etc show up?

Are you able to do
import grovepi3
in python or is the issue just with grovepi?


#5

pi@raspberrypi:~/Desktop/GrovePi/Script/multi_grovepi_installer $ ls
build grovepi6.egg-info multi_installer.sh
dist grovepi6.py README.md
grovepi3.egg-info grovepi7.py setup3.py
grovepi3.py grove_pi_v1_2_2_addr3.cpp.hex setup4.py
grovepi4.egg-info grove_pi_v1_2_2_addr4.cpp.hex setup5.py
grovepi4.py grove_pi_v1_2_2_addr5.cpp.hex setup6.py
grovepi5.egg-info grove_pi_v1_2_2_addr6.cpp.hex setup7.py
grovepi5.py grove_pi_v1_2_2_addr7.cpp.hex


#6

Thanks @soenke21

Are you using Python3 or Python2 ? If you’re using Python3 that would be an easy explanation. I don’t think it’s supported right now (as a multi-grovepi system)

If you’re using Python2 , can you do:
cd /home/pi/Desktop/GrovePi/Script/multi_grovepi_installer/
sudo python setup3.py install
sudo python setup4.py install
sudo python setup5.py install
sudo python setup6.py install

Then try again?


#7

I use python3. Under python 2 it also seems to work.
But I would like it also under python 3 functions
So I can control the 4 groves


#8

Can you try this?
sudo python3 setup3.py install
sudo python3 setup4.py install
sudo python3 setup5.py install
sudo python3 setup6.py install

I’m sorry, we’re currently in the process of implementing Python3 support. The above will make the libraries available to you from within python3 but I have no idea if they’ll actually work or not. In the short term, Python2 is your best bet. But python3 is coming!

Cleo


#9

In which directory should I install it?


#10

You should be in /home/pi/Desktop/GrovePi/Script/multi_grovepi_installer/ when you run these commands

sudo python setup3.py install
sudo python setup4.py install
sudo python setup5.py install
sudo python setup6.py install

The commands know where the libraries are supposed to go


#11

hello
Has used the command now now the pi can no longer control in python 3
With import grovepi3 not with grovepi not.
Before I installed their lines went import grovepi. But now no more
What am I supposed to do now


#12

@soenke21
I’m not sure I understand

You’ve run the commands, one by one, is that right?
Did you see any errors ?

Now when you start python3 and type in import grovepi3 , you are getting what kind of error messages?

Can you run
sudo python3 setup3.py install
and take a photo of the screen, and share the photo here?

Cleo


#13

Hello
No errors occurred during the installation
However, I would now drive over i2c however this does not have it as an idea


#14

@soenke21,
Can you give a few more details about the problems you are having with I2C. Can you also post some screenshots of the errors that you get if there are any.