HAP-python
HAP-python copied to clipboard
Persistent data is not working. So I cannot restart my home bridge.
INFO:pyhap.accessory_driver:Loading Accessory state from `data`
Traceback (most recent call last):
File "D:/Projects/OnGoing/viper/temp.py", line 192, in <module>
driver.add_accessory(accessory=get_bridge(driver))
File "D:\Projects\OnGoing\viper\venv\lib\site-packages\pyhap\accessory_driver.py", line 330, in add_accessory
self.load()
File "D:\Projects\OnGoing\viper\venv\lib\site-packages\pyhap\accessory_driver.py", line 445, in load
self.encoder.load_into(fp, self.state)
File "D:\Projects\OnGoing\viper\venv\lib\site-packages\pyhap\encoder.py", line 78, in load_into
state.private_key = ed25519.SigningKey(fromhex(loaded['private_key']))
File "D:\Projects\OnGoing\viper\venv\lib\site-packages\ed25519\keys.py", line 85, in __init__
vk_s, sk_s = _ed25519.publickey(sk_s)
MemoryError
What's the version of HAP-python and python that you are using?
HAP-python (2.2.2)
Are you using Windows?
Those other issues could be helpful https://github.com/warner/python-ed25519/issues/11 https://github.com/home-assistant/home-assistant/issues/13560
Yes I'm using windows
What about the python version?
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Same issue here:
Windows platform running in Python virtual environment:
Home Assistant release with the issue: 0.76.2 Last working Home Assistant release (if known): Operating environment (Hass.io/Docker/Windows/etc.) Windows Windows 10 running python 3.6.5 Component/platform: HomeKit, https://www.home-assistant.io/components/homekit/
Let me know if you need any additional data