{"action":"created","issue":{"url":"https://api.github.com/repos/h5py/h5py/issues/732","repository_url":"https://api.github.com/repos/h5py/h5py","labels_url":"https://api.github.com/repos/h5py/h5py/issues/732/labels{/name}","comments_url":"https://api.github.com/repos/h5py/h5py/issues/732/comments","events_url":"https://api.github.com/repos/h5py/h5py/issues/732/events","html_url":"https://github.com/h5py/h5py/issues/732","id":164526740,"number":732,"title":"Error while creating external links with unicode names","user":{"login":"kormitigrov","id":11956787,"avatar_url":"https://avatars.githubusercontent.com/u/11956787?v=3","gravatar_id":"","url":"https://api.github.com/users/kormitigrov","html_url":"https://github.com/kormitigrov","followers_url":"https://api.github.com/users/kormitigrov/followers","following_url":"https://api.github.com/users/kormitigrov/following{/other_user}","gists_url":"https://api.github.com/users/kormitigrov/gists{/gist_id}","starred_url":"https://api.github.com/users/kormitigrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kormitigrov/subscriptions","organizations_url":"https://api.github.com/users/kormitigrov/orgs","repos_url":"https://api.github.com/users/kormitigrov/repos","events_url":"https://api.github.com/users/kormitigrov/events{/privacy}","received_events_url":"https://api.github.com/users/kormitigrov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-08T13:06:27Z","updated_at":"2016-07-12T07:05:44Z","closed_at":null,"body":"We are unable to create an ExternalLink to the file with the unicode (namely cyrilic) name. A simple example follows:\r\n\r\n```python\r\n# -*- coding: utf-8 -*-\r\n\r\nimport h5py\r\n\r\n# creating and opening file\r\nh5file = h5py.File('d:/temp/test.h5', 'w')\r\n\r\n# creating the link to the file with unicode name (existing)\r\n# h5file['link'] = h5py.ExternalLink('d:/work/grp_results.h5', '/')\r\nh5file['link'] = h5py.ExternalLink('d:/Работа/grp_results.h5', '/')\r\n\r\n# accessing the link - does not work\r\nprint(h5file['link'])\r\n```\r\n\r\nThe traceback is rather odd:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files (x86)\\JetBrains\\PyCharm Community Edition 5.0.3\\helpers\\pydev\\pydevd.py\", line 2407, in <module>\r\n    globals = debugger.run(setup['file'], None, None, is_module)\r\n  File \"C:\\Program Files (x86)\\JetBrains\\PyCharm Community Edition 5.0.3\\helpers\\pydev\\pydevd.py\", line 1798, in run\r\n    launch(file, globals, locals)  # execute the script\r\n  File \"C:\\Program Files (x86)\\JetBrains\\PyCharm Community Edition 5.0.3\\helpers\\pydev\\_pydev_imps\\_pydev_execfile.py\", line 18, in execfile\r\n    exec(compile(contents+\"\\n\", file, 'exec'), glob, loc) \r\n  File \"D:/REXLAB/test5.py\", line 13, in <module>\r\n    print(h5file['link'])\r\n  File \"h5py\\_objects.pyx\", line 54, in h5py._objects.with_phil.wrapper (D:\\Build\\h5py\\h5py-2.5.x\\h5py\\_objects.c:2467)\r\n  File \"h5py\\_objects.pyx\", line 55, in h5py._objects.with_phil.wrapper (D:\\Build\\h5py\\h5py-2.5.x\\h5py\\_objects.c:2424)\r\n  File \"C:\\Program Files\\WinPython-64bit-3.4.4.2Qt5\\python-3.4.4.amd64\\lib\\site-packages\\h5py\\_hl\\group.py\", line 164, in __getitem__\r\n    oid = h5o.open(self.id, self._e(name), lapl=self._lapl)\r\n  File \"h5py\\_objects.pyx\", line 54, in h5py._objects.with_phil.wrapper (D:\\Build\\h5py\\h5py-2.5.x\\h5py\\_objects.c:2467)\r\n  File \"h5py\\_objects.pyx\", line 55, in h5py._objects.with_phil.wrapper (D:\\Build\\h5py\\h5py-2.5.x\\h5py\\_objects.c:2424)\r\n  File \"h5py\\h5o.pyx\", line 190, in h5py.h5o.open (D:\\Build\\h5py\\h5py-2.5.x\\h5py\\h5o.c:3516)\r\nKeyError: \"Unable to open object (Unable to open file: name = 'd:/temp\\\\grp_results.h5', errno = 2, error message = 'no such file or directory', flags = 1, o_flags = 2)\"\r\n```\r\n\r\nThe file d:/temp/test.h5 does not exist, the file d:/Работа/grp_results.h5 does exist. However, the traceback mentions d:/temp\\\\grp_results.h5 which is not mentioned anywhere in the code!\r\n\r\nWe're working with python 3.4.4, h5py 2.5.0 HDF5 1.8.15"},"comment":{"url":"https://api.github.com/repos/h5py/h5py/issues/comments/231955255","html_url":"https://github.com/h5py/h5py/issues/732#issuecomment-231955255","issue_url":"https://api.github.com/repos/h5py/h5py/issues/732","id":231955255,"user":{"login":"dondublon","id":1239237,"avatar_url":"https://avatars.githubusercontent.com/u/1239237?v=3","gravatar_id":"","url":"https://api.github.com/users/dondublon","html_url":"https://github.com/dondublon","followers_url":"https://api.github.com/users/dondublon/followers","following_url":"https://api.github.com/users/dondublon/following{/other_user}","gists_url":"https://api.github.com/users/dondublon/gists{/gist_id}","starred_url":"https://api.github.com/users/dondublon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dondublon/subscriptions","organizations_url":"https://api.github.com/users/dondublon/orgs","repos_url":"https://api.github.com/users/dondublon/repos","events_url":"https://api.github.com/users/dondublon/events{/privacy}","received_events_url":"https://api.github.com/users/dondublon/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T07:05:44Z","updated_at":"2016-07-12T07:05:44Z","body":"Yep, we use win7 x64. "}}
{"actor":{"display_login":"dondublon"}}