Control: tags -1 + patch
Hi,
On Fri, 12 May 2017 08:32:28 +0200 Marc Rosanes wrote:
> Hi,
>
> We have found that python-nxs is still affected by problems:
>
> The following piece of code fails on stretch + the lastest nexus from
> unstable:
>
> ```
> import nxs
> f = nxs.open("/tmp/foo.h5",
Hi,
We have found that python-nxs is still affected by problems:
The following piece of code fails on stretch + the lastest nexus from
unstable:
```
import nxs
f = nxs.open("/tmp/foo.h5", "w5")
f.makegroup('entry', 'NXentry')
f.opengroup('entry')
f.makegroup('g', 'NXcollection')
f.opengroup('
Hi,
while nexus 4.3.2-svn1921-5 fixes the originally reported exception, the
fix seems not to be complete [1].
In order to trigger the still-existing regression, run the following
python code (which ideally should exit without errors):
```
import nxs
f = nxs.open("/tmp/foo.h5", "w5")
f.makegroup
here the error message
~/Debian/nexus/bugs$ ./bug.py
Traceback (most recent call last):
File "./bug.py", line 15, in
f.flush()
File "/usr/lib/python2.7/dist-packages/nxs/napi.py", line 397, in flush
raise NeXusError, "Could not flush NeXus file %s"%(self.filename)
nxs.napi.NeXusError:
It seems that the fix is not enought
this test failed at the flush
import nxs
f = nxs.open("/tmp/foo.h5", "w5")
f.makegroup('entry', 'NXentry')
f.opengroup('entry')
f.makegroup('g', 'NXcollection')
f.opengroup('g', 'NXcollection')
f.makedata('d', 'float64', shape=(1,))
f.opendata('d')
f.putdata(1
Control: tags -1 + patch
On Mon, 8 May 2017 14:34:31 + PICCA Frederic-Emmanuel
wrote:
> Here after rebuilding hdf5 in debug mode
>
> :~/Debian/nexus$ ./bug.py
> H5get_libversion(majnum=0xbf8a5b04, minnum=0xbf8a5b08, relnum=0xbf8a5b0c) =
> SUCCEED;
> H5Eset_auto2(estack=H5P_DEFAULT, func=NUL
Here after rebuilding hdf5 in debug mode
:~/Debian/nexus$ ./bug.py
H5get_libversion(majnum=0xbf8a5b04, minnum=0xbf8a5b08, relnum=0xbf8a5b0c) =
SUCCEED;
H5Eset_auto2(estack=H5P_DEFAULT, func=NULL, client_data=NULL) = SUCCEED;
H5open() = SUCCEED;
H5Pcreate(cls=8 (genprop class)) = 18 (genprop list)
activating the NXError reporting we got
filenamenxs.h5 5
ERROR: cannot open file: filenamenxs.h5
0
and looking for this errormessage,
we found it in the napi5.c file
NXstatus NX5open(CONSTCHAR *filename, NXaccess am,
NXhandle* pHandle)
{
hid_t attr1,ai
Herethe code ofthismethod
/**/
static NXstatus NXinternalopen(CONSTCHAR *userfilename, NXaccess am,
pFileStack fileStack);
/*--*/
NXstatus NXopen(
in the napi.h files we saw this.
define CONCAT(__a,__b) __a##__b/* token concatenation */
#ifdef __VMS
#define MANGLE(__arg) __arg
#else
#define MANGLE(__arg) CONCAT(__arg,_)
#endif
#define NXopen MANGLE(nxiopen)
/**
* Open a NeXus fi
Let's instrument the code
print filename, mode, _ref(self.handle)
status = nxlib.nxiopen_(filename,mode,_ref(self.handle))
print status
$ python bug.py
filenamenxs.h5 5
0
Hello
here the napi code which cause some trouble.
# Convert open mode from string to integer and check it is valid
if mode in _nxopen_mode: mode = _nxopen_mode[mode]
if mode not in _nxopen_mode.values():
raise ValueError, "Invalid open mode %s",str(mode)
Control: tag -1 + confirmed
Control: user debian-rele...@lists.debian.org
Control: usertag -1 + bsp-2017-05-ch-zurich
Hi,
Marc Rosanes wrote:
>import nxs
>e = nxs.NXentry(name= "NXtomo")
>e.save("filenamenxs.h5", 'w5')
[...]
> /usr/lib/python2.7/dist-packages/nxs/tree.pyc in save(self
Additional information:
Storing using 'w' format (hdf4), instead of using 'w5' format (hdf5);
the error does not appear:
import nxs
e = nxs.NXentry(name= "NXtomo")
e.save("filenamenxs.h5",*'**w**'*)
Package: python-nxs
Version: 4.3.2-svn1921-4
Severity: grave
Justification: renders package unusable
Dear Maintainer,
* What led up to the situation?
Run the following python code:
import nxs
e = nxs.NXentry(name= "NXtomo")
e.save("filenamenxs.h5", 'w5')
* What was the out
15 matches
Mail list logo