Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: threads can only be started once #38

Closed
Edward-CNRG-NTU opened this issue May 1, 2018 · 2 comments
Closed

RuntimeError: threads can only be started once #38

Edward-CNRG-NTU opened this issue May 1, 2018 · 2 comments

Comments

@Edward-CNRG-NTU
Copy link

return self.start()


Building network
Build finished in 0:00:01
|# Optimizing graph | 0:00:00Traceback (most recent call last):
File "MSO_model.py", line 158, in
run_MSO_model()
File "MSO_model.py", line 128, in run_MSO_model
sim = build_model()
File "MSO_model.py", line 119, in build_model
sim = nengo_dl.Simulator(model, dt=dt, unroll_simulation=1)
File "/home/cnrg-ntu/nengo-dl/nengo_dl/simulator.py", line 138, in init
max_value=None) as progress:
File "/home/cnrg-ntu/nengo-dl/nengo_dl/utils.py", line 353, in enter
return self.start()
File "/home/cnrg-ntu/nengo-dl/nengo_dl/utils.py", line 294, in start
self.thread.start()
File "/usr/lib/python2.7/threading.py", line 730, in start
raise RuntimeError("threads can only be started once")
RuntimeError: threads can only be started once
| # Optimizing graph | 0:00:00


just change to:

return self

seems to fix it.

@drasmuss
Copy link
Member

drasmuss commented May 1, 2018

I think you may have an older version of the progressbar2 package, if you do pip install progressbar2 --upgrade that should fix it.

@drasmuss
Copy link
Member

drasmuss commented May 4, 2018

The latest release updates the minimum progressbar version to 3.37.1, which should resolve this. Let me know if that isn't the case, and I'll reopen the issue!

@drasmuss drasmuss closed this as completed May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants