Patch-Starter-Script icon indicating copy to clipboard operation
Patch-Starter-Script copied to clipboard

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

Open danengh opened this issue 5 years ago • 0 comments

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)

danengh avatar Feb 02 '21 16:02 danengh