Index | Thread | Search

From:
Aaron Bieber <aaron@bolddaemon.com>
Subject:
Re: [UPDATE] net/{py-rns,py-lxmf,nomadnet} to 0.9.3, 0.6.3, 0.6.1
To:
openbsd@systemfailure.net, ports@openbsd.org, Stuart Henderson <sthen@openbsd.org>
Date:
Tue, 18 Mar 2025 07:36:06 -0600

Download raw body.

Thread

On 3/17/25 11:55, Stuart Henderson wrote:
> On 2025/03/17 16:51, openbsd@systemfailure.net wrote:
>> On Monday, March 17th, 2025 at 11:56 AM, Stuart Henderson <stu@spacehopper.org> wrote:
>>
>>> On 2025/03/16 21:23, openbsd@systemfailure.net wrote:
>>>
>>>> On 2025/03/14 14:13, Aaron Bieber aaron@bolddaemon.com wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Here are updates to the Reticulum stack. Nomadnet runs fine for me.
>>>>>
>>>>> I'll probably commit this today or tomorrow if I no one objects.
>>>>>
>>>>> Cheers,
>>>>> Aaron
>>>> Hi, thanks for updating these ports.
>>>>
>>>> py-rns-0.9.3 works fine, as far as I tested, but 'make test' fails: see the attached log file.
>>>>
>>>> Moreover, it would be very useful to include a README for people wanting to use rnodeconf, since its usage on OpenBSD is not documented anywhere. Patch attached.
>>>>
>>>> Best regards.
>>>
>>> Here's a tiny tweak to your Makefile diff (tabs not spaces), and fix
>>> tests if cython is present when they're run.
>> Thank you Stuart, 'make test' can now be run with your fix.
>>
>> However, to make tests pass (at least most of them), I had to reintroduce another fix you submitted previously (the "pre-test" trick), that was forgotten by Aaron.
> Ah yes, seems I had a /usr/local/bin/python lying around, probably
> from last time I looked at this :)
>
>> With the attached patch, all tests are passing except one - the one that was already failing. The port is running fine anyway.
> +pre-test:
> +                       ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
>
> btw, usually just the one tab for instructions after targets like that.
> (no need to send a new diff for that).
>
> I took a look at adafruit-nrfutil, seems it is not really compatible
> with Python 3.12, and it would be better to provide a port rather than
> ask people to use pip. (Would probably make sense to have it as a
> run dependency of py-rns so users don't have to mess about).
>
> I've attached a first attempt at a port, there are patches to fix
> problems I saw with 'adafruit-nrfutil keys'. I don't have hardware to
> test any of the dfu bits.
>
Tried flashing a T-Echo with rnodeconf - it errors with:

Traceback (most recent call last):
   File "/usr/local/bin/rnodeconf", line 8, in <module>
     sys.exit(main())
              ^^^^^^
   File 
"/usr/local/lib/python3.12/site-packages/RNS/Utilities/rnodeconf.py", 
line 1650, in main
     if selected_port == None:
        ^^^^^^^^^^^^^^^^^^^^^
   File 
"/usr/local/lib/python3.12/site-packages/serial/tools/list_ports_common.py", 
line 74, in __eq__
     return self.device == other.device
                           ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'device'

Seems our serial package is lacking something as the pip installed 
version works.