Install & Compatibility
Where this runs
tested against v1.1.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.142s · 17.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.128s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ZabbixAPI
✓ from pyzabbix import ZabbixAPI
✗ from py_zabbix import ZabbixAPI
Hyphen in library name but underscore in Python package
ZabbixMetric
✓ from pyzabbix import ZabbixMetric
ZabbixSender
✓ from pyzabbix import ZabbixSender
Connect to Zabbix API and print the API version.
from pyzabbix import ZabbixAPI
zapi = ZabbixAPI('http://zabbix.example.com')
zapi.login('user', 'password')
print('Connected to Zabbix API version %s' % zapi.api_version())
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pyzabbix'
Installed py-zabbix but imported with wrong name or not installed.
fixRun 'pip install py-zabbix' and import as 'from pyzabbix import ...'.
zabbix.api.ZabbixAPIException: Invalid JSON. Check Zabbix server version.
Using JSON-RPC call with incompatible Zabbix version or malformed request.
fixEnsure Zabbix server version matches py-zabbix supported versions; check API endpoint URL.
AttributeError: module 'pyzabbix' has no attribute 'ZabbixSender'
Older version of py-zabbix without ZabbixSender class.
fixUpgrade py-zabbix to 1.1.3+ with 'pip install --upgrade py-zabbix'.
Upgrade
Version history
1.1.7latest on PyPI · released Apr 29, 2020
Audit
Dependencies
No dependency data recorded yet.