{"action":"closed","issue":{"url":"https://api.github.com/repos/nengo/nengo-dl/issues/38","repository_url":"https://api.github.com/repos/nengo/nengo-dl","labels_url":"https://api.github.com/repos/nengo/nengo-dl/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo-dl/issues/38/comments","events_url":"https://api.github.com/repos/nengo/nengo-dl/issues/38/events","html_url":"https://github.com/nengo/nengo-dl/issues/38","id":319130455,"number":38,"title":"RuntimeError: threads can only be started once","user":{"login":"Edward-CNRG-NTU","id":26167167,"avatar_url":"https://avatars0.githubusercontent.com/u/26167167?v=4","gravatar_id":"","url":"https://api.github.com/users/Edward-CNRG-NTU","html_url":"https://github.com/Edward-CNRG-NTU","followers_url":"https://api.github.com/users/Edward-CNRG-NTU/followers","following_url":"https://api.github.com/users/Edward-CNRG-NTU/following{/other_user}","gists_url":"https://api.github.com/users/Edward-CNRG-NTU/gists{/gist_id}","starred_url":"https://api.github.com/users/Edward-CNRG-NTU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Edward-CNRG-NTU/subscriptions","organizations_url":"https://api.github.com/users/Edward-CNRG-NTU/orgs","repos_url":"https://api.github.com/users/Edward-CNRG-NTU/repos","events_url":"https://api.github.com/users/Edward-CNRG-NTU/events{/privacy}","received_events_url":"https://api.github.com/users/Edward-CNRG-NTU/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-01T06:47:24Z","updated_at":"2018-05-04T19:09:39Z","closed_at":"2018-05-04T19:09:39Z","author_association":"NONE","body":"https://github.com/nengo/nengo-dl/blob/b9e7ae57906feb56d8d7d37a90b8d46a55fc2ea3/nengo_dl/utils.py#L353\r\n\r\n********\r\nBuilding network\r\nBuild finished in 0:00:01 \r\n|#                                    Optimizing graph                                      | 0:00:00Traceback (most recent call last):\r\n  File \"MSO_model.py\", line 158, in <module>\r\n    run_MSO_model()\r\n  File \"MSO_model.py\", line 128, in run_MSO_model\r\n    sim = build_model()\r\n  File \"MSO_model.py\", line 119, in build_model\r\n    sim = nengo_dl.Simulator(model, dt=dt, unroll_simulation=1)\r\n  File \"/home/cnrg-ntu/nengo-dl/nengo_dl/simulator.py\", line 138, in __init__\r\n    max_value=None) as progress:\r\n  File \"/home/cnrg-ntu/nengo-dl/nengo_dl/utils.py\", line 353, in __enter__\r\n    return self.start()\r\n  File \"/home/cnrg-ntu/nengo-dl/nengo_dl/utils.py\", line 294, in start\r\n    self.thread.start()\r\n  File \"/usr/lib/python2.7/threading.py\", line 730, in start\r\n    raise RuntimeError(\"threads can only be started once\")\r\nRuntimeError: threads can only be started once\r\n|      #                              Optimizing graph                                      | 0:00:00\r\n\r\n********\r\njust change to:\r\n```\r\nreturn self\r\n```\r\nseems to fix it."}}
{"actor":{"display_login":"drasmuss"}}