Open ross-folkard opened 3 years ago
@rf13734 can you please paste here the entire error traceback?
@luiztauffer
OSError Traceback (most recent call last)
<ipython-input-58-4a15d5a0fc44> in <module>
12 # chosen_sorting_extractor = sorting_ensemble
13
---> 14 quick_write(
15 ced_file_path=ced_file,
16 session_description=session_description,
c:\users\neuronetz\documents\github\mease-lab-to-nwb\mease_lab_to_nwb\convert_ced\cednwbconverter.py in quick_write(ced_file_path, session_description, session_start, save_path, sorting, recording_lfp, overwrite)
39 )
40 if recording_lfp is not None:
---> 41 write_recording(
42 recording=recording_lfp,
43 save_path=save_path,
c:\users\neuronetz\documents\github\nwb-conversion-tools\nwb_conversion_tools\utils\spike_interface.py in write_recording(recording, save_path, overwrite, nwbfile, buffer_mb, use_times, metadata, write_as, es_key, write_scaled)
879
880 # Write to file
--> 881 io.write(nwbfile)
882 else:
883 add_all_to_nwbfile(
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in func_call(*args, **kwargs)
578 def func_call(*args, **kwargs):
579 pargs = _check_args(args, kwargs)
--> 580 return func(args[0], **pargs)
581 else:
582 def func_call(*args, **kwargs):
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\backends\hdf5\h5tools.py in write(self, **kwargs)
402
403 cache_spec = popargs('cache_spec', kwargs)
--> 404 call_docval_func(super().write, kwargs)
405 if cache_spec:
406 self.__cache_spec()
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in call_docval_func(func, kwargs)
421 def call_docval_func(func, kwargs):
422 fargs, fkwargs = fmt_docval_args(func, kwargs)
--> 423 return func(*fargs, **fkwargs)
424
425
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in func_call(*args, **kwargs)
578 def func_call(*args, **kwargs):
579 pargs = _check_args(args, kwargs)
--> 580 return func(args[0], **pargs)
581 else:
582 def func_call(*args, **kwargs):
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\backends\io.py in write(self, **kwargs)
47 """Write a container to the IO source."""
48 container = popargs('container', kwargs)
---> 49 f_builder = self.__manager.build(container, source=self.__source, root=True)
50 self.write_builder(f_builder, **kwargs)
51
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in func_call(*args, **kwargs)
578 def func_call(*args, **kwargs):
579 pargs = _check_args(args, kwargs)
--> 580 return func(args[0], **pargs)
581 else:
582 def func_call(*args, **kwargs):
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\build\manager.py in build(self, **kwargs)
169 container.__class__.__name__))
170 # NOTE: if exporting, then existing cached builder will be ignored and overridden with new build result
--> 171 result = self.__type_map.build(container, self, source=source, spec_ext=spec_ext, export=export)
172 self.prebuilt(container, result)
173 self.__active_prebuilt(result)
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in func_call(*args, **kwargs)
578 def func_call(*args, **kwargs):
579 pargs = _check_args(args, kwargs)
--> 580 return func(args[0], **pargs)
581 else:
582 def func_call(*args, **kwargs):
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\build\manager.py in build(self, **kwargs)
764 if manager is None:
765 manager = BuildManager(self)
--> 766 builder = obj_mapper.build(container, manager, builder=builder, source=source, spec_ext=spec_ext, export=export)
767
768 # add additional attributes (namespace, data_type, object_id) to builder
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in func_call(*args, **kwargs)
578 def func_call(*args, **kwargs):
579 pargs = _check_args(args, kwargs)
--> 580 return func(args[0], **pargs)
581 else:
582 def func_call(*args, **kwargs):
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\build\objectmapper.py in build(self, **kwargs)
696 if builder is None:
697 builder = GroupBuilder(name, parent=parent, source=source)
--> 698 self.__add_datasets(builder, self.__spec.datasets, container, manager, source, export)
699 self.__add_groups(builder, self.__spec.groups, container, manager, source, export)
700 self.__add_links(builder, self.__spec.links, container, manager, source, export)
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\build\objectmapper.py in __add_datasets(self, builder, datasets, container, build_manager, source, export)
964 self.logger.debug(" Adding dataset for spec name: %s (dtype: %s)"
965 % (repr(spec.name), spec.dtype.__class__.__name__))
--> 966 attr_value = self.get_attr_value(spec, container, build_manager)
967 self.__check_quantity(attr_value, spec, container)
968 if attr_value is None:
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\utils.py in func_call(*args, **kwargs)
578 def func_call(*args, **kwargs):
579 pargs = _check_args(args, kwargs)
--> 580 return func(args[0], **pargs)
581 else:
582 def func_call(*args, **kwargs):
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\build\objectmapper.py in get_attr_value(self, **kwargs)
552 raise ContainerConfigurationError(msg)
553 if attr_val is not None:
--> 554 attr_val = self.__convert_string(attr_val, spec)
555 spec_dt = self.__get_data_type(spec)
556 if spec_dt is not None:
~\Miniconda3\envs\measelab\lib\site-packages\hdmf\build\objectmapper.py in __convert_string(self, value, spec)
602 ret = list(map(string_type, value))
603 else:
--> 604 ret = string_type(value)
605 # copy over any I/O parameters if they were specified
606 if isinstance(value, DataIO):
~\Miniconda3\envs\measelab\lib\site-packages\dateutil\tz\tz.py in utcoffset(self, dt)
220 return None
221
--> 222 if self._isdst(dt):
223 return self._dst_offset
224 else:
~\Miniconda3\envs\measelab\lib\site-packages\dateutil\tz\tz.py in _isdst(self, dt, fold_naive)
289
290 # Check for ambiguous times:
--> 291 dstval = self._naive_is_dst(dt)
292 fold = getattr(dt, 'fold', None)
293
~\Miniconda3\envs\measelab\lib\site-packages\dateutil\tz\tz.py in _naive_is_dst(self, dt)
258 def _naive_is_dst(self, dt):
259 timestamp = _datetime_to_timestamp(dt)
--> 260 return time.localtime(timestamp + time.timezone).tm_isdst
261
262 def _isdst(self, dt, fold_naive=True):
OSError: [Errno 22] Invalid argument
@rf13734 what python version you're using?
@rf13734 what python version you're using?
@luiztauffer Version 3.88
@rf13734 Hey there - I can't tell from reading this issue, did this problem ever get fixed?
Hi @luiztauffer, me again. I'm getting this error when I try to quicksave to NWB, hopefully this isn't too much of a problem.