reclosedev / pyautocad

AutoCAD Automation for Python ⛺
http://pypi.python.org/pypi/pyautocad/
BSD 2-Clause "Simplified" License
506 stars 143 forks source link

_ctypes.COMError: (-2147467262, 'No such interface supported', (None, None, None, 0, None)) #44

Open GJoe2 opened 1 year ago

GJoe2 commented 1 year ago

Similar to 17 At the line:

for obj in acad.iter_objects('Text'):

I get :

File "d:\CODE\pyautocad\tutorial.py", line 15, in <module>
    for obj in acad.iter_objects('Text'):
  File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\pyautocad\api.py", line 128, in iter_objects
    item = self.best_interface(item)
  File "C:\Users\user\AppData\Roaming\Python\Python39\site-packages\pyautocad\api.py", line 156, in best_interface
    return comtypes.client.GetBestInterface(obj)
  File "C:\ProgramData\Anaconda3\lib\site-packages\comtypes\client\__init__.py", line 126, in GetBestInterface
    result = punk.QueryInterface(interface)
  File "C:\ProgramData\Anaconda3\lib\site-packages\comtypes\client\lazybind.py", line 142, in QueryInterface
    return self._comobj.QueryInterface(*args)
  File "C:\ProgramData\Anaconda3\lib\site-packages\comtypes\__init__.py", line 1152, in QueryInterface
    self.__com_QueryInterface(byref(iid), byref(p))
_ctypes.COMError: (-2147467262, 'No such interface supported', (None, None, None, 0, None))
13537891894 commented 1 year ago

I also encountered the same issue. Have you solved it?