Dear Wayne
I am sorry for my delay in reply. I got some problem installing Anaconda 64-bit in my computer.
After I ran Python 64-bit application for the above mentioned code.
WARNING:root:downloading a 1.66e+03mb file from http://api.brain-map.org//api/v2/well_known_file_download/1026123696
C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py:123: UserWarning: retrying fetch (1 tries remaining)
warnings.warn(retry_message)
WARNING:root:downloading a 1.66e+03mb file from http://api.brain-map.org//api/v2/well_known_file_download/1026123696
Traceback (most recent call last):
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py", line 104, in call_caching
return read()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_project_cache.py", line 347, in read
return EcephysSession(api=session_api, test=True)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session.py", line 299, in __init__
self.api.test()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session_api\ecephys_nwb_session_api.py", line 50, in test
self.get_ecephys_session_id()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session_api\ecephys_nwb_session_api.py", line 278, in get_ecephys_session_id
return int(self.nwbfile.identifier)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\nwb\nwb_api.py", line 23, in nwbfile
io = pynwb.NWBHDF5IO(self.path, 'r')
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\pynwb\__init__.py", line 228, in __init__
super(NWBHDF5IO, self).__init__(path, manager=manager, mode=mode, file=file_obj)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\backends\hdf5\h5tools.py", line 55, in __init__
super(HDF5IO, self).__init__(manager, source=path)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\backends\io.py", line 18, in __init__
self.open()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\backends\hdf5\h5tools.py", line 400, in open
self.__file = File(self.__path, open_flag, **kwargs)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\h5py\_hl\files.py", line 408, in __init__
swmr=swmr)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\h5py\_hl\files.py", line 173, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5f.pyx", line 88, in h5py.h5f.open
OSError: Unable to open file (truncated file: eof = 1617920, sblock->base_addr = 0, stored_eof = 1736516600)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py", line 104, in call_caching
return read()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_project_cache.py", line 347, in read
return EcephysSession(api=session_api, test=True)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session.py", line 299, in __init__
self.api.test()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session_api\ecephys_nwb_session_api.py", line 50, in test
self.get_ecephys_session_id()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session_api\ecephys_nwb_session_api.py", line 278, in get_ecephys_session_id
return int(self.nwbfile.identifier)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\nwb\nwb_api.py", line 24, in nwbfile
return io.read()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\backends\io.py", line 33, in read
container = self.__manager.construct(f_builder)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 195, in construct
result = self.__type_map.construct(builder, self)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1579, in construct
return attr_map.construct(builder, build_manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1133, in construct
subspecs = self.__get_subspec_values(builder, self.spec, manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1077, in __get_subspec_values
self.__get_sub_builders(groups, spec.groups, manager, ret)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1115, in __get_sub_builders
ret.update(self.__get_subspec_values(sub_builder, subspec, manager))
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1077, in __get_subspec_values
self.__get_sub_builders(groups, spec.groups, manager, ret)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1107, in __get_sub_builders
sub_builder = self.__flatten(sub_builder, subspec, manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1120, in __flatten
tmp = [manager.construct(b) for b in sub_builder]
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1120, in <listcomp>
tmp = [manager.construct(b) for b in sub_builder]
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 195, in construct
result = self.__type_map.construct(builder, self)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1579, in construct
return attr_map.construct(builder, build_manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1133, in construct
subspecs = self.__get_subspec_values(builder, self.spec, manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1077, in __get_subspec_values
self.__get_sub_builders(groups, spec.groups, manager, ret)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1093, in __get_sub_builders
for parent_dt in manager.namespace_catalog.get_hierarchy(ns, dt):
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\spec\namespace.py", line 314, in get_hierarchy
raise KeyError("'%s' not a namespace" % namespace)
KeyError: "'ndx-aibs-ecephys' not a namespace"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/chi-yu.lee/PycharmProjects/test_allen/first_test.py", line 32, in <module>
session = cache.get_session_data(session_id)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_project_cache.py", line 354, in get_session_data
num_tries=self.fetch_tries
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py", line 183, in one_file_call_caching
failure_message=failure_message,
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py", line 133, in call_caching
failure_message=failure_message,
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py", line 133, in call_caching
failure_message=failure_message,
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\api\caching_utilities.py", line 104, in call_caching
return read()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_project_cache.py", line 347, in read
return EcephysSession(api=session_api, test=True)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session.py", line 299, in __init__
self.api.test()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session_api\ecephys_nwb_session_api.py", line 50, in test
self.get_ecephys_session_id()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\ecephys\ecephys_session_api\ecephys_nwb_session_api.py", line 278, in get_ecephys_session_id
return int(self.nwbfile.identifier)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\allensdk\brain_observatory\nwb\nwb_api.py", line 24, in nwbfile
return io.read()
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\backends\io.py", line 33, in read
container = self.__manager.construct(f_builder)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 195, in construct
result = self.__type_map.construct(builder, self)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1579, in construct
return attr_map.construct(builder, build_manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1133, in construct
subspecs = self.__get_subspec_values(builder, self.spec, manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1077, in __get_subspec_values
self.__get_sub_builders(groups, spec.groups, manager, ret)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1115, in __get_sub_builders
ret.update(self.__get_subspec_values(sub_builder, subspec, manager))
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1077, in __get_subspec_values
self.__get_sub_builders(groups, spec.groups, manager, ret)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1107, in __get_sub_builders
sub_builder = self.__flatten(sub_builder, subspec, manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1120, in __flatten
tmp = [manager.construct(b) for b in sub_builder]
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1120, in <listcomp>
tmp = [manager.construct(b) for b in sub_builder]
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 195, in construct
result = self.__type_map.construct(builder, self)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1579, in construct
return attr_map.construct(builder, build_manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1133, in construct
subspecs = self.__get_subspec_values(builder, self.spec, manager)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1077, in __get_subspec_values
self.__get_sub_builders(groups, spec.groups, manager, ret)
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\build\map.py", line 1093, in __get_sub_builders
for parent_dt in manager.namespace_catalog.get_hierarchy(ns, dt):
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\utils.py", line 388, in func_call
return func(self, **parsed['args'])
File "C:\Users\chi-yu.lee\Anaconda3\envs\test_allen\lib\site-packages\hdmf\spec\namespace.py", line 314, in get_hierarchy
raise KeyError("'%s' not a namespace" % namespace)
KeyError: "'ndx-aibs-ecephys' not a namespace"
This new error message showed up