{"action":"created","issue":{"url":"https://api.github.com/repos/leegao/RegexEnumerator/issues/1","repository_url":"https://api.github.com/repos/leegao/RegexEnumerator","labels_url":"https://api.github.com/repos/leegao/RegexEnumerator/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/leegao/RegexEnumerator/issues/1/comments","events_url":"https://api.github.com/repos/leegao/RegexEnumerator/issues/1/events","html_url":"https://github.com/leegao/RegexEnumerator/issues/1","id":195431273,"number":1,"title":"ImportError: cannot import name matmul","user":{"login":"softwarekitty","id":1614175,"avatar_url":"https://avatars.githubusercontent.com/u/1614175?v=3","gravatar_id":"","url":"https://api.github.com/users/softwarekitty","html_url":"https://github.com/softwarekitty","followers_url":"https://api.github.com/users/softwarekitty/followers","following_url":"https://api.github.com/users/softwarekitty/following{/other_user}","gists_url":"https://api.github.com/users/softwarekitty/gists{/gist_id}","starred_url":"https://api.github.com/users/softwarekitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softwarekitty/subscriptions","organizations_url":"https://api.github.com/users/softwarekitty/orgs","repos_url":"https://api.github.com/users/softwarekitty/repos","events_url":"https://api.github.com/users/softwarekitty/events{/privacy}","received_events_url":"https://api.github.com/users/softwarekitty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"leegao","id":62580,"avatar_url":"https://avatars.githubusercontent.com/u/62580?v=3","gravatar_id":"","url":"https://api.github.com/users/leegao","html_url":"https://github.com/leegao","followers_url":"https://api.github.com/users/leegao/followers","following_url":"https://api.github.com/users/leegao/following{/other_user}","gists_url":"https://api.github.com/users/leegao/gists{/gist_id}","starred_url":"https://api.github.com/users/leegao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leegao/subscriptions","organizations_url":"https://api.github.com/users/leegao/orgs","repos_url":"https://api.github.com/users/leegao/repos","events_url":"https://api.github.com/users/leegao/events{/privacy}","received_events_url":"https://api.github.com/users/leegao/received_events","type":"User","site_admin":false},"assignees":[{"login":"leegao","id":62580,"avatar_url":"https://avatars.githubusercontent.com/u/62580?v=3","gravatar_id":"","url":"https://api.github.com/users/leegao","html_url":"https://github.com/leegao","followers_url":"https://api.github.com/users/leegao/followers","following_url":"https://api.github.com/users/leegao/following{/other_user}","gists_url":"https://api.github.com/users/leegao/gists{/gist_id}","starred_url":"https://api.github.com/users/leegao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leegao/subscriptions","organizations_url":"https://api.github.com/users/leegao/orgs","repos_url":"https://api.github.com/users/leegao/repos","events_url":"https://api.github.com/users/leegao/events{/privacy}","received_events_url":"https://api.github.com/users/leegao/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-12-14T03:27:06Z","updated_at":"2016-12-14T04:22:07Z","closed_at":"2016-12-14T04:20:11Z","body":"sorry if this is a noob issue - I'd like to play with your program, but have trouble.  Could there be another dependency besides the three you listed?\r\n\r\n\r\n~/h/d/p/RegexEnumerator ❯❯❯ pip freeze | grep -E '(scipy|sympy|numpy)'\r\nnumpy==1.11.2\r\nscipy==0.18.1\r\nsympy==1.0\r\n~/h/d/p/RegexEnumerator ❯❯❯ python\r\nPython 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 12:54:16)\r\n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import numpy\r\n>>> import scipy\r\n>>> import sympy\r\n>>> from regex_enumerate import enumerate_coefficients\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"regex_enumerate/__init__.py\", line 1, in <module>\r\n    from .enumerate import enumerate_coefficients, exact_coefficients, exact, \\\r\n  File \"regex_enumerate/enumerate.py\", line 5, in <module>\r\n    from numpy import array, zeros, eye, matmul\r\nImportError: cannot import name matmul\r\n>>> exit()"},"comment":{"url":"https://api.github.com/repos/leegao/RegexEnumerator/issues/comments/266939144","html_url":"https://github.com/leegao/RegexEnumerator/issues/1#issuecomment-266939144","issue_url":"https://api.github.com/repos/leegao/RegexEnumerator/issues/1","id":266939144,"user":{"login":"softwarekitty","id":1614175,"avatar_url":"https://avatars.githubusercontent.com/u/1614175?v=3","gravatar_id":"","url":"https://api.github.com/users/softwarekitty","html_url":"https://github.com/softwarekitty","followers_url":"https://api.github.com/users/softwarekitty/followers","following_url":"https://api.github.com/users/softwarekitty/following{/other_user}","gists_url":"https://api.github.com/users/softwarekitty/gists{/gist_id}","starred_url":"https://api.github.com/users/softwarekitty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/softwarekitty/subscriptions","organizations_url":"https://api.github.com/users/softwarekitty/orgs","repos_url":"https://api.github.com/users/softwarekitty/repos","events_url":"https://api.github.com/users/softwarekitty/events{/privacy}","received_events_url":"https://api.github.com/users/softwarekitty/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T04:22:07Z","updated_at":"2016-12-14T04:22:07Z","body":"works now!\r\n\r\nhaving issues for regexes without * or +, for example:\r\n\r\n>>> print(enumerate_coefficients('0|1|2'))\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"regex_enumerate/enumerate.py\", line 187, in enumerate_coefficients\r\n    formula = algebraic_form(regex, what, threshold)\r\n  File \"regex_enumerate/enumerate.py\", line 209, in algebraic_form\r\n    extract_coefficients_algebraically(regex, what, threshold)\r\n  File \"regex_enumerate/enumerate.py\", line 176, in extract_coefficients_algebraically\r\n    partial_coefficients = solve(vandermonde_matrix, target)\r\n  File \"/Library/Python/2.7/site-packages/numpy/linalg/linalg.py\", line 357, in solve\r\n    _assertRankAtLeast2(a)\r\n  File \"/Library/Python/2.7/site-packages/numpy/linalg/linalg.py\", line 202, in _assertRankAtLeast2\r\n    'at least two-dimensional' % len(a.shape))\r\nnumpy.linalg.linalg.LinAlgError: 1-dimensional array given. Array must be at least two-dimensional\r\n>>> print(enumerate_coefficients('0*'))\r\n<generator object <genexpr> at 0x10822c550>\r\n\r\nis the regex '0|1|2' invalid somehow?\r\n"}}
{"actor":{"display_login":"softwarekitty"}}