mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jonas Rebmann <jre@pengutronix.de>
To: barebox@lists.infradead.org
Subject: bbremote: Is it deprecated?
Date: Fri, 6 Jun 2025 12:44:50 +0200	[thread overview]
Message-ID: <6e00946c-aeec-4f27-b4fc-a81920f79752@pengutronix.de> (raw)

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




             reply	other threads:[~2025-06-06 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-06 10:44 Jonas Rebmann [this message]
2025-06-06 11:13 ` Ahmad Fatoum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e00946c-aeec-4f27-b4fc-a81920f79752@pengutronix.de \
    --to=jre@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox