#19 MemoryError on application startup

closed-out-of-date
None
5
2006-11-24
2003-08-01
Jarek Zgoda
No

I just migrated to Python 2.3 and discovered, that an
application made with py2exe does not start, showing
MemoryError. The same simple script produced valid
application under Python 2.2.2:

from distutils.core import setup
import py2exe
setup(name='HtmlGen', scripts=['htmlgen.py'], )

The only 3rd party module used is wxPython.

Discussion

  • Thomas Heller

    Thomas Heller - 2003-08-04

    Logged In: YES
    user_id=11105

    Jarek, can you try to create a *small' program which has
    this problem, and upload it to this bug report, so that I
    can reproduce this?

     
  • Thomas Heller

    Thomas Heller - 2003-08-04
    • assigned_to: nobody --> theller
     
  • Nobody/Anonymous

    Logged In: NO

    I have the same pb with a wxPython.
    I wrote a small app : there is just print "toto" in the
    script file.
    When i build the exe, it prints toto.
    I add the coding comment as describe in PEP 263 in the
    script file,
    i rebuild the exe, then i have the MemoryError on
    application startup.
    I use python 2.3 and py2exe 0.4.1

     
  • seb leger

    seb leger - 2003-08-19

    Logged In: YES
    user_id=847771

    sorry, i wasn't logged in...
    I (sebl) am the noboby of the comment below.

     
  • Thomas Heller

    Thomas Heller - 2003-08-19

    Logged In: YES
    user_id=11105

    Can someone (sebl or zgoda) please attach a script plus a
    setup.py file which lets me reproduce this behaviour? So far
    it works for me.

     
  • seb leger

    seb leger - 2003-08-20

    Logged In: YES
    user_id=847771

    the scripts:
    bugtest.py :
    ----------------------------
    #!python
    # -*- coding: latin1 -*-

    print "toto"
    -----------------------------
    setup.py :
    -----------------------------
    from distutils.core import setup
    import py2exe

    setup(name='test',scripts=['bugtest.py'])
    ------------------------------
    the py2exe command line :
    python setup.py py2exe

    when i remove the coding comment in bugtest.py, it does not
    produce the MemoryError on startup and prints "toto" as
    expected.

     
  • Oleg Deribas

    Oleg Deribas - 2003-09-06

    Logged In: YES
    user_id=281684

    This bug appears only when there is coding comment in file,
    that is included in 'scripts' list (main file of application).
    All other files in my project have coding comment and there
    is not MemoryError.

     
  • Thomas Heller

    Thomas Heller - 2006-11-24
    • status: open --> closed-out-of-date
     

Log in to post a comment.