Skip to content

event_rpcgen.py shows "TypeError: super() argument 1 must be type, not classobj" #1042

@emmenlau

Description

@emmenlau

With the latest master branch I get the following error on MSVC (Visual Studio 2019 latest and Visual Studio 2017)

FAILED: C:/libevent/test/regress.gen.c C:/libevent/test/regress.gen.h 
 cmd.exe /C "cd /D C:\libevent\test && C:\Python2\python.exe ../event_rpcgen.py --quiet regress.rpc"
 Traceback (most recent call last):
   File "../event_rpcgen.py", line 1925, in <module>
     sys.exit(main(argv=sys.argv[1:]))
   File "../event_rpcgen.py", line 1910, in main
     CommandLine(argv=argv).run()
   File "../event_rpcgen.py", line 1884, in run
     entities = Parse(factory, self.rpc_file)
   File "../event_rpcgen.py", line 1695, in Parse
     entities.extend(ProcessStruct(factory, data))
   File "../event_rpcgen.py", line 1591, in ProcessStruct
     structs.extend(ProcessOneEntry(factory, newstruct, entry))
   File "../event_rpcgen.py", line 1541, in ProcessOneEntry
     newentry = factory.EntryString(entry_type, name, tag)
   File "../event_rpcgen.py", line 1818, in EntryString
     return EntryString(entry_type, name, tag)
   File "../event_rpcgen.py", line 763, in __init__
     super(EntryString, self).__init__(ent_type, name, tag)
 TypeError: super() argument 1 must be type, not classobj

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