Skip to content

AttributeError: module 'plistlib' has no attribute 'readPlist' #10

@danengh

Description

@danengh

line 127, in make_definition
info_plist = plistlib.readPlist(info_plist_path)

this module is not available in python3

suggest:
either creating a new variable that opens the file as a bytes type and then changing line 127 (becomes line 128) to use plist.load
line 125 = infoFile = open(info_plist_path, "rb")
line 128 = info_plist = plistlib.load(infoFile)

or

line 127 and 128 become a with open statement
line 127 = with open(info_plist_path, "rb") as info_plist_file:
line 128 = info_plist = plistlib.load(info_plist_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