Py2Exe and Threading

L

Lad

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 email
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.
Lad
 
R

Roger Binns

Lad said:
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 email
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.

Tell py2exe it is a console application and see if that makes a
difference. When you tell py2exe that it is a windowed (ie non-
console) app, then the stdout you get is actually a 4k buffer
that throws various exceptions when it fills.

Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,058
Members
47,668
Latest member
SamiraShac

Latest Threads

Top