robotpy / pynetworktables

Pure python implementation of the FRC NetworkTables protocol
Other
60 stars 30 forks source link

'EntryNotification' object has no attribute 'getEntry' #59

Closed ErikBoesen closed 6 years ago

ErikBoesen commented 6 years ago

I've been continuously getting these errors in the DS console. Nothing appears to be failing, but it makes it really hard to debug other code since they fill up the console after a crash.

 09:33:51:575 WARNING : nt                  : Unhandled exception processing entry-notifier callback 
 Traceback (most recent call last): 
   File "/usr/local/lib/python3.6/site-packages/ntcore/callback_manager.py", line 116, in main 
     self.doCallback(listener.callback, item) 
   File "/usr/local/lib/python3.6/site-packages/ntcore/entry_notifier.py", line 79, in doCallback 
     callback(data) 
   File "/usr/local/lib/python3.6/site-packages/cscore/cameraserver.py", line 367, in _onTableChange 
     event.getEntry().setNumber(prop.get()) 
 AttributeError: 'EntryNotification' object has no attribute 'getEntry'
virtuald commented 6 years ago

This is a cscore bug, fixed in 2018.0.3 (will publish in a few minutes).

virtuald commented 6 years ago

Releases published.

auscompgeek commented 6 years ago

I am personally still of the opinion that entry events should have a getEntry. 🤷‍♂️

virtuald commented 6 years ago

They're namedtuples, they can't.