|
Post by sukaree2006 on Oct 30, 2020 6:43:43 GMT -8
We found error on Step4) Run the following command
pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ sudo python3 testSGSSystem.py Traceback (most recent call last): File "testSGSSystem.py", line 20, in <module> from bmp280 import BMP280 File "/home/pi/SDL_Pi_SmartGardenSystem2/bmp280.py", line 2, in <module> from i2cdevice import Device, Register, BitField, _int_to_bytes ModuleNotFoundError: No module named 'i2cdevice'
Kindly please investigate the problem and advise me on the issue
Thanks
|
|
|
Post by Anurak Klaysri on Oct 30, 2020 18:45:30 GMT -8
Hello BP,
It is urgent matter. Please support me on bthe issue which I cannot go ahead with the completed testing on new SGS V2 on upgrade kit.
We found error on Step4) Run the following command
pi@SwitchDocLabs:~/SDL_Pi_SmartGardenSystem2 $ sudo python3 testSGSSystem.py Traceback (most recent call last): File "testSGSSystem.py", line 20, in <module> from bmp280 import BMP280 File "/home/pi/SDL_Pi_SmartGardenSystem2/bmp280.py", line 2, in <module> from i2cdevice import Device, Register, BitField, _int_to_bytes ModuleNotFoundError: No module named 'i2cdevice'
Kindly please investigate the problem and advise me on the issue
Thanks Anurak Klaysri +971 555093199
|
|
|
Post by SDL on Oct 31, 2020 7:21:14 GMT -8
Anurak, You don't have the library that contains i2cdevice installed.
A quick search on the web found this:
sudo pip install i2cdevice
If that doesn't work,
sudo pip3 install i2cdevice
BP
|
|
|
Post by Anurak on Nov 1, 2020 0:26:05 GMT -8
Thanks BP I will try to do it and give you feedback.
|
|
|
Post by Anurak on Nov 1, 2020 3:59:58 GMT -8
Hi BP,
---->> sudo pip install i2cdevice
now it is working! Thanks again.
|
|