Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
p000 opened this issue Jun 18, 2018 · 7 comments
Open

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

p000 opened this issue Jun 18, 2018 · 7 comments

Comments

@p000
Copy link

p000 commented Jun 18, 2018

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
@ikalchev
Copy link
Owner

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

@p000
Copy link
Author

p000 commented Jun 18, 2018

HAP-python (2.2.2)

@cdce8p
Copy link
Contributor

cdce8p commented Jun 21, 2018

Are you using Windows?

Those other issues could be helpful
warner/python-ed25519#11
home-assistant/core#13560

@p000
Copy link
Author

p000 commented Jun 23, 2018

Yes I'm using windows

@ikalchev
Copy link
Owner

What about the python version?

@p000
Copy link
Author

p000 commented Jun 26, 2018

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

@carlos-leopoly
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants