NeurodataWithoutBorders / api-python

[DEPRECATED] Python API for NWB < 2.0
Other
28 stars 14 forks source link

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

Open ragavsathish opened 8 years ago

ragavsathish commented 8 years ago

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'>
jonc125 commented 7 years ago

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?