"Invalid window handle" error when using the CSD Python API on Windows

Modified on Fri, 10 Jan at 12:08 PM

In the Windows 2024.2 release, exiting a python prompt after running import ccdc gives this error message:

QEventDispatcherWin32::wakeUp: Failed to post a message (Invalid window handle.)

This may also appear when running Python API scripts.

The error happens when you exit a python prompt or when the scripts shut a thread down and can safely be ignored. It has been fixed in the 2024.3 release.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article