[issue16047] Tools/freeze no longer works in Python 3

Brett Cannon report at bugs.python.org
Tue Mar 25 19:27:19 CET 2014


Brett Cannon added the comment:

OK, so trying to import around the package was definitely why the first instance didn't work so that's all expected.

As for the failure when importing psycopg2, my guess is that the freezing of psycopg2.__init__ is not setting __path__ to anything reasonable to work with dynamically loading psycopg2._psycopg. That really shouldn't really ever work anyway since that just doesn't make sense from the perspective of freezing a package unless you made the extension module a built-in module, but I don't think submodules are supported in that case right now anyway.

MAL, do you agree with that assessment?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16047>
_______________________________________


More information about the Python-bugs-list mailing list