Open Martons00 opened 10 months ago
Hello Martons00, This is tricky: when you activate the venv, it automatically sets the PYTHONPATH environment variable to include the venv site-packages directory; since you activate the venv as a normal user but then run the scripts as super user (because the BLE requires this), then the path is not found. Do become super user before activating the venv, and everything should work:
Regards, Davide
Thanks you, now it โs working But I canโt find any devices. (SensorTile.BoxPRO) The sensor works properly with the mobile app(iOS)
On Fri, 12 Jan 2024 at 12:14, davidroid @.***> wrote:
Hello Martons00, This is tricky: when you activate the venv, it automatically sets the PYTHONPATH environment variable to include the venv site-packages directory; since you activate the venv as a normal user but then run the scripts as super user (because the BLE requires this), then the path is not found. Do become super user before activating the venv, and everything should work:
- sudo su
- source .venv/bin/activate
- python3 example_ble_1.py
Regards, Davide
โ Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/BlueSTSDK_Python/issues/34#issuecomment-1888904961, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYPH6FQ3JZM7F5JF7M3APQ3YOELJXAVCNFSM6AAAAABBXM6FC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYHEYDIOJWGE . You are receiving this because you authored the thread.Message ID: @.***>
This is because we are adding the support to this board right now; you can see the list of the currently supported boards here: https://github.com/STMicroelectronics/BlueSTSDK_Python?tab=readme-ov-file#advertising-data We'll be releasing a new version of the SDK soon, by end of January.
Regards, Davide
Ah... my bad. Thanks you. I ll wait that version ๐
This is because we are adding the support to this board right now; you can see the list of the currently supported boards here: https://github.com/STMicroelectronics/BlueSTSDK_Python?tab=readme-ov-file#advertising-data We'll be releasing a new version of the SDK soon, by end of January.
Regards, Davide
Hi Davide, I'm coming through the same issue, and I was becoming crazy too until I read this post and your reply. My enterprise bought the SensorTile.Box Pro to have something more than the standard version, but without the possibility to use the SDK for the acquisition of BTLE data, we are completely stuck to a pole. Is there any information on when will the new SDK be released? Regards, Francesco
Ah... my bad. Thanks you. I ll wait that version ๐
Hi Martons00, have you found any solution for this problem? I tried to fix the Python SDK based on information collected in the Android SDK (which already supports the SensorTile.Box Pro), but I don't know why it is not working...
I'm waiting for the new version but ... โ ๏ธ I don't know if it will be released. The alternative is to study the mobile version and write by your own the script in python.
Sto usando un RPi4, devo usare una venv per le librerie ma niente da fare. I'm using an RPi4, I need to use a venv for libraries, but I'm not having any luck.