Git Product home page Git Product logo

qss's People

Contributors

cm000n avatar dependabot[bot] avatar mgumz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wolffshots mgumz

qss's Issues

qss v0.0.4 not compatible with HA 2023.06+

Describe the bug
QSS integration not starting giving error:

Эта ошибка возникла в пользовательской интеграции.

Logger: homeassistant.loader
Source: custom_components/qss/io.py:8
Integration: qss (documentation, issues)
First occurred: 00:34:50 (1 occurrences)
Last logged: 00:34:50

Unexpected exception importing component custom_components.qss
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/qss/init.py", line 38, in
from .io import insert_event_data_into_questdb
File "/config/custom_components/qss/io.py", line 8, in
from tenacity import retry, retry_if_exception_type, stop_after_attempt, wait_fixed
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 451, in
from tenacity._asyncio import AsyncRetrying
File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 33, in
class AsyncRetrying(BaseRetrying):
File "/usr/local/lib/python3.11/site-packages/tenacity/_asyncio.py", line 41, in AsyncRetrying
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

To Reproduce
start HA

Expected behavior
loading with HA

Probably issue is connected to python 3..11

Failed to complete TLS handshake: unexpected end of file

Describe the bug
Fresh QuestDB install (docker), initial load produces this log entry in home assistant:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/qss/io.py", line 43, in _retry_data_insertion
    _insert_row(host, port, auth, event)
  File "/config/custom_components/qss/io.py", line 17, in _insert_row
    with Sender(host, port, auth=auth, tls=tls) as sender:
  File "src/questdb/ingress.pyx", line 1530, in questdb.ingress.Sender.__enter__
  File "src/questdb/ingress.pyx", line 1520, in questdb.ingress.Sender.connect
questdb.ingress.IngressError: Failed to complete TLS handshake: unexpected end of file

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/config/custom_components/qss/__init__.py", line 156, in run
    insert_event_data_into_questdb(self.host, self.port, self.auth, event, self.queue)
  File "/config/custom_components/qss/io.py", line 48, in insert_event_data_into_questdb
    _retry_data_insertion(host, port, auth, event)
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tenacity/__init__.py", line 326, in iter
    raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x7f7dcd0b45d0 state=finished raised IngressError>]

To Reproduce
Steps to reproduce the behavior:

Run QuestDB with docker-compose:

version: '2.4'
services:
    questdb:
        container_name: questdb
        restart: unless-stopped
        image: questdb/questdb:latest
        ports:
            - 9000:9000 # REST/CONSOLE
            - 8812:8812 # POSTGRES-WIRE
            - 9009:9009 # INFLUXDB-LINE
        volumes:
          - questdb:/var/lib/questdb

volumes:
  questdb:

Add qss and configure it like this (obviously replace the host):

qss:
  host: "10.0.0.17"
  port: 9009

Expected behavior
Create the table and insert data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.