|
Post by confidentialmonkey on Mar 1, 2018 21:40:41 GMT -8
No handlers could be found for logger "pubnub" Exception in thread SubscribeMessageWorker (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner File "/usr/lib/python2.7/threading.py", line 754, in run File "/usr/local/lib/python2.7/dist-packages/pubnub/workers.py", line 24, in run File "/usr/local/lib/python2.7/dist-packages/pubnub/pubnub.py", line 345, in _take_message File "/usr/lib/python2.7/Queue.py", line 177, in get File "/usr/lib/python2.7/threading.py", line 355, in wait <type 'exceptions.TypeError'>: 'NoneType' object is not callable
|
|
dougstrickland
Junior Member

Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Mar 2, 2018 6:30:10 GMT -8
Are you running the script as sudo? Can you provide more context for your error?
|
|
|
Post by confidentialmonkey on Mar 5, 2018 19:57:49 GMT -8
Yes i am running as sudo i just apparently have no loggers. Freeborad.io never receives anything. I can SSH into my PI through port forwarding via a public address, so i don't think its a networking issue. I think i just have no idea what in the world i'm doing with programming. I think the config.py and the listen.py are both set up right tho, so i'm not sure where i went wrong here. Thanks! Attachments:
|
|
|
Post by SDL on Mar 5, 2018 20:43:10 GMT -8
Have you tried"sudo python smartplantpi.py"?
BP
|
|
|
Post by confidentialmonkey on Mar 5, 2018 21:03:16 GMT -8
"sudo python smartplantpi.py" is what is running on the top terminal window in the screenshot
|
|
|
Post by SDL on Mar 6, 2018 9:04:24 GMT -8
OK. I see SmartPlantPi is running in the window. Looks good. What specifically is going wrong?
Show me the output from listen.py running from another terminal window.
BP
|
|
|
Post by turbon on Mar 6, 2018 9:28:25 GMT -8
Hi confidentialmonkey.
I reckon you created an account at pubnub as well? The only placesyou need to change in the code is about the pub & sub keys you get from pubnub. Some config files are a PIA as the are oneliners - don't press return inside one of them.
Regards
|
|
|
Post by confidentialmonkey on Mar 12, 2018 20:12:18 GMT -8
    Sir, This is the output. It just says that there are no loggers. Thanks, Engel
|
|
|
Post by SDL on Mar 13, 2018 6:47:06 GMT -8
Conf,
Thanks! I'll look at that today.
BP
|
|
|
Post by SDL on Mar 20, 2018 18:06:31 GMT -8
OK, finally got to this. I'm sending up an update to the GitHub archive. Minor update. V021
We added to listen.py and SmartPlantPi.py :
import logging; logging.basicConfig(level=logging.INFO)
Something changed in the latest version of Raspbian and broke this.
Whew!
BP
|
|