Closed eliasp closed 1 year ago
This was caused by the fact, that NixOS uses the wrong (original upstream) pyasn1, instead of the fork pysnmp-pyasn1 as required by pysnmp's pyproject.toml
.
Thanks for your report. This is the same issue as #17. I released version 0.5.3 which might fix this issue. However @Dragunovam added pyasn1
as a dependency in #18 instead of pysnmp-pyasn1
. Unfortunately, I can't test the release as I don't have access to a brother printer or any other SNMP device.
Hi @eliasp my fork runs on my end with multiple brother devices, testing on a few Linux machines works so far. I checked the nixos packages and it seems like you might need some different accommodations that are specific to nixos's needs and handling of packages. One of the main issues addressed by the newer pyasn1 0.5.1 is the breaking change in release 0.5.0 discussed here Use correct argument type for valueDecoder method #30.
You could try to make the small changes to pysnmp-pyasn1 on your own fork and report back your findings?
Thanks for your answer!
Executing
brother_printer_fwupd --printer=10.13.1.212
results in:Running on NixOS, with: