Python 2.7 segfaults on 'import site'

Chris Angelico rosuav at gmail.com
Mon Dec 29 17:03:33 EST 2014


On Tue, Dec 30, 2014 at 7:17 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> On Mon, Dec 29, 2014 at 9:28 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> Why is sre_constants segfaulting?! It's such a simple file! I assume
>> the "matches" comment means it thinks there's no problem with the .pyc
>> file; is it possible that, despite those checks, there's an issue
>> there? I could delete the .pyc and try again, but I'm scared that'll
>> fix the problem and leave me unable to figure out the true cause :)
>
> You could try renaming the .pyc instead of deleting it.

Hmm, and in doing so I just learned that they don't, after all, have
any sort of timestamp in them - I thought they did. Renamed it, reran
"python -v", it created a new .pyc with the same MD5 sum. So, it's not
that. Weird.

ChrisA



More information about the Python-list mailing list