api-python icon indicating copy to clipboard operation
api-python copied to clipboard

Calling py.nwb.display_versions.matlab() results in "Python Error: ImportError: cannot import name _errors"

Open ragavsathish opened this issue 9 years ago • 1 comments

I am trying to use matlab bridge to construct nwb file for our electrophysiology recording. I got stuck with below error. Any help would be greatly appreciated !

>> py.nwb.display_versions.matlab()

** Versions:
Python: 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)]
Python executable: D:\Program Files\R2016a\bin\win64\MATLAB.exe
unable to import hd5f: <type 'exceptions.ImportError'>

ragavsathish avatar Oct 01 '16 14:10 ragavsathish

It's working for me (on Mac OS Sierra):

** Versions:
Python: 2.7.13 |Continuum Analytics, Inc.| (default, Dec 20 2016, 23:05:08) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
('Python executable: %s', '/Users/jonc/anaconda3/envs/nwb/bin/python')
HDF5 API: 1.8
HDF5: 1.8.17

Your output looks rather confused; was that a direct copy & paste? Or did it read 'hdf5' not 'hd5f'? My first guess would be that you haven't installed h5py properly in your Python environment. Did the quick Python API test work?

jonc125 avatar Jan 17 '17 12:01 jonc125