8000 DeprecationWarning: The readPlist function is deprecated · Issue #18 · electronut/pp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
DeprecationWarning: The readPlist function is deprecated #18
Open
@renato0584

Description

@renato0584

The code presents the following error:

anatomyPlaylist.py:16: DeprecationWarning: The readPlist function is dep 58B4 recated, use load() instead
plist = plistlib.readPlist(fileName)
Traceback (most recent call last):
File "anatomyPlaylist.py", line 162, in
main()
File "anatomyPlaylist.py", line 149, in main
findCommonTracks(args.plFiles)
File "anatomyPlaylist.py", line 16, in findCommonTracks
plist = plistlib.readPlist(fileName)
File "C:\Users\ext.renatoss1\AppData\Local\Programs\Python\Python37-32\lib\plistlib.py", line 100, in readPlist
return load(fp, fmt=None, use_builtin_types=False)
File "C:\Users\ext.renatoss1\AppData\Local\Programs\Python\Python37-32\lib\plistlib.py", line 944, in load
raise InvalidFileException()
plistlib.InvalidFileException: Invalid file

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
main()
File "anatomyPlaylist.py", line 149, in main
findCommonTracks(args.plFiles)
File "anatomyPlaylist.py", line 16, in findCommonTracks
plist = np.load(fileName)
File "C:\Users\ext.renatoss1\AppData\Local\Programs\Python\Python37-32\lib\sit
e-packages\numpy\lib\npyio.py", line 443, in load
"Failed to interpret file %s as a pickle" % repr(file))
OSError: Failed to interpret file 'maya.xml' as a pickle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0