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

Attempting to import comtypes.util raises RuntimeError #445

Open
DManowitz opened this issue Jan 2, 2023 · 3 comments
Open

Attempting to import comtypes.util raises RuntimeError #445

DManowitz opened this issue Jan 2, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@DManowitz
Copy link

When I try to import comtypes.util, I get the following message:

  File "<stdin>", line 1, in <module>
  File "...\lib\site-packages\comtypes\util.py", line 59, in <module>
    _byref_pointer_offset = _calc_offset()
  File "...\lib\site-packages\comtypes\util.py", line 48, in _calc_offset
    raise RuntimeError("PyCArgObject field definitions incorrect")
RuntimeError: PyCArgObject field definitions incorrect

This error occurs with comtypes 1.1.14 using Python 3.7 or 3.8.

@junkmd junkmd added the help wanted Extra attention is needed label Jan 2, 2023
@junkmd
Copy link
Collaborator

junkmd commented Jan 3, 2023

It is almost same as #446 (comment) except that the module it deals with is comtypes.util and it has been 15 years since the last change.

Any opinions also would be appreciated.

@vasily-v-ryabov
Copy link
Collaborator

I didn't see such issue before. @DManowitz which exact Python 3.7 and 3.8 versions are used?

@vasily-v-ryabov
Copy link
Collaborator

And how about other Python versions like 3.10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants