You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/ryan/src/test2/test_server.py", line 16, in start
await self.__server.start()
File "/home/ryan/anaconda3/envs/test-bless2/lib/python3.11/site-packages/bless/backends/bluezdbus/server.py", line 87, in start
await self.app.register(self.adapter)
File "/home/ryan/anaconda3/envs/test-bless2/lib/python3.11/site-packages/bless/backends/bluezdbus/dbus/application.py", line 138, in register
await iface.call_register_application(self.path, {}) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ryan/anaconda3/envs/test-bless2/lib/python3.11/site-packages/dbus_next/aio/proxy_object.py", line 92, in method_fn
BaseProxyInterface._check_method_return(msg, intr_method.out_signature)
File "/home/ryan/anaconda3/envs/test-bless2/lib/python3.11/site-packages/dbus_next/proxy_object.py", line 62, in _check_method_return
raise DBusError._from_message(msg)
dbus_next.errors.DBusError: No valid service object found
Reproduction
Run code as follows:
import asyncio
from bless import BlessServer
class Advertiser:
def __init__(self):
self.__server : BlessServer = None
async def start(self, friendly_name : str):
self.__server = BlessServer(friendly_name)
await self.__server.start()
async def stop(self):
if self.__server is None:
return
await self.__server.stop()
if __name__ == "__main__":
# Handle bluetooth stack.
id = "20b9180c-555e-4d2a-83bb-6208323cf91b"
advertiser = Advertiser()
event_loop = asyncio.new_event_loop()
event_loop.run_until_complete(advertiser.start("name"))
event_loop.run_forever()
Expected behavior
Service should be advertised over python
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Ubuntu Linux (reproduced on both 22.04 and 24.04)
Code version: Both the version pulled by pip and the main branch of this repo.
Both when code is run as sudo and when run normally
Additional context
I spent hours on this. I've attached some of the files I've generated while trying to debug it, in case they help you more than they did me:
Please take a look when you can. Once I get this solved, I plan to push a PR up (it's just pending validation) to add manufacturer_data to the advertisement data
The text was updated successfully, but these errors were encountered:
The problem
Reproduction
Run code as follows:
Expected behavior
Service should be advertised over python
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
pip
and themain
branch of this repo.sudo
and when run normallyAdditional context
I spent hours on this. I've attached some of the files I've generated while trying to debug it, in case they help you more than they did me:
dbus-monitor.txt
service-status.txt
Please take a look when you can. Once I get this solved, I plan to push a PR up (it's just pending validation) to add
manufacturer_data
to the advertisement dataThe text was updated successfully, but these errors were encountered: