please provide the platform and python version that you are using. openpty is part of your standard c libraries (libutil.so on linux) that libpythonx.y.so is linked with.
gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) with
Python 2.4.1 and with ROOT 4.04/02b
Although I have another pc on which everything works fine:
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
g++ (GCC) 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)
with
Python 2.4.2 and with 5.08/00b
python2.4 should have a shared library build by default, so can you load that one before loading PyROOT? That will drag in libutil, or at least a dummy openpty if your system doesn’t have it: