Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TypeError
#8
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 = None
The 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?
Reply


Messages In This Thread
TypeError - by kcajminer2312 - May-17-2020, 06:44 PM
RE: TypeError - by ndc85430 - May-17-2020, 06:50 PM
RE: TypeError - by kcajminer2312 - May-17-2020, 06:57 PM
RE: TypeError - by deanhystad - May-17-2020, 07:06 PM
RE: TypeError - by kcajminer2312 - May-17-2020, 07:08 PM
RE: TypeError - by deanhystad - May-17-2020, 07:41 PM
RE: TypeError - by kcajminer2312 - May-17-2020, 07:46 PM
RE: TypeError - by deanhystad - May-17-2020, 08:04 PM
RE: TypeError - by kcajminer2312 - May-17-2020, 08:18 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020