photoshop-scripting-python icon indicating copy to clipboard operation
photoshop-scripting-python copied to clipboard

Photoshop is not opening with Dispatch

Open mogesh06 opened this issue 1 year ago • 0 comments

Traceback (most recent call last): File "D:\PyCharm\Adobe\venv\lib\site-packages\win32com\client\dynamic.py", line 84, in _GetGoodDispatch IDispatch = pythoncom.connect(IDispatch) pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\PyCharm\Adobe\main.py", line 3, in app = Dispatch("Photoshop.Application") File "D:\PyCharm\Adobe\venv\lib\site-packages\win32com\client_init_.py", line 118, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx) File "D:\PyCharm\Adobe\venv\lib\site-packages\win32com\client\dynamic.py", line 104, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "D:\PyCharm\Adobe\venv\lib\site-packages\win32com\client\dynamic.py", line 86, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance( pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)

mogesh06 avatar Apr 02 '23 01:04 mogesh06