Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpylist.archiver.MissingTopObjectUID: top object did not have a UID! dump: {'root': {'UID': 1}} #7

Open
luckydonald opened this issue Feb 16, 2021 · 0 comments

Comments

@luckydonald
Copy link

luckydonald commented Feb 16, 2021

Traceback (most recent call last):
  File "/Users/luckydonald/Documents/programming/Python/…/plist_test.py", line 4, in <module>
    woop = archiver.unarchive(f.read())
  File "/Users/luckydonald/.pyenv/versions/docker-tg-bot-3.7.2/lib/python3.7/site-packages/bpylist/archiver.py", line 16, in unarchive
    return Unarchive(plist).top_object()
  File "/Users/luckydonald/.pyenv/versions/docker-tg-bot-3.7.2/lib/python3.7/site-packages/bpylist/archiver.py", line 255, in top_object
    self.unpack_archive_header()
  File "/Users/luckydonald/.pyenv/versions/docker-tg-bot-3.7.2/lib/python3.7/site-packages/bpylist/archiver.py", line 190, in unpack_archive_header
    raise MissingTopObjectUID(top)
bpylist.archiver.MissingTopObjectUID: top object did not have a UID! dump: {'root': {'UID': 1}}

So for some reason using archiver.unarchive(f.read()) doesn't results in and uid type for the root node,
but instead a single dict being an {'UID': 1} element.

I feel like {'UID': 1} should totally be uid(1), but for some reason at that point it isn't.

Version 0.1.4 from pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant