* bbremote: Is it deprecated?
@ 2025-06-06 10:44 Jonas Rebmann
2025-06-06 11:13 ` Ahmad Fatoum
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Rebmann @ 2025-06-06 10:44 UTC (permalink / raw)
To: barebox
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bbremote: Is it deprecated?
2025-06-06 10:44 bbremote: Is it deprecated? Jonas Rebmann
@ 2025-06-06 11:13 ` Ahmad Fatoum
0 siblings, 0 replies; 2+ messages in thread
From: Ahmad Fatoum @ 2025-06-06 11:13 UTC (permalink / raw)
To: Jonas Rebmann, barebox
Hello Jonas,
On 6/6/25 12:44, Jonas Rebmann wrote:
> 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:
[snip]
> $ 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?
Can't comment on that, RATP precedes my involvement.
> I would like to update either the script or the documentation.
I thought it were already Python 3.0 compatible after the fixes in:
https://lore.barebox.org/barebox/20220908093005.3035259-1-s.hauer@pengutronix.de/
https://lore.barebox.org/barebox/20230207162055.10050-1-jmaselbas@kalray.eu/
https://lore.barebox.org/barebox/20241212071928.2466094-2-a.fatoum@pengutronix.de/
Any remaining incompatibilities are bugs IMO and need to be fixed, yes.
Cheers,
Ahmad
>
> Regards,
> Jonas
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-06 11:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-06 10:44 bbremote: Is it deprecated? Jonas Rebmann
2025-06-06 11:13 ` Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox