HAP-python icon indicating copy to clipboard operation
HAP-python copied to clipboard

Persistent data is not working. So I cannot restart my home bridge.

Open p000 opened this issue 6 years ago • 7 comments

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

p000 avatar Jun 18 '18 13:06 p000

What's the version of HAP-python and python that you are using?

ikalchev avatar Jun 18 '18 16:06 ikalchev

HAP-python (2.2.2)

p000 avatar Jun 18 '18 20:06 p000

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

cdce8p avatar Jun 21 '18 22:06 cdce8p

Yes I'm using windows

p000 avatar Jun 23 '18 12:06 p000

What about the python version?

ikalchev avatar Jun 24 '18 19:06 ikalchev

Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32

p000 avatar Jun 26 '18 09:06 p000

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

carlos-leopoly avatar Sep 20 '18 15:09 carlos-leopoly