<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">At least with PyQt6/PyQt6-Qt6/PyQt6-QtCharts/PyQt6-QtCharts-Qt version 6.6.0, Qt6Charts.dll exports and imports using C calling convention (__cdecl) instead of C++ convention, causing the error above.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">This is visible from this sample of exported names, which start with underscore:<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">2617 (0x0a39), (0x), _ZN25QCandlestickSeriesPrivate16staticMetaObjectE, 0x0011e3b0, Demumble<br>2618 (0x0a3a), (0x), _ZN25QCandlestickSeriesPrivate18handleSeriesChangeEP15QAbstractSeries, 0x000df070, Demumble<br>2619 (0x0a3b), (0x), _ZN25QCandlestickSeriesPrivate18handleSeriesRemoveEP15QAbstractSeries, 0x000df090, Demumble<br>2620 (0x0a3c), (0x), _ZN25QCandlestickSeriesPrivate18initializeGraphicsEP13QGraphicsItem, 0x000ded80, Demumble<br>2621 (0x0a3d), (0x), _ZN25QCandlestickSeriesPrivate18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv, 0x000df9c0, Demumble<br>2622 (0x0a3e), (0x), _ZN25QCandlestickSeriesPrivate19createLegendMarkersEP7QLegend, 0x000def10, Demumble<br>2623 (0x0a3f), (0x), _ZN25QCandlestickSeriesPrivate19updatedCandlesticksEv, 0x000dfe60, Demumble<br>2624 (0x0a40), (0x), _ZN25QCandlestickSeriesPrivate20initializeAnimationsE6QFlagsIN6QChart15AnimationOptionEEiR12QEasingCurve, 0x000dee70, Demumble</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">You might try replacing Qt6Charts.dll with the one from PySide6.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 15, 2023 at 4:57 PM Patrick Stinson <<a href="mailto:patrickkidd@gmail.com">patrickkidd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I might add that this was done in a virtual environment created by pipenv. Looks like it works when using the system installed python.<br>
<br>
> On Dec 14, 2023, at 5:41 PM, Patrick Stinson <<a href="mailto:patrickkidd@gmail.com" target="_blank">patrickkidd@gmail.com</a>> wrote:<br>
> <br>
> I get a DLL linking error with a clean python 3.9.13 install and "pip install pyqt6" on windows. This occurs on every machine I try it on in our lab, whether windows 10 or windows 11. Installing "pyqt6-tools" gets me going for just pyqt6. I am doing a lot of pretty basic stuff so I am not tied to a particular pyqt6 or Qt6 version.<br>
> <br>
> Now I want to use pyqt6-charts and I am getting the DLL error again: "DLL load failed while importing QtCharts: the specified procedure can't be found."<br>
> <br>
> Are the pyqt6 wheels all really broken? Is it my python version? The wheels do include the qt binaries so what is going on? This problem is easily reproducible so I thought there might be a straightforward answer here.<br>
> <br>
> Cheers<br>
> -Patrick<br>
</blockquote></div>