Traceback (most recent call last): File ~\anaconda3\Lib\site-packages\win32com\client\dynamic.py:84 in _GetGoodDispatch IDispatch = pythoncom.connect(IDispatch)com_error: (-2147221021, 'Operation unavailable', None, None)During handling of the above exception, another exception occurred:Traceback (most recent call last): File ~\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals) File c:\mp4 geochemical assessment\4-working\5-modelling\frim\untitled0.py:10 dbase = Dispatch('IPhreeqcCOM.Object') File ~\anaconda3\Lib\site-packages\win32com\client\__init__.py:118 in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx) File ~\anaconda3\Lib\site-packages\win32com\client\dynamic.py:104 in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File ~\anaconda3\Lib\site-packages\win32com\client\dynamic.py:86 in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(com_error: (-2147023782, 'A dynamic link library (DLL) initialization routine failed.', None, None)
from win32com.client import Dispatchdbase = Dispatch('IPhreeqcCOM.Object')db_path = '1-database/WATEQ4F.DAT'dbase.LoadDatabase(db_path)
$com = New-Object -ComObject IPhreeqcCOM.Object