|
Post by stormcapture on Dec 29, 2018 17:29:05 GMT -8
I am in a bit of a pickle at the moment with my Thunderboard's software.
I have followed all the steps for both hardware and software installation but when I initiate the "sudo python ThunderBoardIOT.py" sript, the terminal comes out with this:
Pi@Lightning:~ $ sudo python ThunderBoardIOT.py Thunder Board present at address 0x02 Waiting for lightning - or at least something that looks like it ----------------- ThunderBoard IOT
SwitchDoc Labs Version: Pi003 -----------------
--------- noise_floor= 0 min_strikes= 1 indoor= False mask_disturber= True disp_lco= False Interrupt Count= 0 Publishing Data to PubNub time: 2018-12-30 11:41:17.577469 LastResult: None Traceback (most recent call last): File "ThunderBoardIOT.py", line 294, in <module> publishLightningToPubNub() File "ThunderBoardIOT.py", line 264, in publishLightningToPubNub pubnub.publish().channel('ThunderBoardIOT').message(myMessage).async(publish_callback) AttributeError: 'Publish' object has no attribute 'async'
once it does that, the terminal awaits another command with Pi@Lightning:~ $ sudo
it still comes up with my PubNub details saved in the directory.
Any reasons why? any help would be appreciated. Thanks, Kyle
|
|
|
Post by SDL on Dec 29, 2018 21:15:23 GMT -8
Ah, got it! The problem is that the blasted PubNub library changed the definition of this function. Drives us all crazy. It has broken many pieces of software out there that have been using this library.
Remove the ".async(publish_callback)" from the end of the line and re-run.
BP
|
|
|
Post by stormcapture on Dec 30, 2018 18:11:50 GMT -8
Cheers for that BP, works like a charm now
|
|
rich
New Member
Posts: 27
|
Post by rich on Jun 6, 2019 13:44:46 GMT -8
AAAA. I should have searched the forum first. Been racking my brain on same issue. Thanks for the fix and it works great now.
|
|