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

integration won't load #6

Closed
mygithandle opened this issue Jan 23, 2022 · 2 comments
Closed

integration won't load #6

mygithandle opened this issue Jan 23, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@mygithandle
Copy link

mygithandle commented Jan 23, 2022

extracted homeassistant-terncy-component-1.0.10 as instructed.

After re-start I have as below:
├── automations.yaml
├── blueprints
├── configuration.yaml
├── custom_components
   ├──__init__.py
   ├── pycache
   ├── binary_sensor.py
   ├── config_flow.py
   ├── const.py
   ├── cover.py
   ├── device_trigger.py
   ├── hub_monitor.py
   ├── light.py
   ├── manifest.json
   ├── sensor.py
   ├── strings.json
   ├── switch.py
   ├── translations
   ├──utils.py
├── deps
├── groups.yaml . . .
. . . .

Log:

Logger: homeassistant.loader
Source: custom_components/__init__.py:5 
Integration: __init__.py 
First occurred: 3:32:49 PM (1 occurrences) 
Last logged: 3:32:49 PM
Error loading custom_components.panel_custom. Make sure all dependencies are installed
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 639, in _load_file
    module = importlib.import_module(path)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/config/custom_components/__init__.py", line 5, in <module>
    import terncy
ModuleNotFoundError: No module named 'terncy'

This on:

HA Version | core-2021.12.10
Python Version | 3.9.7
Linux Version | 5.10.63-v8

How to fix ?

@mygithandle
Copy link
Author

resolved. must extract to new folder "terncy" in custom_components

successful structure is

After re-start I have as below:

├── automations.yaml
├── blueprints
├── configuration.yaml
├── custom_components
    ├── terncy
        ├──__init__.py
        ├── binary_sensor.py
        ├── config_flow.py
        ├── const.py
        ├── cover.py
        ├── device_trigger.py
. . . .
etc...

integration then works.

@rxwen suggest you modify GitHub install instructions

@rxwen
Copy link
Owner

rxwen commented Jan 24, 2022

Thanks for reporting. Fixed in b8380b2.

@rxwen rxwen closed this as completed Jan 24, 2022
@rxwen rxwen added the documentation Improvements or additions to documentation label Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants