Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


6.2 error msg after in place update
#8
(09-07-2019, 11:52 AM)TheOldPresbyope Wrote: At a guess, the sysinfo testing takes longer because it now has to fire off a Python process to get the version of the new RPi.GPIO script.

Regards,
Kent

Correct. I'm using the command below to fetch the version. It can take up to 15 secs depending on system speed.
Code:
RPI_GPIO_VER=$(pip3 show RPi-GPIO | grep Version | awk '{ print  $2 }')

It can be replaced with the code below and then it's instantaneous :-)
Code:
RPI_GPIO_VER=$(grep -iRl "RPi.GPIO-" /usr/local/lib/python3.7/dist-packages/ | awk -F "." '{print $3 "." $4 "." $5}' | cut -f 2 -d "-")

I'll plan to release a patch update: 6.2.1 to get this and any other fixes out.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
6.2 error msg after in place update - by JonPike - 09-07-2019, 07:21 AM
RE: 6.2 error msg after in place update - by Tim Curtis - 09-07-2019, 12:55 PM

Forum Jump: