{"action":"opened","issue":{"url":"https://api.github.com/repos/DEAP/deap/issues/61","labels_url":"https://api.github.com/repos/DEAP/deap/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/DEAP/deap/issues/61/comments","events_url":"https://api.github.com/repos/DEAP/deap/issues/61/events","html_url":"https://github.com/DEAP/deap/issues/61","id":62781682,"number":61,"title":"Spambase example broken","user":{"login":"akiross","id":884092,"avatar_url":"https://avatars.githubusercontent.com/u/884092?v=3","gravatar_id":"","url":"https://api.github.com/users/akiross","html_url":"https://github.com/akiross","followers_url":"https://api.github.com/users/akiross/followers","following_url":"https://api.github.com/users/akiross/following{/other_user}","gists_url":"https://api.github.com/users/akiross/gists{/gist_id}","starred_url":"https://api.github.com/users/akiross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akiross/subscriptions","organizations_url":"https://api.github.com/users/akiross/orgs","repos_url":"https://api.github.com/users/akiross/repos","events_url":"https://api.github.com/users/akiross/events{/privacy}","received_events_url":"https://api.github.com/users/akiross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T19:43:26Z","updated_at":"2015-03-18T19:43:26Z","closed_at":null,"body":"I cannot make spambase example run correctly. I get the following error (using version 1.0 installed from pip, with python3).\r\n\r\n\tTraceback (most recent call last):\r\n\t  File \"/usr/lib64/python3.4/random.py\", line 253, in choice\r\n\t\ti = self._randbelow(len(seq))\r\n\t  File \"/usr/lib64/python3.4/random.py\", line 230, in _randbelow\r\n\t\tr = getrandbits(k)          # 0 <= r < 2**k\r\n\tValueError: number of bits must be greater than zero\r\n\r\n\tDuring handling of the above exception, another exception occurred:\r\n\r\n\tTraceback (most recent call last):\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/gp.py\", line 584, in generate\r\n\t\tprim = random.choice(pset.primitives[type_])\r\n\t  File \"/usr/lib64/python3.4/random.py\", line 255, in choice\r\n\t\traise IndexError('Cannot choose from an empty sequence')\r\n\tIndexError: Cannot choose from an empty sequence\r\n\r\n\tDuring handling of the above exception, another exception occurred:\r\n\r\n\tTraceback (most recent call last):\r\n\t  File \"spamthing.py\", line 110, in <module>\r\n\t\tmain()\r\n\t  File \"spamthing.py\", line 97, in main\r\n\t\tpop = toolbox.population(n=100)\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/tools/init.py\", line 23, in initRepeat\r\n\t\treturn container(func() for _ in range(n))\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/tools/init.py\", line 23, in <genexpr>\r\n\t\treturn container(func() for _ in range(n))\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/tools/init.py\", line 49, in initIterate\r\n\t\treturn container(generator())\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/gp.py\", line 539, in genHalfAndHalf\r\n\t\treturn method(pset, min_, max_, type_)\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/gp.py\", line 524, in genGrow\r\n\t\treturn generate(pset, min_, max_, condition, type_)\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/gp.py\", line 589, in generate\r\n\t\t\"none available.\" % (type_,)).with_traceback(traceback)\r\n\t  File \"/home/username/.local/lib/python3.4/site-packages/deap/gp.py\", line 584, in generate\r\n\t\tprim = random.choice(pset.primitives[type_])\r\n\t  File \"/usr/lib64/python3.4/random.py\", line 255, in choice\r\n\t\traise IndexError('Cannot choose from an empty sequence')\r\n\tIndexError: The gp.generate function tried to add a primitive of type '<class 'object'>', but there is none available."}}