in reply to Error when creating Expect object
Are you sure the respective number of device files have actually been created? (ls /dev/ptym/* |wc) — the default seems to be 60. With which exact parameters did you run insf(1M)?