dbv <
dinesh...@hotmail.com> writes:
> Environment: Ubuntu 12.04, Windows XP/7, virtualenv 1.9.1, Python 2.73,
> Numpy 1.7.0, Scipy 0.11, PyInstaller 2.0
you don't tell us which version of gevent you're using.
>
> Generating executable with PyInstaller (in a virtualenv) and got the
> following error:
[snip]
>
> Any ideas what might be going on?
gevent uses some hidden imports and uses modules that may conflict with
stdlib modules if you're packager fails to handle them in the right way
(gevent.os, gevent.socket).
the github version and rc2 contains some code to 'unhide' those hidden
imports.
bbfreeze (
https://github.com/schmir/bbfreeze) may be able to freeze you
application (use the git version, it contains some fixes for gevent)
please also see
https://github.com/SiteSupport/gevent/issues/181
>
> Btw, does gevent have to be imported into every source file even if source
> file doesn't use gevent?
yes, that's because monkeypatching should happen as one of the first
things a program does.
--
Cheers
Ralf