Hello
I have a script that i have been using for a long time to access .cdb via python.
But since getting a new computer, it is throwing an error.
I am using this setup:
Configure the project - CDB Interfaces 2024 (sofistik.com)
######################
path = os.environ["Path"]
# 64bit DLLs
dllPath = r"C:\Program Files\SOFiSTiK\2024\SOFiSTiK 2024\interfaces\64bit"
dllPath += ";"
# other necessary DLLs
dllPath += r"C:\Program Files\SOFiSTiK\2024\SOFiSTiK 2024"
os.environ["Path"] = dllPath + ";" + path
# Get the DLL functions
myDLL = cdll.LoadLibrary(r"C:\Program Files\SOFiSTiK\2024\SOFiSTiK 2024\interfaces\64bit\sof_cdb_w-2024.dll")
py_sof_cdb_get = cdll.LoadLibrary("sof_cdb_w-2024.dll").sof_cdb_get
py_sof_cdb_get.restype = c_int
py_sof_cdb_kenq = cdll.LoadLibrary("sof_cdb_w-2024.dll").sof_cdb_kenq_ex
#End Region
############################
but, now i am gettins this error:
Traceback (most recent call last):
File "c:\Python sofistik1\samlet pakke\Sofistik_Func.py", line 29, in <module>
myDLL = cdll.LoadLibrary(r"C:\Program Files\SOFiSTiK\2024\SOFiSTiK 2024\interfaces\64bit\sof_cdb_w-2024.dll")
File "C:\Program Files\Python313\Lib\ctypes\__init__.py", line 471, in LoadLibrary
return self._dlltype(name)
~~~~~~~~~~~~~^^^^^^
File "C:\Program Files\Python313\Lib\ctypes\__init__.py", line 390, in __init__
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\Program Files\SOFiSTiK\2024\SOFiSTiK 2024\interfaces\64bit\sof_cdb_w-2024.dll' (or one of its dependencies). Try using the full path with constructor syntax.
The file “sof_cdb_w-2024.dll” is very obviously in the right location with the right name, i am thinking its something with the dependencies, but i am running out of options here. Anyone have experience with this error?