<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body>Hi Barbara,<div><br></div><div>Ah ok. Thanks.</div><div><br></div><div>Jan</div><div style="font-size:100%;color:#000000"><!-- originalMessage --><div>-------- Oryginalna wiadomość --------</div><div>Od: help@hdfgroup.org </div><div>Data: 16.02.2018  19:16  (GMT+01:00) </div><div>Do: "Kotanski, Jan" <jan.kotanski@desy.de> </div><div>DW: debian-science-maintainers@lists.alioth.debian.org </div><div>Temat: Re: hdfview 2.11 locks SWMR files </div><div><br></div></div>Hi Jan,<br><br>You can use the h5clear -s utility to remove the flag.<br>I should have mentioned that!<br><br>-Barbara<br><br><br>On Fri, 16 Feb 2018, Kotanski, Jan wrote:<br><br>> Hi Barbara,<br>><br>> Is there any way to rescue (i.e. unlock) the files broken by hdfview,<br>> e.g. a script which unlocks the file?<br>><br>> If not we have to forbid our user to use the hdfview (or do not use SWMR).<br>> They don't know a priori if the file was created with SWMR or not.<br>> And if they cannot unlock broken files they loose their data.<br>><br>> Best regards,<br>> Jan<br>><br>> ----- Original Message -----<br>> From: help@hdfgroup.org<br>> To: "Jan Kotanski" <jan.kotanski@desy.de><br>> Cc: debian-science-maintainers@lists.alioth.debian.org<br>> Sent: Friday, 16 February, 2018 16:49:46<br>> Subject: Re: hdfview 2.11 locks SWMR files<br>><br>> Hi Jan,<br>><br>> HDFView 2.11 is based on HDF5-1.8 with 32-bit object identifiers. SWMR is a new<br>> feature in HDF5-1.10 (which has 64-bit object identifiers).<br>><br>> HDFView 3.0 (Beta) supports HDF5-1.10. However, even if you use it and select<br>> "File->Open", it gets a lock on the file and it modifies it. We are working on<br>> resolving this issue for the release version of HDFView 3.0 due out later this<br>> year (after HDF5-1.10.2).<br>><br>> As a workaround, we believe you should be able to use HDFView 3.0 (Beta) to open<br>> the file if you select "File->Open Read-Only".<br>><br>> -Barbara<br>><br>> ========================================================<br>> Barbara Jones, The HDF Group Helpdesk, help@hdfgroup.org<br>> Support Services:  https://www.hdfgroup.org/solutions/<br>> ========================================================<br>><br>> On Fri, 16 Feb 2018, Jan Kotanski wrote:<br>><br>>> Dear HDFView Maintainers,<br>>><br>>> I've just accounted problems in reading SWMR files with hdfview 2.11 on debian stretch.<br>>><br>>> The hdfview 2.11 not only cannot read the SWMR files but it breaks them, i.e. set a lock inside the files,<br>>> and the files are no more readable.<br>>><br>>> For example I create a file<br>>><br>>>    http://www.desy.de/~jkotan/swmr/swmr.h5<br>>><br>>> with:<br>>><br>>>    http://www.desy.de/~jkotan/swmr/writer2dattr.py<br>>><br>>> Normally, I can read it on stretch with:<br>>><br>>>    http://www.desy.de/~jkotan/swmr/reader2d.py<br>>><br>>><br>>> But after I run:<br>>><br>>> jkotan@stretch-jk:~/sources/lavue/nxstest$ hdfview swmr.h5<br>>><br>>> I get:<br>>><br>>> jkotan@stretch-jk:~/sources/lavue/nxstest$ python reader2d.py<br>>> Traceback (most recent call last):<br>>>  File "reader2d.py", line 4, in <module><br>>>    f = h5py.File("swmr.h5", 'r', libver='latest', swmr=True)<br>>>  File "/usr/lib/python2.7/dist-packages/h5py/_hl/files.py", line 271, in __init__<br>>>    fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)<br>>>  File "/usr/lib/python2.7/dist-packages/h5py/_hl/files.py", line 101, in make_fid<br>>>    fid = h5f.open(name, flags, fapl=fapl)<br>>>  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/build/h5py-b1xqNM/h5py-2.7.0/h5py/_objects.c:2842)<br>>>  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/build/h5py-b1xqNM/h5py-2.7.0/h5py/_objects.c:2800)<br>>>  File "h5py/h5f.pyx", line 78, in h5py.h5f.open (/build/h5py-b1xqNM/h5py-2.7.0/h5py/h5f.c:2127)<br>>> IOError: Unable to open file (File is not already open for swmr writing)<br>>><br>>><br>>> Thus, the hdfview breaks the file and the SWMR file is not more readable.<br>>><br>>><br>>> Is it possible to provide backports for the hdfview package with the version which fix the above problem<br>>>   (hope the newer version, e.g. 3.0.0 fix this problem)?<br>>><br>>><br>>> Best regards,<br>>> Jan<br>>><br>><br>> --<br>><br><br>-- <br></body></html>