Bartosz Gołaszewski

Results 60 comments of Bartosz Gołaszewski

Is this a problem though? It does what the documentation says it does. I'm not against doing it in Python but I'm wondering if this is a bug or a...

It's not that implicit though - if you try to use this config to reconfigure the request, it will fail. Sounds quite explicit to me. :)

Yeah, I can confirm, looks like a bug, especially when `chip.request_lines()` works fine with None.

You mean something like `req.reconfigure_lines(config=None)`? That doesn't make any sense though, right?

I see. This is python so I wouldn't be too strict. I would even go as far as allowing `req.reconfigure_lines(config=gpiod.LineSettings())` where in case of not specifying the offsets, we'd just...

> That would be an extension to the existing config definition, which I quoted above, and corresponding reconfigure_lines() signature - it is supposed to be a dict from tuples of...

> I'm not suggesting adding that as part of this fix - being able to override the default config is a step too far for this issue IMHO, but I...

Please also note that this is reported by `ldd`: ``` # ldd /usr/lib/python3.12/site-packages/gpiod/_ext.cpython-312-x86_64-linux-musl.so ldd (0x7f9f345c7000) libc.musl-x86_64.so.1 => ldd (0x7f9f345c7000) Error relocating /usr/lib/python3.12/site-packages/gpiod/_ext.cpython-312-x86_64-linux-musl.so: PyDict_Next: symbol not found Error relocating /usr/lib/python3.12/site-packages/gpiod/_ext.cpython-312-x86_64-linux-musl.so: PyLong_AsSize_t:...

> @brgl Can you try installing gpiod in a virtualenv? > > ``` > cd `mktemp -d` > python3 -m venv venv > . venv/bin/activate > pip install gpiod==2.2.0 >...

I know I can install from sdist, that's not an issue. We've had a recipe for yocto for a long time. I'm only using yocto as a minimal system with...