1 2 3 4 5 6 7 8 |
#!/usr/bin/python3.6 from haproxystats import HAProxyServer class HAProxyServer: haproxy = HAProxyServer( 'x.x.x.x:x222' ) for b in haproxy.backends: print ( '%s: %s' % (b.name, b.status)) |
python3.6 hatop.py
File "hatop.py", line 3, in <module>
from haproxystats import HAProxyServer
ImportError: cannot import name 'HAProxyServer'