bbremote: Is it deprecated?

Jonas Rebmann jre at pengutronix.de
Fri Jun 6 03:44:50 PDT 2025


Hi,

As bbremote seemed very well documented at
https://www.barebox.org/doc/latest/user/remote-control.html
today I wanted to try it but it seems incompatible with python 3.13.3:

$ scripts/bbremote --port /dev/ttyUSB0 run "ls"
Traceback (most recent call last):
   File "barebox/scripts/bbremote", line 3, in <module>
     import remote.main
   File "barebox/scripts/remote/main.py", line 287, in <module>
     res = args.func(args)
   File "barebox/scripts/remote/main.py", line 51, in handle_run
     ctrl.export(args.export.encode())
                 ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'encode'


Tere are more, similar issues after working around this one by 
specifying --export '':

$ scripts/bbremote --port /dev/ttyUSB0 --export '' run "ls"
Traceback (most recent call last):
   File "/home/jo/repos/barebox/scripts/bbremote", line 3, in <module>
     import remote.main
   File "/home/jo/repos/barebox/scripts/remote/main.py", line 287, in 
<module>
     res = args.func(args)
   File "/home/jo/repos/barebox/scripts/remote/main.py", line 52, in 
handle_run
     res = ctrl.command(' '.join(args.arg))
   File "/home/jo/repos/barebox/scripts/remote/controller.py", line 151, 
in command
     r = self._expect(BBPacketCommandReturn, timeout=None)
   File "/home/jo/repos/barebox/scripts/remote/controller.py", line 134, 
in _expect
     self._handle(bbpkt)
     ~~~~~~~~~~~~^^^^^^^
TypeError: '_thread._ThreadHandle' object is not callable


$ scripts/bbremote --port /dev/ttyUSB0 --export '' ping
does "pong" but I'm giving up on trying to use or fix bbremote for now.

Is the perspective to deprecate bbremote (in favor of what?) or to port 
it to current versions of python?

I would like to update either the script or the documentation.

Regards,
Jonas




More information about the barebox mailing list