FAQ
Using Win98SE.
Python 2.2 has been working fine. On a whim I upgraded to 2.2.1 today.
Now Idle won't start.
The traceback says that sre_compile.py fails at "import _sre" , No module
named _sre.

A search of google groups came up dry.
Any idea?

Search Discussions

  • Martin v. Loewis at Jul 24, 2002 at 7:18 pm

    "Gary Pajer" <pajer at iname.com> writes:

    Using Win98SE.
    Python 2.2 has been working fine. On a whim I upgraded to 2.2.1 today.
    Now Idle won't start.
    What exactly did you do to update? What files did you download
    (precise URL please), in what order did you perform what actions?

    Regards,
    Martin
  • Gary Pajer at Jul 25, 2002 at 1:17 am
    I tried to follow the instructions in http://www.python.org/2.2.1/

    First I downloaded http://www.python.org/ftp/python/2.2.1/UNWISE.EXE over
    my existing unwise.exe

    Then I downloaded http://www.python.org/ftp/python/2.2.1/Python-2.2.1.exe

    Then I started the installer. It detected c:/python22 and offered to
    install there. I said ok That means it was installing in the same directory
    as version 2.2 lived. It offered to make backups of existing files, I said
    yes, please.

    That's all.

    Since my first post, I noticed that PythonCard applications crashed with the
    same error. I found a file called _SED.PYD in the new installation, but in
    the backup, the filename was lowercase. I renamed the file to _sed.pyd, and
    now PythonCard apps start, but IDLE still doesn't.

    Thanks for responding, BTW


    "Martin v. Loewis" <martin at v.loewis.de> wrote in message
    news:m3sn290wau.fsf at mira.informatik.hu-berlin.de...
    "Gary Pajer" <pajer at iname.com> writes:
    Using Win98SE.
    Python 2.2 has been working fine. On a whim I upgraded to 2.2.1 today.
    Now Idle won't start.
    What exactly did you do to update? What files did you download
    (precise URL please), in what order did you perform what actions?

    Regards,
    Martin
  • Tim Peters at Jul 25, 2002 at 1:56 am
    [Gary Pajer]
    I tried to follow the instructions in http://www.python.org/2.2.1/
    What instructions <wink>?
    First I downloaded http://www.python.org/ftp/python/2.2.1/UNWISE.EXE
    over my existing unwise.exe
    Good move. The next time you try this, uninstall Python immediately after
    this step (that's what unwise.exe is for). It will only delete files that
    it originally installed (so if you have 3rd-party extensions, etc, it will
    leave them alone). If it asks whether you want to do "a rollback", say no
    (because you're going to install a newer Python anyway).

    I don't know that uninstalling first will actually help, but I never try
    installing a new version of anything over an old version of that thing, so I
    don't know that it won't help either -- and it might.
    Then I downloaded http://www.python.org/ftp/python/2.2.1/Python-2.2.1.exe

    Then I started the installer. It detected c:/python22
    Not quite -- it always suggests that directory, even if it doesn't exist, or
    even if you have a previous installion in a different directory.
    and offered to install there. I said ok That means it was installing in
    the same directory as version 2.2 lived. Right.
    It offered to make backups of existing files, I said yes, please.
    That's a good idea too. If you get utterly sick of Python, the uninstaller
    supports a "rollback" mode, which restores everything (within reason) to
    what it was before you installed Python.
    That's all.

    Since my first post, I noticed that PythonCard applications
    crashed with the same error. I found a file called _SED.PYD in the new
    installation,
    There is no such file. Do you mean _SRE.PYD? Even that would be peculiar.
    That's the name Wise uses internally for the file, but it should have
    changed it to lowercase while installing it.
    but in the backup, the filename was lowercase. I renamed the file to
    _sed.pyd, and now PythonCard apps start, but IDLE still doesn't.
    Again, there is no such file in the distribution. You could try renaming it
    to _sre.pyd, but your system is in such a unique state, if I were you I'd
    blow away my Python22 directory and start over from scratch. Or install
    2.2.1 into a different folder.
  • Gary Pajer at Jul 25, 2002 at 3:00 am
    "Tim Peters" <tim.one at comcast.net> wrote in message
    news:mailman.1027562256.6293.python-list at python.org...
    [Gary Pajer]
    I tried to follow the instructions in http://www.python.org/2.2.1/
    What instructions <wink>?
    [...]
    crashed with the same error. I found a file called _SED.PYD in the new
    installation,
    There is no such file. Do you mean _SRE.PYD? Even that would be peculiar.
    That's the name Wise uses internally for the file, but it should have
    changed it to lowercase while installing it.
    Right. _SRE, not _SED. Just making sure you're paying attention :)
    But it did unpack in all caps.
    if I were you I'd
    blow away my Python22 directory and start over from scratch. Or install
    2.2.1 into a different folder.
    Easy enough. I copied (for safety) a directory of homemade utilities. Then
    I did an uninstall "custom" and blew away most files and registry entries.
    Then reinstall, and everything works fine. Thanks very much.
  • Darrell at Jul 25, 2002 at 3:54 am
    A shot in the dark.

    Check you python path with something like this.
    Run it by double clicking it, to check file associations.

    import sys
    print sys.path
    raw_input("Done")


    Old .pyc and .pyo files have caused me problems.


    --Darrell

    Gary Pajer wrote:
    Using Win98SE.
    Python 2.2 has been working fine. On a whim I upgraded to 2.2.1 today.
    Now Idle won't start.
    The traceback says that sre_compile.py fails at "import _sre" , No module
    named _sre.

    A search of google groups came up dry.
    Any idea?

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJul 24, '02 at 6:10p
activeJul 25, '02 at 3:54a
posts6
users4
websitepython.org

People

Translate

site design / logo © 2023 Grokbase