Logger: homeassistant.loader
Source: custom_components/oilprice/sensor.py:35
Integration: oilprice (documentation)
First occurred: 20:41:58 (1 occurrences)
Last logged: 20:41:58
Unexpected exception importing platform custom_components.oilprice.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/oilprice/sensor.py", line 35, in <module>
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'
错误2:
Unable to install package pybluez==0.22: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [19 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-311 creating build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/__init__.py -> build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/widcomm.py -> build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/osx.py -> build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/msbt.py -> build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/btcommon.py -> build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/bluez.py -> build/lib.linux-x86_64-cpython-311/bluetooth copying bluetooth/ble.py -> build/lib.linux-x86_64-cpython-311/bluetooth running build_ext building 'bluetooth._bluetooth' extension creating build/temp.linux-x86_64-cpython-311 creating build/temp.linux-x86_64-cpython-311/bluez gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I./port3 -I/usr/local/include/python3.11 -c bluez/btmodule.c -o build/temp.linux-x86_64-cpython-311/bluez/btmodule.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pybluez ERROR: Could not build wheels for pybluez, which is required to install pyproject.toml-based projects
错误3:
Platform error: device_tracker - Requirements for bluetooth_tracker not found: ['pybluez==0.22'].