Traceback (most recent call last):


 "/usr/lib/python3.5/asyncio/events.py", line 125, in _run

self._callback(*self._args)


 "./async_io.py", line 153, in connection_made

self.urwid_loop.start()


 "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 337, in start

self.screen.start()


 "/usr/local/lib/python3.5/dist-packages/urwid/display_common.py", line 751, in start

self._start(*args, **kwargs)


 "/usr/local/lib/python3.5/dist-packages/urwid/raw_display.py", line 219, in _start

fd = self._term_input_file.fileno()
AttributeError: 'NoneType' object has no attribute 'fileno'


Traceback (most recent call last):


 "/home/pi/myTest.py", line 250, in <module>

resetBut = Button(reset_pin, bounce_time=0.020)


 "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 124, in __call__

self = super(GPIOMeta, cls).__call__(*args, **kwargs)


 "/usr/lib/python3/dist-packages/gpiozero/input_devices.py", line 432, in __init__

bounce_time=bounce_time, pin_factory=pin_factory)


 "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 383, in __init__

super(HoldMixin, self).__init__(*args, **kwargs)


 "/usr/lib/python3/dist-packages/gpiozero/input_devices.py", line 188, in __init__

self._fire_events(self.pin_factory.ticks(), self.is_active)


 "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 368, in _fire_events

self._fire_activated()


 "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 398, in fire_activated

self._hold_thread.holding.set()

AttributeError: 'NoneType' object has no attribute 'holding'