Python Forum
pywin32 Illustrator Throwing Exception Error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pywin32 Illustrator Throwing Exception Error
#4
I'm sorry. I'm new to this. I misunderstood what you meant. I ran trackback.print_tb() and got:
Error:
]Traceback (most recent call last): File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\site-packages\win32com\client\dynamic.py", line 81, 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 "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\debugpy\__main__.py", line 45, in <module> cli.main() File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 430, in main run() File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 267, in run_file runpy.run_path(options.target, run_name=compat.force_str("__main__")) File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 263, in run_path pkg_name=pkg_name, script_name=fname) File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\jaredm\Desktop\Python COM Test\Python_COM_Test.py", line 3, in <module> illApp = win32com.Dispatch("Illustrator.Application") File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "C:\Users\jaredm\AppData\Local\Programs\Python\Python37\lib\site-packages\win32com\client\dynamic.py", line 83, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
Reply


Messages In This Thread
RE: pywin32 Illustrator Throwing Exception Error - by matthewsjc1 - Aug-26-2021, 02:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  json loads throwing error mpsameer 8 871 Jan-23-2024, 07:04 AM
Last Post: deanhystad
  How to find PyWin32 for Python 2.1.3 Paul_Newton 9 1,877 Nov-20-2022, 09:15 PM
Last Post: Paul_Newton
  how to write exception error into logger mg24 3 1,065 Nov-15-2022, 04:20 PM
Last Post: insharazzak
  pywin32: Outlook connection ends with 'operation aborted' on one machine tstone 0 2,507 May-03-2022, 04:29 AM
Last Post: tstone
  pywin32 problems catlessness 0 1,304 Apr-01-2022, 01:04 PM
Last Post: catlessness
  SystemError: error return without exception set!!! faryad13 3 3,851 Oct-23-2020, 02:32 PM
Last Post: ATARI_LIVE
  PyAudio throwing Input overflowed anthares 3 4,985 Jun-14-2020, 03:37 PM
Last Post: anthares
  Has anyone figured out how to get pywin32 into a virtual environment yet? RobR 6 4,905 Jun-04-2020, 01:26 PM
Last Post: RobR
  Exception: Returned Type Mismatch Error devansing 1 5,285 Mar-06-2020, 07:26 PM
Last Post: ndc85430
  i am getting error while writing code for exception logging rkgupta51179 1 1,920 Nov-03-2019, 05:12 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020