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

Incompatible with comtypes 1.4.5 #22

Closed
atericparker opened this issue Jul 22, 2024 · 2 comments
Closed

Incompatible with comtypes 1.4.5 #22

atericparker opened this issue Jul 22, 2024 · 2 comments

Comments

@atericparker
Copy link

Throws the following error on import with the latest version of comtypes
`c) Microsoft Corporation. All rights reserved.
C:\Users\lain>python
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import pybag
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\init.py", line 57, in
from .pydbg import DbgEng
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\pydbg.py", line 11, in
from .dbgeng.idebugclient import DebugClient
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\dbgeng\idebugclient.py", line 8, in
from .idebugcontrol import DebugControl
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\dbgeng\idebugcontrol.py", line 10, in
from comtypes import compointerbase
ImportError: cannot import name '_compointer_base' from 'comtypes' (C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\comtypes\init.py)
from pybag import *
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\init.py", line 57, in
from .pydbg import DbgEng
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\pydbg.py", line 11, in
from .dbgeng.idebugclient import DebugClient
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\dbgeng\idebugclient.py", line 8, in
from .idebugcontrol import DebugControl
File "C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\pybag\dbgeng\idebugcontrol.py", line 10, in
from comtypes import compointerbase
ImportError: cannot import name '_compointer_base' from 'comtypes' (C:\Users\lain\AppData\Local\Programs\Python\Python312\Lib\site-packages\comtypes\init.py)`

Appears this was the breaking change
enthought/comtypes@cc6edaf

Works fine if we downgrade to 1.4.4

@atericparker
Copy link
Author

Fixed by 3b2751e

@dshikashio
Copy link
Owner

Thanks for the info - 2.2.12 has the changes.

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