I vary rarely use Python and I don't much like it, but sometimes it's handy because someone else has done 90% of what I need, particularly where Raspian is concerned.
So by this means, I have a Python3 script that's been running every fifteen minutes for literally years. It uses sleep() without a time. prefix and until yesterday, all that was needed was
Yesterday I ran an unsupervised apt-get update & upgrade and apparently now I need
or I get something like
Has some default Python setting been tightened up in my distro? Searching, I see that many people have had similar issues, but not recently.
So by this means, I have a Python3 script that's been running every fifteen minutes for literally years. It uses sleep() without a time. prefix and until yesterday, all that was needed was
Code:
import time
Yesterday I ran an unsupervised apt-get update & upgrade and apparently now I need
Code:
import sleep from time
Code:
name error: name 'sleep' is not defined