freeze in python3

Discussion in 'Python' started by Patrick Stinson, Dec 10, 2009.

  1. NOTE: This is related but is not a duplicate of my post from yesterday.

    Has anyone used Tools/freeze/freeze.py in python3? I tried it with a
    clean source distribution and for some reason freeze.py is generating
    code that uses the old naming convention for module init functions. I
    get the following unresolved symbols for the default hello.py:

    Undefined symbols for architecture i386:
    "_init_codecs", referenced from:
    __PyImport_Inittab in config.o
    "_init_functools", referenced from:
    __PyImport_Inittab in config.o
    "_init_thread", referenced from:
    __PyImport_Inittab in config.o
    "_initerrno", referenced from:
    __PyImport_Inittab in config.o
    "_initposix", referenced from:
    __PyImport_Inittab in config.o
    "_initgc", referenced from:
    __PyImport_Inittab in config.o
    "_init_locale", referenced from:
    __PyImport_Inittab in config.o
    "_init_io", referenced from:
    __PyImport_Inittab in config.o
    "_init_sre", referenced from:
    __PyImport_Inittab in config.o
    "_initimp", referenced from:
    __PyImport_Inittab in config.o
    "_initpwd", referenced from:
    __PyImport_Inittab in config.o
    "_init_weakref", referenced from:
    __PyImport_Inittab in config.o
    "_initsignal", referenced from:
    __PyImport_Inittab in config.o
    "_initzipimport", referenced from:
    __PyImport_Inittab in config.o

    For example, initerrno should now be PyInit_errno. Am I missing something?
    Patrick Stinson, Dec 10, 2009
    #1
    1. Advertising

  2. > For example, initerrno should now be PyInit_errno. Am I missing something?

    No; freeze hasn't been ported to Python 3 yet. Contributions are welcome.

    Regards,
    Martin
    Martin v. Loewis, Dec 10, 2009
    #2
    1. Advertising

  3. awesome!

    On Thu, Dec 10, 2009 at 2:17 PM, Martin v. Loewis <> wrote:
    >> For example, initerrno should now be PyInit_errno. Am I missing something?

    >
    > No; freeze hasn't been ported to Python 3 yet. Contributions are welcome.
    >
    > Regards,
    > Martin
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >
    Patrick Stinson, Dec 11, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nelson Xu

    .NET application freeze

    Nelson Xu, Sep 10, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    984
    Olaf Baeyens
    Sep 13, 2004
  2. Mike Szanto
    Replies:
    0
    Views:
    353
    Mike Szanto
    Aug 28, 2003
  3. Patrick Stinson

    using freeze.py with python3

    Patrick Stinson, Dec 9, 2009, in forum: Python
    Replies:
    0
    Views:
    667
    Patrick Stinson
    Dec 9, 2009
  4. Replies:
    5
    Views:
    231
    Olivier Renaud
    Mar 15, 2007
  5. Andrew Berg
    Replies:
    0
    Views:
    321
    Andrew Berg
    Jun 16, 2012
Loading...

Share This Page