8000 Cannot use MS Office objects, importing the MSO tlb fails · Issue #195 · enthought/comtypes · GitHub
[go: up one dir, main page]

Skip to content
Cannot use MS Office objects, importing the MSO tlb fails #195
@chrullrich

Description

@chrullrich

Hello,

while generating the Python type library equivalents for the MS Office object model (for x86) has always been a bit fragile, it appears that it does not work at all now, at least with Python 3.8 (not sure about recent 3.7s). The symptom is

TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported.

This happens with methods on various interfaces (probably randomized by a dictionary hash somewhere). The common factor between all of them is that they have a VARIANT argument, and VARIANT is a union, of course.

I think the reason that it now fails reliably is the recent fix for https://bugs.python.org/issue16575.

Is there some way to work around this limitation, other than using pywin32 instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0