{"action":"created","issue":{"url":"https://api.github.com/repos/taurus-org/taurus/issues/836","repository_url":"https://api.github.com/repos/taurus-org/taurus","labels_url":"https://api.github.com/repos/taurus-org/taurus/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/taurus-org/taurus/issues/836/comments","events_url":"https://api.github.com/repos/taurus-org/taurus/issues/836/events","html_url":"https://github.com/taurus-org/taurus/issues/836","id":395628821,"node_id":"MDU6SXNzdWUzOTU2Mjg4MjE=","number":836,"title":"h5py import fails after prior import of taurus ","user":{"login":"reszelaz","id":6735649,"node_id":"MDQ6VXNlcjY3MzU2NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/6735649?v=4","gravatar_id":"","url":"https://api.github.com/users/reszelaz","html_url":"https://github.com/reszelaz","followers_url":"https://api.github.com/users/reszelaz/followers","following_url":"https://api.github.com/users/reszelaz/following{/other_user}","gists_url":"https://api.github.com/users/reszelaz/gists{/gist_id}","starred_url":"https://api.github.com/users/reszelaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reszelaz/subscriptions","organizations_url":"https://api.github.com/users/reszelaz/orgs","repos_url":"https://api.github.com/users/reszelaz/repos","events_url":"https://api.github.com/users/reszelaz/events{/privacy}","received_events_url":"https://api.github.com/users/reszelaz/received_events","type":"User","site_admin":false},"labels":[{"id":465821304,"node_id":"MDU6TGFiZWw0NjU4MjEzMDQ=","url":"https://api.github.com/repos/taurus-org/taurus/labels/bug","name":"bug","color":"ee0701","default":true},{"id":517487473,"node_id":"MDU6TGFiZWw1MTc0ODc0NzM=","url":"https://api.github.com/repos/taurus-org/taurus/labels/rejected","name":"rejected","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-01-03T16:06:21Z","updated_at":"2019-01-04T10:38:56Z","closed_at":"2019-01-04T10:36:33Z","author_association":"CONTRIBUTOR","body":"I discovered it on the Debian 9 docker container where locale is set to POSIX by default but can be easliy reproduced on a normal Debian 9 system:\r\n\r\n```\r\nzreszela@pc255:~/workspace/taurus (develop)> LANG=POSIX python -c \"import taurus; import h5py\"\r\n/usr/lib/python2.7/dist-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n  from ._conv import register_converters as _register_converters\r\n945\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/usr/lib/python2.7/dist-packages/h5py/__init__.py\", line 60, in <module>\r\n    from .tests import run_tests\r\n  File \"/usr/lib/python2.7/dist-packages/h5py/tests/__init__.py\", line 15, in <module>\r\n    from . import old, hl\r\n  File \"/usr/lib/python2.7/dist-packages/h5py/tests/old/__init__.py\", line 4, in <module>\r\n    from . import ( test_attrs,\r\n  File \"/usr/lib/python2.7/dist-packages/h5py/tests/old/test_group.py\", line 41, in <module>\r\n    fsencode(u\"α\")\r\n  File \"/usr/lib/python2.7/dist-packages/h5py/_hl/compat.py\", line 68, in fsencode\r\n    return filename.encode(encoding, errors)\r\n  File \"/usr/lib/python2.7/dist-packages/future/utils/surrogateescape.py\", line 59, in surrogateescape_handler\r\n    decoded = replace_surrogate_encode(mystring)\r\n  File \"/usr/lib/python2.7/dist-packages/future/utils/surrogateescape.py\", line 87, in replace_surrogate_encode\r\n    raise exc\r\nNameError: global name 'exc' is not defined\r\n```\r\n\r\nThis however works well with support-3.x:\r\n\r\n```\r\nzreszela@pc255:~/workspace/taurus (support-3.x)> LANG=POSIX python -c \"import taurus; import h5py\"\r\n/usr/lib/python2.7/dist-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.                                       \r\n  from ._conv import register_converters as _register_converters\r\n```\r\n\r\nUsing the en_US.UTF-8 it works well with the develop branch:\r\n\r\n```\r\nzreszela@pc255:~/workspace/taurus (develop)> LANG=en_US.UTF-8 python -c \"import taurus; import h5py\"                                                                                                                                                                           \r\n/usr/lib/python2.7/dist-packages/h5py/__init__.py:34: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.                                       \r\n  from ._conv import register_converters as _register_converters\r\n```\r\n\r\nFor me it looks like a bad coincidence of h5py which want to *skip* tests and a bug in python future module. When I fix the bug in the future module it does not allow me to import h5py after taurus anyway.\r\n\r\nSo, I think it is worth to take a deeper look on this..."},"comment":{"url":"https://api.github.com/repos/taurus-org/taurus/issues/comments/451409870","html_url":"https://github.com/taurus-org/taurus/issues/836#issuecomment-451409870","issue_url":"https://api.github.com/repos/taurus-org/taurus/issues/836","id":451409870,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTQwOTg3MA==","user":{"login":"cpascual","id":4115224,"node_id":"MDQ6VXNlcjQxMTUyMjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4115224?v=4","gravatar_id":"","url":"https://api.github.com/users/cpascual","html_url":"https://github.com/cpascual","followers_url":"https://api.github.com/users/cpascual/followers","following_url":"https://api.github.com/users/cpascual/following{/other_user}","gists_url":"https://api.github.com/users/cpascual/gists{/gist_id}","starred_url":"https://api.github.com/users/cpascual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpascual/subscriptions","organizations_url":"https://api.github.com/users/cpascual/orgs","repos_url":"https://api.github.com/users/cpascual/repos","events_url":"https://api.github.com/users/cpascual/events{/privacy}","received_events_url":"https://api.github.com/users/cpascual/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T10:38:56Z","updated_at":"2019-01-04T10:38:56Z","author_association":"MEMBER","body":"I am closing this as \"rejected\" because it is a bug in an external library and it is already fixed in that library."}}
{"actor":{"display_login":"cpascual"}}