Install & Compatibility
Where this runs
tested against v1.12.0 · 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.402s · 30.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.7s · import 0.354s · 31MB
30MB installed
● package 30MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
ClientXMPP
✓ from slixmpp import ClientXMPP
✗ import sleekxmpp
Slixmpp is a fork of SleekXMPP; do not use SleekXMPP imports.
ComponentXMPP
✓ from slixmpp import ComponentXMPP
IQ
✓ from slixmpp import Iq
✗ from slixmpp.stanza import IQ
Iq (not IQ) is the correct class name; case matters.
JID
✓ from slixmpp import JID
Connect to an XMPP server, handle session start, and echo messages back.
import asyncio
from slixmpp import ClientXMPP
class EchoBot(ClientXMPP):
def __init__(self, jid, password):
super().__init__(jid, password)
self.add_event_handler("session_start", self.start)
self.add_event_handler("message", self.message)
async def start(self, event):
self.send_presence()
self.get_roster()
async def message(self, msg):
if msg['type'] in ('chat', 'normal'):
msg.reply("Thanks for sending: " + msg['body']).send()
async def main():
xmpp = EchoBot('user@example.com', 'password')
xmpp.connect()
await xmpp.process()
asyncio.run(main())
Errors
Common errors & fixes
ImportError: cannot import name 'ClientXMPP' from 'slixmpp'
Incorrect installation or using a very old version (pre-fork).
fixEnsure you have the correct package: pip install slixmpp. The import is 'from slixmpp import ClientXMPP'.
TypeError: object NoneType can't be used in 'await' expression
Calling xmpp.process() without awaiting it inside an async function.
fixUse 'await xmpp.process()' inside an async function, or use the synchronous version by calling xmpp.process(block=False).
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
Slixmpp verifies SSL certificates by default, but the server certificate is self-signed or invalid.
fixFor development, disable SSL verification: xmpp = ClientXMPP(jid, password, ssl=False). For production, configure proper CA certificates.
AttributeError: 'module' object has no attribute 'Iq'
Importing 'Iq' (uppercase 'I') instead of 'Iq' (capital I lowercase q) or wrong casing.
fixUse 'from slixmpp import Iq' (capital I, lowercase q). The stanza class is 'Iq', not 'IQ'.
Upgrade
Version history
1.16.0latest on PyPI · released Jun 8, 2026
Audit
Dependencies
No dependency data recorded yet.