Traceback (most recent call last):


 "/usr/lib/python3.5/runpy.py", line 174, in _run_module_as_main

mod_name, mod_spec, code = _get_module_details(mod_name, _Error)


 "/usr/lib/python3.5/runpy.py", line 133, in _get_module_details

return _get_module_details(pkg_main_name, error)


 "/usr/lib/python3.5/runpy.py", line 109, in _get_module_details

__import__(pkg_name)


 "/home/cegprakash/.local/share/virtualenvs/python-engine-USisEXbk/lib/python3.5/site-packages/spacy/__init__.py", line 8, in <module>

from thinc.neural.util import prefer_gpu, require_gpu


 "/home/cegprakash/.local/share/virtualenvs/python-engine-USisEXbk/lib/python3.5/site-packages/thinc/neural/__init__.py", line 1, in <module>

from ._classes.model import Model


 "/home/cegprakash/.local/share/virtualenvs/python-engine-USisEXbk/lib/python3.5/site-packages/thinc/neural/_classes/model.py", line 12, in <module>

from ..train import Trainer


 "/home/cegprakash/.local/share/virtualenvs/python-engine-USisEXbk/lib/python3.5/site-packages/thinc/neural/train.py", line 3, in <module>

from .optimizers import Adam, SGD, linear_decay


 "optimizers.pyx", line 13, in init thinc.neural.optimizers


 "cymem.pxd", line 4, in init thinc.neural.ops
AttributeError: module 'cymem.cymem' has no attribute 'PyMalloc'

Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform

await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)


 "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for

return fut.result()


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/binary_sensor.py", line 52, in setup_platform

address, port_num, pull_mode, bouncetime


 "/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/__init__.py", line 48, in setup_input

pin_factory=PiGPIOFactory(address),


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

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


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

bounce_time=bounce_time, pin_factory=pin_factory)


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

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


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

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


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

self._fire_activated()


 "/usr/local/lib/python3.7/site-packages/gpiozero/mixins.py", line 398, in _fire_activated

self._hold_thread.holding.set()
AttributeError: 'NoneType' object has no attribute 'holding'
