You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your system python is not 3.9 you're pretty screwed on analizing Kaitai Structs:
Python stderr:
Traceback (most recent call last):
File "/tmp/HobbitsPythonrBHuvX/thescript.py", line 162, in parse_data
struct_module = importlib.__import__(package_name, fromlist=[class_name])
File "<frozen importlib._bootstrap>", line 1109, in __import__
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/tmp/hobbits-GGgAzl/png.py", line 3, in <module>
from pkg_resources import parse_version
ModuleNotFoundError: No module named 'pkg_resources'
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: