Closed luiztauffer closed 4 years ago
Hi @luiztauffer . Please try out the latest 1.4.0 version of HDMF and let me know if that does or does not fix the error.
@rly
When using hdmf=1.4.0
and pynwb=1.1.2
, I get the following installation error:
ERROR: pynwb 1.1.2 has requirement hdmf==1.3.3, but you'll have hdmf 1.4.0 which is incompatible.
and when running the test script, I get:
Traceback (most recent call last):
File "test.py", line 5, in <module>
nwb = NWBFile('session_description', 'identifier', datetime.now().astimezone())
File "C:\Users\Luiz\Anaconda3\envs\nwbn_conversion\lib\site-packages\hdmf\utils.py", line 461, in func_call
return func(self, **parsed['args'])
File "C:\Users\Luiz\Anaconda3\envs\nwbn_conversion\lib\site-packages\pynwb\file.py", line 298, in __init__
super(NWBFile, self).__init__(*pargs, **pkwargs)
File "C:\Users\Luiz\Anaconda3\envs\nwbn_conversion\lib\site-packages\hdmf\utils.py", line 452, in func_call
allow_extra=allow_extra)
File "C:\Users\Luiz\Anaconda3\envs\nwbn_conversion\lib\site-packages\hdmf\utils.py", line 164, in __parse_args
raise TypeError('Expected at most %s arguments, got %s' % (len(validator), len(args) + len(kwargs)))
TypeError: Expected at most 1 arguments, got 2
I tested it now with the most current github version pynwb-1.1.2.post0.dev7
and it is working!
Thanks for the fix!
Awesome. We haven't released a new version of pynwb which would use the latest hdmf yet (we will soon), so yes, you'll have to use the dev version in the meantime.
I’m having a problem creating an extension, more specifically, to create an attribute of type
bool
.On the list of valid primary dtypes, I get: {'isodatetime', 'datetime64', 'region', 'int8', 'int16', 'bool', 'int', 'ascii', 'int32', 'text', 'bytes', 'int64', 'utf-8', 'double', 'utf', 'datetime', 'uint32', 'uint', 'uint64', 'uint16', 'object', 'numeric', 'float32', 'float', 'short', 'float64', 'long', 'uint8', 'utf8'}
Then I try to add an attribute of type
bool
:Here’s the full code.
When I run this test, it apparently works well in saving the nwb file with the new extension, I can even open the file with HDFView, but fails opening the new file with NWBHDF5IO. The error:
I’m guessing the source is here?
Does anyone have a hint how to solve it?
Checklist