pp
pp copied to clipboard
DeprecationWarning: The readPlist function is deprecated
The code presents the following error:
anatomyPlaylist.py:16: DeprecationWarning: The readPlist function is deprecated, use load() instead
plist = plistlib.readPlist(fileName)
Traceback (most recent call last):
File "anatomyPlaylist.py", line 162, in
I've changed the line:
plist = plistlib.readPlist(fileName)
to
plist = np.load(fileName)
but, the error changed to:
Traceback (most recent call last): File "C:\Users\ext.renatoss1\AppData\Local\Programs\Python\Python37-32\lib\site-packages\numpy\lib\npyio.py", line 440, in load return pickle.load(fid, **pickle_kwargs)_pickle.UnpicklingError: invalid load key, '\x0a'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "anatomyPlaylist.py", line 162, in
Of course there is some other modification to make, but I can't figure it out yet.
Advices?
Thanks and sorry for my poor english.
with open(filename,'rb') as fp: pl=plistlib.load(fp)
Submitted PR #22 to accommodate this.