homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients Arfrever, Trundle, barry, brett.cannon, chba, eric.smith, eric.snow, jcea, jkloth, lemburg, loewis, meador.inge, r.david.murray
Date 2014年03月25日.20:07:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5331E20C.6040700@egenix.com>
In-reply-to <5331CDE0.9030405@egenix.com>
Content
On 25.03.2014 19:41, M.-A. Lemburg wrote:
> I'll have to have a look at how the pyscopg2 package normally
> imports its C extension. It's likely that they will have to use
> something like this to make things work for frozen apps as well:
> 
> try:
> from psycopg2 import _psycopg
> except ImportError:
> # try to find the module at the top-level
> import _psyocpg
> 
> or setup the package's .__path__ to include the top-level
> dir.
The package uses absolute imports for importing the C extension, e.g.
from psycopg2._psycopg import __version__
This cannot work in Python with frozen packages. Not in Python 2 and
not in Python 3 either.
Christian: Your only option is not to freeze the psycopg2 package
and ship it along side your frozen application or to build the
frozen app with the psycopg2 C extension built statically.
In any case, freeze is not at fault here.
History
Date User Action Args
2014年03月25日 20:07:45lemburgsetrecipients: + lemburg, loewis, barry, brett.cannon, jcea, eric.smith, jkloth, Arfrever, r.david.murray, Trundle, meador.inge, eric.snow, chba
2014年03月25日 20:07:45lemburglinkissue16047 messages
2014年03月25日 20:07:45lemburgcreate

AltStyle によって変換されたページ (->オリジナル) /