Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WindowsError: [Error -2147221163] Interface not registered #28

Open
Peck117 opened this issue Mar 2, 2023 · 1 comment
Open

WindowsError: [Error -2147221163] Interface not registered #28

Peck117 opened this issue Mar 2, 2023 · 1 comment

Comments

@Peck117
Copy link

Peck117 commented Mar 2, 2023

Hi there,

I am trying to use the toolbox but get the error below. I am a complete novice when it comes to python but I think the comtypes are correct. Using ArcGIS 10.6 and comtypes 1.1.7

Any help would be very much appreciated.

Traceback (most recent call last):
File "C:\Users\peckc\OneDrive - University of Manitoba\Documents\ArcGIS 10.6\mapqonverter-master\mapqonverter.py", line 159, in
main()
File "C:\Users\peckc\OneDrive - University of Manitoba\Documents\ArcGIS 10.6\mapqonverter-master\mapqonverter.py", line 48, in main
arc_app = CreateObject(ArcGisModules.module_framework.AppROT, interface=ArcGisModules.module_framework.IAppROT)
File "C:\Python27\ArcGIS10.6\lib\site-packages\comtypes\client_init_.py", line 238, in CreateObject
obj = comtypes.CoCreateInstance(clsid, clsctx=clsctx, interface=interface)
File "C:\Python27\ArcGIS10.6\lib\site-packages\comtypes_init_.py", line 1227, in CoCreateInstance
_ole32.CoCreateInstance(byref(clsid), punkouter, clsctx, byref(iid), byref(p))
File "_ctypes/callproc.c", line 950, in GetResult
WindowsError: [Error -2147221163] Interface not registered

Failed to execute (Mapqonverter).

@pheidelb
Copy link
Collaborator

Hi Peck117,

if the interface is not registered, somehow comtypes can't load the arcmap libraries.
There can be many reasons for that. The path looks allright: C:\Python27\ArcGIS10.6\lib\site-packages\comtypes

Unfortunately it's hard to tell, where the problem lies. You can try installing mapqonverter with this setup: https://files.wheregroup.com/s/ksCiBk3SWcMBxsf

Perhaps this helps.

Greetings

Peter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants