-
Notifications
You must be signed in to change notification settings - Fork 2
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
[bug] 'compiled-objects-have-debug-symbols' check fails with a decoding error on numpy windows amd64 wheel #206
Comments
Initially, I assumed that this was because Windows (and therefore, a Windows-specific NumPy wheel) needs CP1252 encoding by default, but that didn't work, so I switched decoding with In short, it would perfectly preserve ASCII text (0x00-0x7F range) and can represent any byte value without data loss (0x80-0xFF range):
and I confirmed via running the Output from dumping NumPy 1.26.3's headers
Fortunately, for NumPy 2.2.1, this is no longer a problem for their Windows amd64 Python 3.10 wheels and was probably fixed upstream :D P.S. This is slightly unrelated, but maybe |
I'm happy to put together a PR if you feel such a solution would be acceptable. :D |
Wow thank you for the investigation and excellent write-up! Using a different decoding sounds like a plausible way to handle this, I'd be happy to consider a PR with that switch if you'd like to submit one.
I don't want to try to encode that knowledge into In case you haven' seen it, here's the set of commands it tries: pydistcheck/src/pydistcheck/shared_lib_utils.py Lines 27 to 42 in 85b8af3
pydistcheck/src/pydistcheck/shared_lib_utils.py Lines 80 to 81 in 85b8af3
It probably would be faster, safer, and more reliable to forgo all of this and just directly read the various formats' symbol tables without using a |
What did you expect to happen?
For
pydistcheck
to only print output it controls, not a Python stacktrace.What actually happened?
Ran the following on my mac (macOS 12.2.1, intel chip)
yields the following:
How can someone else reproduce this problem?
see above
What version of
pydistcheck
are you using?0.5.1
Notes
output of 'conda info' (click me)
output of 'conda env export'
The text was updated successfully, but these errors were encountered: