-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDF5File.__init() requires a fileID #81
Comments
In case anyone runs into this issue, you can fix it as follows. This is not safe wrt. package updates though. The problem is that |
Btw this is still happening on latest version with macos . |
@cpra suggestion fixed me partly. There is one more place where the error occurs and I could not trace it (see listing below). So I commented out the offending assert in file.lua and added an explicit conversion listing-------- |
The constructor wants a "number" so we convert to it. Issue google-deepmind#81
when I process hdf5.open('filepath','r')
th> hdf5.open('bot.hdf5','r')
/opt/torch/install/share/lua/5.1/hdf5/file.lua:10: HDF5File.__init() requires a fileID - perhaps you want HDF5File.create()?
stack traceback:
[C]: in function 'assert'
/opt/torch/install/share/lua/5.1/hdf5/file.lua:10: in function '__init'
/home/wpf/.luarocks/share/lua/5.1/torch/init.lua:91: in function </home/wpf/.luarocks/share/lua/5.1/torch/init.lua:87>
[C]: in function 'open'
[string "_RESULT={hdf5.open('bot.hdf5','r')}"]:1: in main chunk
[C]: in function 'xpcall'
/opt/torch/install/share/lua/5.1/trepl/init.lua:652: in function 'repl'
/opt/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00405b50
[0.0011s]
th>
The text was updated successfully, but these errors were encountered: