Python 1.5.2 on HPUX 10.20

Thomas Wouters thomas at
Wed Aug 25 14:08:16 CEST 1999

On Wed, Aug 25, 1999 at 01:38:37PM +0200, Volker Hetzer wrote:

> This is my first look into python. I tried to install it
> % ./configure --prefix=/opt/python
> % make all install

> and to test it
> % make test

> The fcntl test failed (twice):

> % /opt/python/bin/python Lib/test/
> Status from fnctl with O_NONBLOCK:  0
> struct.pack:  '\000\002\000\000\000\000\000\000\000\000\000\000\000\000\000\000'
> Traceback (innermost last):
>   File "Lib/test/", line 30, in ?
>     rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETLKW, lockdata)
> IOError: [Errno 22] Invalid argument
> %

> Is this serious? What am I to do?

You were probably trying to test locking on a file on a filesystem that
doesn't support locking. NFS filesystems, for example, usually dont support
it (unless both your machine and the NFS server have lockd running.)

The test tries to lock /tmp/delete-me by default... If /tmp is a filesystem
that doesn't support locking (it's a RAM-like filesystem on some operating
systems, I am not sure if those support locking) you can change it by
changing the line

filename = '/tmp/delete-me'

to make it point to somewhere that does support locking, and where you can
write (perhaps your homedirectory, though that is often nfs-mounted ;-)

Thomas Wouters <thomas at>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

More information about the Python-list mailing list