{"action":"reopened","issue":{"url":"https://api.github.com/repos/openworm/PyOpenWorm/issues/113","labels_url":"https://api.github.com/repos/openworm/PyOpenWorm/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/openworm/PyOpenWorm/issues/113/comments","events_url":"https://api.github.com/repos/openworm/PyOpenWorm/issues/113/events","html_url":"https://github.com/openworm/PyOpenWorm/issues/113","id":82527907,"number":113,"title":"Examples don't run correctly until tests are run","user":{"login":"pgleeson","id":1556687,"avatar_url":"https://avatars.githubusercontent.com/u/1556687?v=3","gravatar_id":"","url":"https://api.github.com/users/pgleeson","html_url":"https://github.com/pgleeson","followers_url":"https://api.github.com/users/pgleeson/followers","following_url":"https://api.github.com/users/pgleeson/following{/other_user}","gists_url":"https://api.github.com/users/pgleeson/gists{/gist_id}","starred_url":"https://api.github.com/users/pgleeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgleeson/subscriptions","organizations_url":"https://api.github.com/users/pgleeson/orgs","repos_url":"https://api.github.com/users/pgleeson/repos","events_url":"https://api.github.com/users/pgleeson/events{/privacy}","received_events_url":"https://api.github.com/users/pgleeson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openworm/PyOpenWorm/labels/alpha0.5","name":"alpha0.5","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-29T18:06:46Z","updated_at":"2015-06-16T08:41:44Z","closed_at":null,"body":"I tried the examples here: https://github.com/openworm/PyOpenWorm/tree/alpha0.5/examples on my machine after successfully running: sudo python setup.py install\r\n\r\nInitially (with me being too lazy to read documentation) the examples gave cryptic errors like:\r\n\r\n> python NeuronBasicInfo.py \r\nRetrieving names...\r\nTraceback (most recent call last):\r\n  File \"NeuronBasicInfo.py\", line 32, in <module>\r\n    inter = get_names(net.interneurons())\r\nAttributeError: 'NoneType' object has no attribute 'interneurons'\r\n\r\nI realized then that a database had to be generated but the [README](https://github.com/openworm/PyOpenWorm/tree/alpha0.5/examples) wasn't very clear.\r\n\r\nHowever running the tests at the top level using \r\n\r\n     python tests/test.py\r\n\r\ncreated the database & I could run the examples\r\n\r\nWould be great if there was a more informative error on missing database & if there was a quick start guide in the examples folder.\r\n\r\n\r\n\r\n"}}