Skip to content

I've read the script and README 100 times and can't understand what's wrong #8

Open

Description

@privacyguy123

Neither can Gemini 2.5

IDA 9.1

 python3 .\apply_to_til.py --platform windows --overwrite

Loading IDA library from: C:\Program Files\IDA Professional 9.1\idalib.dll
INFO: Processing C:\Program Files\IDA Professional 9.1\til\pc\mssdk.til
Traceback (most recent call last):
  File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 236, in <module>
    main()
    ~~~~^^
  File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 203, in main
    ok = process_til(
        old_til,
    ...<3 lines>...
        auto_enum,
    )
  File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 170, in process_til
    changed_types_count += change_type(til, name, name, BOOL, auto_enum)
                           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 111, in change_type
    enum_name = get_or_add_enum(auto_enum, matching_arg.enum, til)
TypeError: unhashable type: 'til_t'

Activity

  1. privacyguy123 commented on May 7, 2025

    @privacyguy123
    Author
    Loading IDA library from: C:\Program Files\IDA Professional 9.1\idalib.dll
    INFO: Processing C:\Program Files\IDA Professional 9.1\til\pc\mssdk.til
    Traceback (most recent call last):
      File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 236, in <module>
        main()
        ~~~~^^
      File ...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 203, in main
        ok = process_til(
            old_til,
        ...<3 lines>...
            auto_enum,
        )
      File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 173, in process_til
        changed_types_count += change_type(til, name, name + "A", BOOL, auto_enum)
                               ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "...\auto-enum\plugin\enumlib\scripts\apply_to_til.py", line 111, in change_type
        enum_name = get_or_add_enum(auto_enum, matching_arg.enum, til)
      File "...\auto-enum\plugin\enumlib\ui_plugins\ida_plugin.py", line 201, in get_or_add_enum
        res = idc.add_enum_member(ida_enum_id, k, v, -1)
      File "C:\Program Files\IDA Professional 9.1\python\idc.py", line 4711, in add_enum_member
        return tif.add_edm(edm, bmask)
               ~~~~~~~~~~~^^^^^^^^^^^^
      File "C:\Program Files\IDA Professional 9.1\python\ida_typeinf.py", line 5380, in add_edm
        raise ValueError('Invalid input data: %s' % tinfo_errstr(val))
    ValueError: Invalid input data: enum member name is used in another enum 'ENUM_BSF'
    
  2. junron commented on May 28, 2025

    @junron
    Owner

    Hi!

    These issues should be fixed in the latest commit, f96acb5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions