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 <rep...@bugs.python.org> <http://bugs.python.org/issue16047> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com