{"action":"opened","issue":{"url":"https://api.github.com/repos/bollwyvl/hy_kernel/issues/10","labels_url":"https://api.github.com/repos/bollwyvl/hy_kernel/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/bollwyvl/hy_kernel/issues/10/comments","events_url":"https://api.github.com/repos/bollwyvl/hy_kernel/issues/10/events","html_url":"https://github.com/bollwyvl/hy_kernel/issues/10","id":85783661,"number":10,"title":"HyMacroExpansionError \"global name 'distinct' is not defined\"","user":{"login":"actsasgeek","id":216816,"avatar_url":"https://avatars.githubusercontent.com/u/216816?v=3","gravatar_id":"","url":"https://api.github.com/users/actsasgeek","html_url":"https://github.com/actsasgeek","followers_url":"https://api.github.com/users/actsasgeek/followers","following_url":"https://api.github.com/users/actsasgeek/following{/other_user}","gists_url":"https://api.github.com/users/actsasgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/actsasgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actsasgeek/subscriptions","organizations_url":"https://api.github.com/users/actsasgeek/orgs","repos_url":"https://api.github.com/users/actsasgeek/repos","events_url":"https://api.github.com/users/actsasgeek/events{/privacy}","received_events_url":"https://api.github.com/users/actsasgeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-06T17:23:12Z","updated_at":"2015-06-06T17:23:12Z","closed_at":null,"body":"I'm having a bit of trouble getting the kernel going. If I type:\r\n\r\n```\r\nipython console --kernel hy\r\n```\r\n\r\nor try to access a Hy kernel through the notebook. I get the following error. The entire stack trace is immense so let me know if you need more information.\r\n\r\n```\r\nHyMacroExpansionError:   File \"/usr/local/lib/python2.7/site-packages/hy/core/macros.hy\", line 182, column 1\r\n\r\n  (if-python2\r\n  ^----------\r\n    (defmacro/g! yield-from [expr]\r\n  --------------------------------\r\n      `(do (import types)\r\n  -----------------------\r\n           (setv ~g!iter (iter ~expr))\r\n  ------------------------------------\r\n           (setv ~g!return nil)\r\n  -----------------------------\r\n           (setv ~g!message nil)\r\n  ------------------------------\r\n           (while true\r\n  --------------------\r\n             (try (if (isinstance ~g!iter types.GeneratorType)\r\n  ------------------------------------------------------------\r\n                    (setv ~g!message (yield (.send ~g!iter ~g!message)))\r\n  ----------------------------------------------------------------------\r\n                    (setv ~g!message (yield (next ~g!iter))))\r\n  -----------------------------------------------------------\r\n             (catch [~g!e StopIteration]\r\n  --------------------------------------\r\n               (do (setv ~g!return (if (hasattr ~g!e \"value\")\r\n  -----------------------------------------------------------\r\n                                       (. ~g!e value)\r\n  ---------------------------------------------------\r\n                                       nil))\r\n  ------------------------------------------\r\n                 (break)))))\r\n  --------------------------\r\n             ~g!return))\r\n  ----------------------\r\n    nil)\r\n  -----^\r\nHyMacroExpansionError: expanding `defmacro/g!': NameError(\"global name 'distinct' is not defined\",)\r\n```\r\n\r\nI'm using the latest of Hy 0.11.0 and iPython 3.1.0 (installing the Hy kernel actually upgraded it from 3.0.0 to 3.1.0)."}}