I have successfully packaged an application that uses paramiko (which
imports Crypto), thanks for Pyinstaller!
However, there's a slight problem: Crypto uses some libraries that
display deprecation warning. It is easy to suppress those warnings in
the .py file:
#!/usr/bin/python2.4 -W ignore::DeprecationWarning
However, the binary while executing now displays:
cssh/build/pyi.linux2/cssh/outPYZ1.pyz/Crypto.Util.randpool:40:
RandomPool_DeprecationWarning: This application uses RandomPool, which
is BROKEN in older releases. See http://www.pycrypto.org/randpool-broken
Is there some way of suppressing this?
Regards,
mk
The fastest way is to disable the warning at runtime, by importing and
using the "warning" standard module. This will work with and without
PyInstaller.
FYI, the equivalent of using command-line arguments would be to use the
OPTION element in the TOC:
http://www.pyinstaller.org/export/latest/trunk/doc/Manual.html?format=raw#toc-class-table-of-contents
You could try adding something like ('W', 'ignore::DeprecationWarning',
'OPTION') to the TOC within your Makespec. The code that handles this
at bootstrap is in source/common/launch.c, around line 570. I'm not even
sure it is currently compiled in (there's an #ifdef which should
probably be removed).
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
Thanks this worked!