Connect to CDB : Could not find module 'sof_cdb_w-2025.dll'

Hi everyone,

I’m having trouble connecting Python to SOFiSTiK.
I used the code from the website and adjusted the file paths, but I keep getting this error message: " Could not find module ‘sof_cdb_w-2025.dll’ (or one of its dependencies). Try using the full path with constructor syntax. "
If anyone has faced a similar issue and managed to fix it, I’d really appreciate your help!

Thanks,
Nasredine

Yea, something definitely went wrong after sofistik updated their way of connecting to cdb in version 3.8 or higher.

Check this link, you will see there are two ways of conencting to cdb. You are using the wrong one.

Connect to CDB - CDB Interfaces 2024

It’s python breaking change, not SOFiSTiK one. Python has changed the way how it is looking for dlls:

  • Python<3.8 use os.environ container,

  • Python>=3.8 use os.add_dll_directory command.

It is worth mentioning that for the educational version you should use a different dll sof_cdb_w_edu-2025.dll

1 Like