Py2Exe and Threading

ellisjb at ellisjb at
Mon Aug 23 23:23:38 CEST 2004

Lad wrote:
> Does anyone use Py2exe for a script that uses threading modul.
> In have a main thread and another in which I use smtplib to send
> while the main thread is running.
> Under Python it works well but after compilation into exe it hangs(
> freezes) in the thread where I send email with smtplib.

Sounds like you have a race condition that for whatever reason you're
lucky enough not to hit during interpretation.  Use appropriate locks;
I use py2exe on an application that uses many threads and have no


More information about the Python-list mailing list