Yoda-x / ha-zha-new

update of the zha component
56 stars 10 forks source link

zha-new suddenly stops... #72

Closed MYeager1967 closed 5 years ago

MYeager1967 commented 5 years ago

I looked at my HA installation a bit ago and realized that zha-new was erroring out. This is the closest thing I can figure is causing it and I notice in the git repository, something was changed (looks like yesterday). I had to manually install files before with your help, but I don't remember how we did it.

Not initializing zha_new because could not install requirement https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.4-Ypre

https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.4-Ypre: HTTP error 404 while getting https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.4-Ypre Could not install requirement https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.4-Ypre because of error 404 Client Error: Not Found for url: https://codeload.github.com/Yoda-x/zigpy/zip/preview Could not install requirement https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.4-Ypre because of HTTP error 404 Client Error: Not Found for url: https://codeload.github.com/Yoda-x/zigpy/zip/preview for URL https://github.com/Yoda-x/zigpy/archive/preview.zip#zigpy==0.1.4-Ypre You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

Yoda-x commented 5 years ago

I did some cleanups of the preview branches. Can you please switch/update your zha_new to the preview branch? This should fix it.

Thanks

MYeager1967 commented 5 years ago

I'm a git amatuer. How do I change it? I'll make notes this time to see if I can avoid this issue in the future... Here's what I've done so far, did a git pull on the directory and copied the files to the correct location. Probably screwed it up worse than before. :-)

On Wed, Jan 9, 2019, 5:59 AM Yoda-x <notifications@github.com wrote:

I did some cleanups of the preview branches. Can you please switch/update your zha_new to the preview branch? This should fix it.

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Yoda-x/ha-zha-new/issues/72#issuecomment-452656788, or mute the thread https://github.com/notifications/unsubscribe-auth/AEwS9rcg_r1GzHQOPpttW3WPI2UELK0eks5vBct5gaJpZM4Z2S5t .

Yoda-x commented 5 years ago

just copy from the zip the files in dir custom_components over the files in you config_dir/custom_components dir. And do a restart What you did should also be ok, just make sure the directory structure is the same

MYeager1967 commented 5 years ago

I'll delete all the old files in a bit and try again. 🙂

Update. Deleted all the old files and now I'm getting two errors. The first just says unable to find zha_new. The second one is as follows:

Error loading custom_components.zha_new. Make sure all dependencies are installed Traceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 86, in get_component module = importlib.import_module(path) File "/usr/lib/python3.5/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 673, in exec_module File "", line 222, in _call_with_frames_removed File "/home/homeassistant/.homeassistant/custom_components/zha_new/init.py", line 31, in from homeassistant.helpers.restore_state import RestoreEntity ImportError: cannot import name 'RestoreEntity'

The first few lines of this file are the same ones that should load the dependencies and this is where I had the trouble before...

REQUIREMENTS = [

'https://github.com/Yoda-x/bellows/archive/ng.zip#bellows==100.7.4.3.dev*',

           'https://github.com/Yoda-x/bellows/archive/master.zip#bellows==100.7.4.5',

'https://github.com/Yoda-x/zigpy/archive/ng.zip#zigpy==100.1.4.1.dev*',

            'https://github.com/Yoda-x/zigpy/archive/master.zip#zigpy==100.1.4.2',
            ]

We did it before, I just have no clue how...

Yoda-x commented 5 years ago

this version needs the newest hass >=0.84, so please update you hass installation. Not sure what kind if installation you have ? plain install, venv, docker, hassio?

Yoda-x commented 5 years ago

where you able to get it running again?

Yoda-x commented 5 years ago

any news?

MYeager1967 commented 5 years ago

I replied by email twice now, not sure why they aren't showing up. Everything is working perfectly again as far as zha-new is concerned.

Yoda-x commented 5 years ago

perfect, and many thanks