python 2.7.1 built not supporting thread?

Wong Wah Meng-R32813 r32813 at
Wed Sep 28 10:37:13 CEST 2011

Hello there,

I couldn't detect this problem until I run my application that utilizes thread module in python that I just built on HP-UX 11.31 ia64 using aCC.

Could it be the build did not include enable thread option? _REENTRANT as stated in the README file? If yes, it looks like threading may not work "out of the box". 

>>> thread.start_new_thread(testing, ())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
thread.error: can't start new thread

Excerpts from README file for python 2.7 build

HP-UX:  When using threading, you may have to add -D_REENTRANT to the
        OPT variable in the top-level Makefile; reported by Pat Knight,
        this seems to make a difference (at least for HP-UX 10.20)
        even though pyconfig.h defines it. This seems unnecessary when
        using HP/UX 11 and later - threading seems to work "out of the


More information about the Python-list mailing list