Please help with hb_parrot.py


EA5GVK Joaquin
 

Hi
Every time I want to run the module hb_parrot.py and connect some client, it does not leave and it leaves in the log.
Please help.

pi@raspberrypi:~/Applications/HB/HBLink $ sudo ./hb_parrot.py
DEBUG 2018-08-20 18:00:50,131 Logging system started, anything from here on gets logged
INFO 2018-08-20 18:00:50,132 ID ALIAS MAPPER: 'peer_ids.csv' is current, not downloaded
INFO 2018-08-20 18:00:50,133 ID ALIAS MAPPER: 'subscriber_ids.csv' is current, not downloaded
INFO 2018-08-20 18:00:50,207 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2018-08-20 18:00:51,286 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2018-08-20 18:00:51,287 HBlink TCP reporting server configured
DEBUG 2018-08-20 18:00:51,289 Periodic reporting loop started
INFO 2018-08-20 18:00:51,291 HBlink 'hb_parrot.py' (c) 2016 N0MJS & the K0USY Group - SYSTEM STARTING...
DEBUG 2018-08-20 18:00:51,294 (MASTER-1) Master maintenance loop started
DEBUG 2018-08-20 18:00:51,295 MASTER instance created: MASTER-1, <__main__.parrot instance at 0x75dfb1c0>
DEBUG 2018-08-20 18:00:56,299 (MASTER-1) Master maintenance loop started
DEBUG 2018-08-20 18:01:01,299 (MASTER-1) Master maintenance loop started
DEBUG 2018-08-20 18:01:06,298 (MASTER-1) Master maintenance loop started
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 86, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
    why = selectable.doRead()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 249, in doRead
    self.protocol.datagramReceived(data, addr)
  File "/home/pi/Applications/HB/HBLink/hblink.py", line 326, in master_datagramReceived
    if allow_reg(_peer_id):                    # Check for valid Radio ID
exceptions.NameError: global name 'allow_reg' is not defined

DEBUG 2018-08-20 18:01:11,294 (MASTER-1) Master maintenance loop started

Join main@DVSwitch.groups.io to automatically receive all group messages.