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
Date 2014-03-25.14:28:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On 25.03.2014 13:02, Christian Bachmaier wrote:
> Christian Bachmaier added the comment:
> # ldd hello
> =>  (0x00007fffd677e000)
> => /usr/lib/x86_64-linux-gnu/ (0x00007f968c6c2000)
> => /lib/x86_64-linux-gnu/ (0x00007f968c4a4000)
> => /lib/x86_64-linux-gnu/ (0x00007f968c0dd000)
> => /lib/x86_64-linux-gnu/ (0x00007f968beb3000)
> => /lib/x86_64-linux-gnu/ (0x00007f968bc9a000)
> => /lib/x86_64-linux-gnu/ (0x00007f968ba95000)
> => /lib/x86_64-linux-gnu/ (0x00007f968b892000)
> => /lib/x86_64-linux-gnu/ (0x00007f968b58c000)
>         /lib64/ (0x00007f968ccfb000)
> and (even strace) does not show an attempt to acces the so-file. Also tried to add
> -L/usr/lib/python3/dist-packages/psycopg2
> and similar without success.
> Can anyone try to reproduce it, a freeze (with patches) of containing only
> import _psycopg2
> or maybe another external library? In the first case apt-get install python3-psycopg2 is necessary.

Christian, what you're expecting is not what freeze can offer.

The shared library is not linked into the resulting binary
by simply having an import in the Python file. freeze does
support adding the external library statically, but it's not

See the eGenix PyRun source archive for how it's done:

The question I raised was whether running "hello" will
fail to import the shared library _pyscopg2*.so or not.

If that's the case (and only then), you have found a bug that
needs fixing. If not, please ask your usage questions on other
lists. This ticket is about getting freeze working again for
Python 3.x, not about its usage.

Marc-Andre Lemburg
Date User Action Args
2014-03-25 14:28:08lemburgsetrecipients: + lemburg, loewis, barry, brett.cannon, jcea, eric.smith, jkloth, Arfrever, Trundle, meador.inge, eric.snow, chba
2014-03-25 14:28:08lemburglinkissue16047 messages
2014-03-25 14:28:08lemburgcreate