Skip to content

AttributeError: 'RawConfigParser' object has no attribute 'readfp' #5

@williballenthin

Description

@williballenthin
Failed while executing plugin_t.init():
Traceback (most recent call last):
  File "/Users/user/.idapro/plugins/xray/xray.py", line 589, in init
    load_cfg()
    ~~~~~~~~^^
  File "/Users/user/.idapro/plugins/xray/xray.py", line 183, in load_cfg
    return load_cfg(reload=True)
  File "/Users/user/.idapro/plugins/xray/xray.py", line 188, in load_cfg
    config.readfp(open(cfg_file))
AttributeError: 'RawConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

probably should use ConfigParser.read_file() which was added in Python 3.2: https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.read_file

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