Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

freeze in python3

0 views
Skip to first unread message

Patrick Stinson

unread,
Dec 10, 2009, 2:44:02 AM12/10/09
to pytho...@python.org
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?

Almar Klein

unread,
Dec 10, 2009, 6:50:43 AM12/10/09
to Patrick Stinson, pytho...@python.org
Hi Patrick,

It's not exactly what you asked, but I've been able to freeze a Python
3 project using cx_Freeze.

Almar


2009/12/10 Patrick Stinson <patricksti...@gmail.com>:

> --
> http://mail.python.org/mailman/listinfo/python-list
>

Martin v. Loewis

unread,
Dec 10, 2009, 4:17:55 PM12/10/09
to
> 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

Patrick Stinson

unread,
Dec 10, 2009, 7:52:05 PM12/10/09
to Martin v. Loewis, pytho...@python.org
0 new messages