|
Post by TCK on Apr 13, 2021 23:35:31 GMT -8
The following command is not found and I am unable to run the thunderboardIoT python code.
Traceback (most recent call last):
File "/home/pi/SDL_Pi_ThunderBoard_IOT/ThunderBoardIOT.py", line 15, in <module>
from pubnub.pubnub import PubNub
ModuleNotFoundError: No module named pubnub
Every other tests was successful. I have set up a pubnub account and enabled all keys. I checked the forum but there was nothing of use. This is the only instruction I have found an error in so I'm hoping this is enough to help.
|
|
|
Post by TCK on Apr 14, 2021 3:09:35 GMT -8
There is in fact many ModuleNotFoundErrors occurring
|
|
|
Post by SDL on Apr 14, 2021 8:39:36 GMT -8
Have you installed the latest version of pubnub?
pip install pubnub
Remember that this program is in python2.7 not python3
BP
|
|
peter
New Member
Posts: 4
|
Post by peter on Jun 9, 2021 21:54:38 GMT -8
I also have PubNub trouble. I suspected the SD card in my RPi to have troubles and wanted to make a new installation on a fresh card, following the manual in www.switchdoc.com/2017/12/tutorial-building-an-iot-lightning-detector-with-your-raspberry-pi-part-2/ . But when doing: "sudo pip install pubnub" get an error when installing PubNub: "Error: aiohttp requires Python '>=3.4.2' but the running Python is 2.7.16" . No knowing what to do here I continued installation doing: "cd" and "git clone github.com/switchdoclabs/SDL_Pi_ThunderBoard_IOT" as in the manual. And to get stuck on following error: "-bash: git: command not found" . Going back to the old SD card I noted the programs gets stuck on a "ValueError" in "usr/lib/Python 2.7/json/decoder.py. It all sounds like some updates in Python 2.7 don't work out well for the ThunderBoard installation or PubNub has moved to Python 3.4 or higher. Who can help? Installing Python 3.x didn't help. ThunderBoardIOT.py is still Python 2.7 based and Python 3.x is a totally different code design, I hear
|
|
|
Post by SDL on Jun 10, 2021 9:00:00 GMT -8
Peter,
Good question on what is going on here. We will add it to our bug list and do some investigation. Understand that this will take a while.
BP
|
|
peter
New Member
Posts: 4
|
Post by peter on Jun 11, 2021 12:18:04 GMT -8
Please do. Thunderseason is coming and I assume new customers want their system to go live as well. Thanks for helping!
|
|