[Python-ideas] Error messages for shared libraries for other platform
Chris “Kwpolska” Warrick
kwpolska at gmail.com
Mon Aug 5 17:04:18 CEST 2013
On Mon, Aug 5, 2013 at 4:58 PM, Ryan <rymg19 at gmail.com> wrote:
> Well, the error seems to follow this pattern:
>
> ImportError: Cannot load library: loadsegments[number]: *number* cannot map
> segment from `library.so` at ...
>
> On Windows, it always says '%1 is not a valid Win32 application'
…unless you have Windows in a language that is not English.
> So, could you catch the exceptions and compare the string or perform a regex
> match or the like?
No. Unless you wanted to hard-code all translations of this message.
Or find an API to identify this message.
--
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense
More information about the Python-ideas
mailing list