​​The Cambridge Crystallographic Data Centre (CCDC).
The CCDC websites use cookies. By continuing to browse the site you are agreeing to our use of cookies. For more details about cookies and how to manage them, see our  cookie policy.

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

Solution

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. However we are working on getting rid of it.