{"action":"created","issue":{"url":"https://api.github.com/repos/telegraphic/hickle/issues/64","repository_url":"https://api.github.com/repos/telegraphic/hickle","labels_url":"https://api.github.com/repos/telegraphic/hickle/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/telegraphic/hickle/issues/64/comments","events_url":"https://api.github.com/repos/telegraphic/hickle/issues/64/events","html_url":"https://github.com/telegraphic/hickle/issues/64","id":295455372,"number":64,"title":"IOError: Unable to open file when opening .hkl file from Directory","user":{"login":"PyPatel","id":24595575,"avatar_url":"https://avatars1.githubusercontent.com/u/24595575?v=4","gravatar_id":"","url":"https://api.github.com/users/PyPatel","html_url":"https://github.com/PyPatel","followers_url":"https://api.github.com/users/PyPatel/followers","following_url":"https://api.github.com/users/PyPatel/following{/other_user}","gists_url":"https://api.github.com/users/PyPatel/gists{/gist_id}","starred_url":"https://api.github.com/users/PyPatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyPatel/subscriptions","organizations_url":"https://api.github.com/users/PyPatel/orgs","repos_url":"https://api.github.com/users/PyPatel/repos","events_url":"https://api.github.com/users/PyPatel/events{/privacy}","received_events_url":"https://api.github.com/users/PyPatel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-08T10:17:13Z","updated_at":"2018-02-12T11:33:24Z","closed_at":"2018-02-08T10:31:18Z","author_association":"NONE","body":"I have compiled my training data into hickle file with extension .hkl\r\n\r\n    >>> import hickle as hkl\r\n    >>> a = hkl.load('~/path/folder with file/X_train.hkl')\r\n\r\nAbove line is giving me the following error:\r\n\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 1, in <module>\r\n      File \"/usr/local/lib/python2.7/dist-packages/hickle.py\", line 616, in load\r\n        h5f = file_opener(fileobj)\r\n      File \"/usr/local/lib/python2.7/dist-packages/hickle.py\", line 154, in file_opener\r\n        h5f = h5.File(filename, mode)\r\n      File \"/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py\", line 269, in __init__\r\n        fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)\r\n      File \"/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py\", line 99, in make_fid\r\n        fid = h5f.open(name, flags, fapl=fapl)\r\n      File \"h5py/_objects.pyx\", line 54, in h5py._objects.with_phil.wrapper\r\n      File \"h5py/_objects.pyx\", line 55, in h5py._objects.with_phil.wrapper\r\n      File \"h5py/h5f.pyx\", line 78, in h5py.h5f.open\r\n    IOError: Unable to open file (unable to open file: name = '~/path/folder with file/X_train.hkl', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)\r\n\r\nI have tried using `'r'` with it, but same error is generated. What is the issue here? Is the file type not supported or way to load the file?\r\n\r\nPlease help. Thanks."},"comment":{"url":"https://api.github.com/repos/telegraphic/hickle/issues/comments/364897367","html_url":"https://github.com/telegraphic/hickle/issues/64#issuecomment-364897367","issue_url":"https://api.github.com/repos/telegraphic/hickle/issues/64","id":364897367,"user":{"login":"PyPatel","id":24595575,"avatar_url":"https://avatars1.githubusercontent.com/u/24595575?v=4","gravatar_id":"","url":"https://api.github.com/users/PyPatel","html_url":"https://github.com/PyPatel","followers_url":"https://api.github.com/users/PyPatel/followers","following_url":"https://api.github.com/users/PyPatel/following{/other_user}","gists_url":"https://api.github.com/users/PyPatel/gists{/gist_id}","starred_url":"https://api.github.com/users/PyPatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyPatel/subscriptions","organizations_url":"https://api.github.com/users/PyPatel/orgs","repos_url":"https://api.github.com/users/PyPatel/repos","events_url":"https://api.github.com/users/PyPatel/events{/privacy}","received_events_url":"https://api.github.com/users/PyPatel/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T11:33:24Z","updated_at":"2018-02-12T11:33:24Z","author_association":"NONE","body":"I am getting following error during another run. I don't know why it is creating `NoneType` type error.\r\n\r\n        Traceback (most recent call last):\r\n          File \"<stdin>\", line 1, in <module>\r\n          File \"/usr/local/lib/python2.7/dist-packages/hickle.py\", line 624, in load\r\n            py_container = _load(py_container, h_root_group)\r\n          File \"/usr/local/lib/python2.7/dist-packages/hickle.py\", line 756, in _load\r\n            subdata = load_dataset(h_group)\r\n          File \"/usr/local/lib/python2.7/dist-packages/hickle.py\", line 643, in load_dataset\r\n            py_type = h_node.attrs[\"type\"][0]\r\n    AttributeError: 'NoneType' object has no attribute 'attrs'\r\n"}}
{"actor":{"display_login":"PyPatel"}}