Skip to content

Instantly share code, notes, and snippets.

@guinslym
Created December 19, 2024 20:38
Show Gist options
  • Save guinslym/d0030d87b60dea3bc3331ef9aa0a3b09 to your computer and use it in GitHub Desktop.
Save guinslym/d0030d87b60dea3bc3331ef9aa0a3b09 to your computer and use it in GitHub Desktop.
Directory of H:\chat_ask
12/19/2024 11:54 AM <DIR> .
12/19/2024 11:54 AM <DIR> ..
12/19/2024 10:31 AM 11,684 AnswerBot.py
12/19/2024 10:49 AM 1,273 connect_to.py
12/19/2024 10:22 AM <DIR> venv
2 File(s) 12,957 bytes
3 Dir(s) 2,400,824,971,264 bytes free
(venv) H:\chat_ask>python connect_to.py
DEBUG:asyncio:Using proactor: IocpProactor
DEBUG:aioxmpp.callbacks:connecting <bound method SimpleMessageDispatcher._feed of <aioxmpp.dispatcher.SimpleMessageDispatcher object at 0x000002C031D258E0>> with mode <bound method AdHocSignal.STRONG of <class
'aioxmpp.callbacks.AdHocSignal'>>
DEBUG:aioxmpp.callbacks:connecting <bound method SimplePresenceDispatcher._feed of <aioxmpp.dispatcher.SimplePresenceDispatcher object at 0x000002C031D25910>> with mode <bound method AdHocSignal.STRONG of <class 'aioxmpp.callbacks.AdHocSignal'>>
DEBUG:aioxmpp.callbacks:connecting <bound method PresenceServer._before_stream_established of <aioxmpp.presence.service.PresenceServer object at 0x000002C031D259D0>>
DEBUG:aioxmpp.callbacks:connecting <bound method PresenceManagedClient._update_presence of <aioxmpp.node.PresenceManagedClient object at 0x000002C031D13490>> with mode <bound method AdHocSignal.STRONG of <class 'aioxmpp.callbacks.AdHocSignal'>>
DEBUG:aioxmpp.node.PresenceManagedClient.on_stream_established:connecting <bound method PresenceManagedClient._handle_stream_established of <aioxmpp.node.PresenceManagedClient object at 0x000002C031D13490>> with mode <bound method AdHocSignal.STRONG of <class 'aioxmpp.callbacks.AdHocSignal'>>
Traceback (most recent call last):
File "H:\chat_ask\connect_to.py", line 37, in <module>
asyncio.run(connect_to_libraryh3lp())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "H:\chat_ask\connect_to.py", line 18, in connect_to_libraryh3lp
client.stream.register_callback(
AttributeError: 'StanzaStream' object has no attribute 'register_callback'
(venv) H:\chat_ask>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment