May-17-2020, 08:04 PM
Ok, grabbed the code from GitHub
class PiHole(object): <snip> # Takes in an ip address of a pihole server def __init__(self, ip_address): self.ip_address = ip_address self.auth_data = None self.refresh() self.pw = NoneThe example.py must be some older version. Now I am confused about why you didn't get an error complaining about not finding ph.pyhole since the class is named PyHole. Very interesting that your original post mentions not providing arguments for loop and session. Are you having problems running your program on some machines but not others? Is there a pihole version skew problem?