Uowis
Novembre 27, 2023, 8:19
41
C’est un peu galère a trouver mais il y a un custom tracker bluetooth qui fonctionne il est sur l’issue dans github :
opened 06:04PM - 03 Mar 23 UTC
problem in dependency
waiting-for-upstream
integration: bluetooth_tracker
### The problem
I created new venv with python 3.11.2, installed HA Core 2023.3… .1 there and run hass --script check_config
I have a bluetooth tracker enabled in my configuration.
HA tries to install pybluez==0.22 and fails with error:
```
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -ljemalloc -DTHREAD_STACK_SIZE=0x100000 -fPIC -I./port3 -I/srv/homeassistant_3.11.2/include -I/usr/local/include/python3.11 -c bluez/btmodule.c -o build/temp.linux-armv7l-cpython-311/bluez/btmodule.o
bluez/btmodule.c: In function ‘PyInit__bluetooth’:
bluez/btmodule.c:2837:22: error: lvalue required as left operand of assignment
2837 | Py_TYPE(&sock_type) = &PyType_Type;
| ^
bluez/btmodule.c:2838:29: error: lvalue required as left operand of assignment
2838 | Py_TYPE(&sdp_session_type) = &PyType_Type;
| ^
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
```
With python 3.10.9 I had no issue at all (currently running venv).
I managed to install pybluez from source/github, however this did not solve the issue. Seems like device_tracker integration requires pybluez==0.22 and forces HA to install this version, which is not compatible with python 3.11.
I failed to migrate to venv python 3.11 because of this issue.
### What version of Home Assistant Core has the issue?
2023.3.1
### What was the last working version of Home Assistant Core?
2023.3.1
### What type of installation are you running?
Home Assistant Core
### Integration causing the issue
Bluetooth Tracker
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/bluetooth_tracker/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
```txt
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -ljemalloc -DTHREAD_STACK_SIZE=0x100000 -fPIC -I./port3 -I/srv/homeassistant_3.11.2/include -I/usr/local/include/python3.11 -c bluez/btmodule.c -o build/temp.linux-armv7l-cpython-311/bluez/btmodule.o
bluez/btmodule.c: In function ‘PyInit__bluetooth’:
bluez/btmodule.c:2837:22: error: lvalue required as left operand of assignment
2837 | Py_TYPE(&sock_type) = &PyType_Type;
| ^
bluez/btmodule.c:2838:29: error: lvalue required as left operand of assignment
2838 | Py_TYPE(&sdp_session_type) = &PyType_Type;
| ^
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
```
### Additional information
_No response_
Il y a plusieurs version dans le fil, personnellement ca marché des le premier essai.
@Pulpy-Luke a raison garder une vielle version t’expose a être reellement bloqué un jour avec trop chose (tout) à mettre a jour et refaire d’un coup.
1 « J'aime »
Bonjour, Uwois, oui je sais que @Pulpy-Luke a raison , … , mais comme j’ai dis, ce serait que pour la détéction bluetooth , que j’installerais une ancienne version sur unRPi3 ., qui enverrais les infos a mon HAos principal qui lui est à jour, et dés que les mises a jour inclueront le bluetooth et les version de
PyBluez , python et etc … , je l’enléve .
Merci pour le fil , je le connaissais pas celuis là … je vais peut etre essayer « custom tracker bluetooth », j’espere ne pas tout mettre en l’air …
Salut ! Je passais par là et je tombe sur ton post qui a résolu le problème également chez moi.
Un grand merci!
1 « J'aime »