Skip to content

'SyntaxError: invalid syntax' occurs during MS Project module generation with GetModule function  #524

@kateryna-ruzhytska

Description

@kateryna-ruzhytska

MS_PROJECT_HASH = '{A7107640-94DF-1068-855E-00DD01075445}'
com.GetModule((MS_PROJECT_HASH, 4, 0)) returns 'SyntaxError: invalid syntax' starting from 1.4.0 version:

File "C:\Python39\lib\site-packages\comtypes\gen\MSHTML.py", line 4 from comtypes.gen._3050F1C5_98B5_11CF_BB82_00AA00BDCE0B_0_4_0 import ^ SyntaxError: invalid syntax

comtypes_syntax_error_1 4 0

Current issue is reproducible periodically.
Sometimes it happens to import appropriate classes but is it expected to have the second import?

comtypes_1 4 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions