This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ctype generates misleading error-msg opening lib.so when compiled for wrong arch
Type: enhancement Stage: resolved
Components: ctypes Versions: Python 3.11
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, stephan.boekelmann
Priority: normal Keywords:

Created on 2021-07-28 08:55 by stephan.boekelmann, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg398357 - (view) Author: Stephan Bökelmann (stephan.boekelmann) Date: 2021-07-28 08:55
When trying to open a lib.so that has been compiled for a different architecture an error-msg is emitted saying. "no such file or directory" 

this is misleading behavior. changing the error-msg to. "library not compatible with architecture" would have saved me an hour of work ;)
msg398362 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2021-07-28 09:37
I don't think we get enough information from the operating system in order to generate the message that you'd like to see, unfortunately.
msg398364 - (view) Author: Stephan Bökelmann (stephan.boekelmann) Date: 2021-07-28 10:03
my fault!

I am running Ubuntu 18 in WSL

>> uname -a
Linux <maschine> 4.4.0-22000-Microsoft #1-Microsoft Fri Jun 04 16:28:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
msg398367 - (view) Author: Stephan Bökelmann (stephan.boekelmann) Date: 2021-07-28 11:19
Fail. Didn't read your reply carefully enough. You wasn't asking for my info.

Thanks anyway
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 88922
2021-07-28 11:19:26stephan.boekelmannsetstatus: open -> closed

messages: + msg398367
stage: resolved
2021-07-28 10:03:45stephan.boekelmannsetmessages: + msg398364
2021-07-28 09:37:10eric.smithsetnosy: + eric.smith
messages: + msg398362
2021-07-28 08:55:12stephan.boekelmanncreate