Source: portalocker Version: 2.2.1-1 Severity: normal Tags: upstream Forwarded: https://github.com/wolph/portalocker/issues/92 X-Debbugs-Cc: car...@debian.org,ald...@ee.ethz.ch
Hi Locking on NFS mount does not work with portalocker, as a simple reproducer: ,---- [ test-lock.py ] | import portalocker | | file = open('/mnt/test.lock', mode='a') | | portalocker.lock(file, flags=portalocker.LOCK_SH|portalocker.LOCK_NB) `---- which result in Traceback (most recent call last): File "/usr/lib/python3/dist-packages/portalocker/portalocker.py", line 138, in lock fcntl.flock(file_.fileno(), flags) OSError: [Errno 9] Bad file descriptor During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/mnt/./test-lock.py", line 5, in <module> portalocker.lock(file, flags=portalocker.LOCK_SH|portalocker.LOCK_NB) File "/usr/lib/python3/dist-packages/portalocker/portalocker.py", line 142, in lock raise exceptions.LockException(exc_value, fh=file_) portalocker.exceptions.LockException: [Errno 9] Bad file descriptor There is nothing specific which can be done in Debian at this point in time, just filling the report referencing to the respective upstream issue, so it can be fixed downstream as well. Regards, Salvatore