-
When I try to run my program using pybricksdev I get this error: /home/usr/src/robotics/.venv/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from this module in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4
/home/usr/src/robotics/.venv/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import TripleDES
Searching for any hub with Pybricks service...
Traceback (most recent call last):
File "/home/usr/src/robotics/.venv/bin/pybricksdev", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/pybricksdev/cli/__init__.py", line 389, in main
asyncio.run(subparsers.choices[args.tool].tool.run(args))
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/pybricksdev/cli/__init__.py", line 192, in run
device_or_address = await find_device(args.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/pybricksdev/ble/__init__.py", line 63, in find_device
device = await BleakScanner.find_device_by_filter(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/bleak/__init__.py", line 444, in find_device_by_filter
async with cls(**kwargs) as scanner:
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/bleak/__init__.py", line 158, in __aenter__
await self._backend.start()
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/scanner.py", line 168, in start
manager = await get_global_bluez_manager()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/manager.py", line 1072, in get_global_bluez_manager
await instance.async_init()
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/manager.py", line 300, in async_init
assert_reply(reply)
File "/home/usr/src/robotics/.venv/lib/python3.12/site-packages/bleak/backends/bluezdbus/utils.py", line 20, in assert_reply
raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.freedesktop.DBus.Error.NameHasNoOwner] Could not activate remote peer 'org.bluez': activation request failed: unknown unit Most likely its a driver problem but as I never had to deal with anything like this I would like to know if anybody has an Idea of how to resolve this. Thanks a lot and have a nice day! |
Beta Was this translation helpful? Give feedback.
Answered by
dlech
Aug 15, 2024
Replies: 1 comment 3 replies
-
It sounds like BlueZ ( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you running pybricksdev in the same directory where
main.py
is located?