<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NotImplementedError: QAsyncioEventLoop.getaddrinfo() is not implemented yet]]></title><description><![CDATA[<p dir="auto">I was pointed to the QtAsyncio module to allow me to integrate asynchronous calls into my PyQt app.<br />
I have a langgraph app that was working stand-alone, but when I port the code into an async method of my PyQt app, I get the error mentioned in the title.</p>
<p dir="auto">The offending code is this:</p>
<pre><code>messages = await app.ainvoke(inputs)
</code></pre>
<pre><code>ainvoke()
</code></pre>
<p dir="auto">Is a standard langchain asynchronous function, and it worked when I ran the code in its own program before porting it to my PyQt app.</p>
<p dir="auto">Can anybody please shed some light on this?</p>
]]></description><link>https://forum.qt.io/topic/161741/notimplementederror-qasyncioeventloop-getaddrinfo-is-not-implemented-yet</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 21:47:31 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/161741.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Apr 2025 19:28:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NotImplementedError: QAsyncioEventLoop.getaddrinfo() is not implemented yet on Sat, 19 Jul 2025 22:11:02 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I also encountered that. Sadly, that's exactly what it means: PySide's asyncio event loop does not implement getaddrinfo: <a href="https://code.qt.io/cgit/pyside/pyside-setup.git/tree/sources/pyside6/PySide6/QtAsyncio/events.py#n552" target="_blank" rel="noopener noreferrer nofollow ugc">https://code.qt.io/cgit/pyside/pyside-setup.git/tree/sources/pyside6/PySide6/QtAsyncio/events.py#n552</a></p>
<p dir="auto">In fact, none or almost none of the IO-related methods are implemented. Documentation also  says that directly at <a href="https://doc.qt.io/qtforpython-6/PySide6/QtAsyncio/index.html:" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qtforpython-6/PySide6/QtAsyncio/index.html:</a></p>
<blockquote>
<p dir="auto">We consider that this API consists of two levels:</p>
<ol>
<li>Fundamental infrastructure for event loops and asynchronous operations, including futures, tasks, handles, executors, and event loop management functions (see below).</li>
<li>A user-facing API for use in applications, including transports and protocols, network connections, servers, sockets, signals, subprocesses.</li>
</ol>
<p dir="auto">QtAsyncio <strong>currently covers the first level</strong>.:</p>
</blockquote>
<p dir="auto">One solution is to use <code>trio</code> in guest mode, like in this example: <a href="https://doc.qt.io/qtforpython-6/examples/example_async_minimal.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qtforpython-6/examples/example_async_minimal.html</a>. Except it will not help you, because LangChain does not support trio. There are a few libraries that implement a similar capability for asyncio, but none of them seem particularly mature.</p>
]]></description><link>https://forum.qt.io/post/829360</link><guid isPermaLink="true">https://forum.qt.io/post/829360</guid><dc:creator><![CDATA[roman_f]]></dc:creator><pubDate>Sat, 19 Jul 2025 22:11:02 GMT</pubDate></item></channel></rss>