FAQ
The subject line says it, really: I installed 2.4a2 using the MSI
installer on python.org, and I appear to be missing this file:

C:\Python24\DLLs\_sre.pyd


As a result, Python picks up the _sre.pyd from my 2.3 installation,
and I get the expected error about a bad magic number in that DLL.

I think I must be doing something stupid, but what, exactly?

TIA for any help


John

Search Discussions

  • Tim Peters at Aug 26, 2004 at 7:15 pm
    [John J. Lee]
    The subject line says it, really: I installed 2.4a2 using the MSI
    installer on python.org, and I appear to be missing this file:

    C:\Python24\DLLs\_sre.pyd
    That file doesn't exist in 2.4; the code it used to contain has been
    folded into the core python24.dll (so _sre is builtin now, instead of
    an extension module).
    As a result, Python picks up the _sre.pyd from my 2.3 installation,
    That shouldn't be possible, since _sre is a builtin now.
    and I get the expected error about a bad magic number in that DLL.

    I think I must be doing something stupid, but what, exactly?
    Don't know, can't guess. Run Python 2.4 with the -v switch, then do

    import _sre

    You should see something like
    import _sre
    # C:\Python24\lib\encodings\cp437.pyc matches C:\Python24\lib\encodings\cp437.py
    import encodings.cp437 # precompiled from C:\Python24\lib\encodings\cp437.pyc
    import _sre # builtin
    >>>

    If you don't see something like that, it's A Clue.
  • John J. Lee at Aug 26, 2004 at 8:40 pm

    Tim Peters <tim.peters at gmail.com> writes:

    [John J. Lee]
    The subject line says it, really: I installed 2.4a2 using the MSI
    installer on python.org, and I appear to be missing this file:

    C:\Python24\DLLs\_sre.pyd
    That file doesn't exist in 2.4; the code it used to contain has been
    folded into the core python24.dll (so _sre is builtin now, instead of
    an extension module).
    As a result, Python picks up the _sre.pyd from my 2.3 installation,
    That shouldn't be possible, since _sre is a builtin now.
    [...]

    Aha. In a puff of logic, the error has now vanished. Mysterious...

    Thankyou


    John

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedAug 26, '04 at 7:00p
activeAug 26, '04 at 8:40p
posts3
users2
websitepython.org

2 users in discussion

John J. Lee: 2 posts Tim Peters: 1 post

People

Translate

site design / logo © 2022 Grokbase