Open derVedro opened 1 year ago
You can hack around and install pip (which comes with setuptools and pkg_resources) into your hobbits-cpython directory tree.
First get the pip installer script into your temp directory:
$ wget https://bootstrap.pypa.io/get-pip.py -P /tmp
Then install pip into your hobbits-cpython
$ hobbits-cpython/bin/python3.9 /tmp/get-pip.py
The requeired packages are in hobbits-cpython/lib/python3.9/site-packages now, so you're done.
yeah, looks like the built-in python pip is messed up in some of the builds :( ugh
Thanks for posting the workaround! I might just put something like that in the build steps because building Python reliably with that stuff seemed weirdly error-prone in the CI I had set up.
BTW, Python parsers generated by Kaitai Struct compiler v0.10 do not import pkg_resources
anymore, see Kaitai Struct v0.10 release notes:
- Notable improvements:
- (...)
- Python: generated parsers no longer import
pkg_resources
, which caused performance and usability issues (#804) — the runtime library API version check now compares tuples instead
If your system python is not 3.9 you're pretty screwed on analizing Kaitai Structs: