{"action":"created","issue":{"url":"https://api.github.com/repos/ArtPoon/kamphir/issues/45","labels_url":"https://api.github.com/repos/ArtPoon/kamphir/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/ArtPoon/kamphir/issues/45/comments","events_url":"https://api.github.com/repos/ArtPoon/kamphir/issues/45/events","html_url":"https://github.com/ArtPoon/kamphir/issues/45","id":97110096,"number":45,"title":"Maximum recursion depth crash","user":{"login":"ArtPoon","id":1109328,"avatar_url":"https://avatars.githubusercontent.com/u/1109328?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtPoon","html_url":"https://github.com/ArtPoon","followers_url":"https://api.github.com/users/ArtPoon/followers","following_url":"https://api.github.com/users/ArtPoon/following{/other_user}","gists_url":"https://api.github.com/users/ArtPoon/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtPoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtPoon/subscriptions","organizations_url":"https://api.github.com/users/ArtPoon/orgs","repos_url":"https://api.github.com/users/ArtPoon/repos","events_url":"https://api.github.com/users/ArtPoon/events{/privacy}","received_events_url":"https://api.github.com/users/ArtPoon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ArtPoon/kamphir/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-24T18:29:11Z","updated_at":"2015-07-24T19:47:12Z","closed_at":null,"body":"```\r\nTraceback (most recent call last):\r\n  File \"kamphir.py\", line 759, in <module>\r\n    decay=args.toldecay)\r\n  File \"kamphir.py\", line 490, in abc_mcmc\r\n    next_score, tree = self.evaluate()  # returns None if simulations fail\r\n  File \"kamphir.py\", line 431, in evaluate\r\n    for tree in trees]\r\n  File \"kamphir.py\", line 29, in apply_async\r\n    return pool.apply_async(run_dill_encoded, (dill.dumps((fun, args)),))\r\n  File \"/Library/Python/2.7/site-packages/dill-0.2.1-py2.7.egg/dill/dill.py\", line 143, in dumps\r\n    dump(obj, file, protocol, byref)\r\n  File \"/Library/Python/2.7/site-packages/dill-0.2.1-py2.7.egg/dill/dill.py\", line 136, in dump\r\n    pik.dump(obj)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 224, in dump\r\n    self.save(obj)\r\n```\r\n...\r\n```\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 331, in save\r\n    self.save_reduce(obj=obj, *rv)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 419, in save_reduce\r\n    save(state)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 286, in save\r\n    f(self, obj) # Call unbound method with explicit self\r\n  File \"/Library/Python/2.7/site-packages/dill-0.2.1-py2.7.egg/dill/dill.py\", line 504, in save_module_dict\r\n    StockPickler.save_dict(pickler, obj)\r\n  File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py\", line 648, in save_dict\r\n    self.memoize(obj)\r\nRuntimeError: maximum recursion depth exceeded\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ArtPoon/kamphir/issues/comments/124678254","html_url":"https://github.com/ArtPoon/kamphir/issues/45#issuecomment-124678254","issue_url":"https://api.github.com/repos/ArtPoon/kamphir/issues/45","id":124678254,"user":{"login":"rmcclosk","id":768594,"avatar_url":"https://avatars.githubusercontent.com/u/768594?v=3","gravatar_id":"","url":"https://api.github.com/users/rmcclosk","html_url":"https://github.com/rmcclosk","followers_url":"https://api.github.com/users/rmcclosk/followers","following_url":"https://api.github.com/users/rmcclosk/following{/other_user}","gists_url":"https://api.github.com/users/rmcclosk/gists{/gist_id}","starred_url":"https://api.github.com/users/rmcclosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmcclosk/subscriptions","organizations_url":"https://api.github.com/users/rmcclosk/orgs","repos_url":"https://api.github.com/users/rmcclosk/repos","events_url":"https://api.github.com/users/rmcclosk/events{/privacy}","received_events_url":"https://api.github.com/users/rmcclosk/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T19:47:12Z","updated_at":"2015-07-24T19:47:12Z","body":"The default recursion depth in python is quite small, 1000 I believe. It's probably trying to save a tree with depth > 1000. Fastest thing would be:\r\n\r\n```\r\nimport sys\r\nsys.setrecursionlimit(10000)\r\n```"}}