Okay, sorry I have nothing else. Just FYI, a "partial update" scenario exists when a user updates only some of the packages that are in need of updating. Or, what's more likely, installs an up-to-date application or system component (qt5-base, say) without the benefit of updating everything else necessary. That's where/when breakage will occur along with a variety of system instabilities.
So, at least you get something outta this thread.
"A little knowledge is a dangerous thing.
Go to school, get a little knowledge.
~from the film, "Lord, Love a Duck" circa 1964/5
Creating your own code to run on Python programming and setting it to execute so that it would be a functioning, executable file that world work without issue because my now, I did recheck the code so many times and still got the same error.
It is on my path, but let me rest a bit before I get that to you.