marketcircle / bpylist Goto Github PK
View Code? Open in Web Editor NEWParse and Generate binary plists and NSKeyedArchiver archives
Parse and Generate binary plists and NSKeyedArchiver archives
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
Excuse me, is there a C + + version of this project?
If not, are there any documents that can be easily converted to C + +?
Sorry for the inconvenience
Using the file ~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.FavoriteItems.sfl2
for this example.
When attempting to load the file above into the unarchiver, you get the following error:
MissingClassMapping: no mapping for NSMutableData in {'NSDictionary': <class 'bpylist.archiver.DictArchive'>, 'NSMutableDictionary': <class 'bpylist.archiver.DictArchive'>, 'NSArray': <class 'bpylist.archiver.ListArchive'>, 'NSMutableArray': <class 'bpylist.archiver.ListArchive'>, 'NSSet': <class 'bpylist.archiver.SetArchive'>, 'NSMutableSet': <class 'bpylist.archiver.SetArchive'>, 'NSDate': <class 'bpylist.archive_types.timestamp'>}
clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/local/include -I/usr/local/opt/libunwind-headers/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/bplist.c -o build/temp.macosx-10.14-x86_64-2.7/src/bplist.o
src/bplist.c:2:10: fatal error: 'pytime.h' file not found
#include <pytime.h>
^~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.