I tried to repurpose my trusty old RPI1 B rev 2.0 as a environment sensor platform. I purchased a ms430 and tried to use the example python scripts.
Unfortunately the lib rpi-lgpio crashed with the error message:
"NotImplementedError - 'This module does not understand old-style revision codes'"
After poking aroung in: /usr/lib/python3/dist-packages/RPi/GPIO/__init__.py
I found def _get_rpi_info() and applied my own 'sledgehammer method' there.
I hardcoded the following right at the beginning of def _get_rpi_info():
This obviously circumvents the whole revsion-parsing stuff in def _get_rpi_info()` and I am not sure at all if this hack has some nasty side effects but in my case it worked like a charm: I can now use the Metriful sensor example python scripts without any problem.
I also opened an issue at the githup repo of rpi-lgpio but I think the Readme in here should be updated with a workaround for RPI B rev. 2.0 users like me ;-)
I tried to repurpose my trusty old RPI1 B rev 2.0 as a environment sensor platform. I purchased a ms430 and tried to use the example python scripts.
Unfortunately the lib rpi-lgpio crashed with the error message: "NotImplementedError - 'This module does not understand old-style revision codes'"
After poking aroung in:
/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py
I founddef _get_rpi_info()
and applied my own 'sledgehammer method' there. I hardcoded the following right at the beginning ofdef _get_rpi_info()
:This obviously circumvents the whole revsion-parsing stuff in def _get_rpi_info()` and I am not sure at all if this hack has some nasty side effects but in my case it worked like a charm: I can now use the Metriful sensor example python scripts without any problem.
I also opened an issue at the githup repo of rpi-lgpio but I think the Readme in here should be updated with a workaround for RPI B rev. 2.0 users like me ;-)