pyce icon indicating copy to clipboard operation
pyce copied to clipboard

ImportError: bad magic number

Open VeNoMouS opened this issue 6 years ago • 1 comments

Hi guys,

A customer is sometimes (rarely) getting the error ImportError: bad magic number , just wondering if anyone else has experienced this... and come up with a solution?

VeNoMouS avatar Sep 24 '19 22:09 VeNoMouS

@VeNoMouS this is interesting. Is it within your custom / proprietary source code? Or is it from a third-party independent library? The recommendation is not to encrypt third-party, because sometimes they make very odd introspection assumptions (such as reading their files directly). It's possible, but requires careful testing.

What's very odd is that it sounds like this issue is transient. I'd expect it on every execution, although perhaps you have some imports that don't always hit in every exercised path through the code.

theonewolf avatar Sep 25 '19 05:09 theonewolf