michlimlim / gaia2 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/Users/weitaiting/Documents/snlab/gaia2/src/sender.py", line 76, in _actually_run
self._update_host(host)
File "/Users/weitaiting/Documents/snlab/gaia2/src/sender.py", line 108, in _update_host
self.release_host(host)
File "/Users/weitaiting/Documents/snlab/gaia2/src/sender.py", line 130, in release_host
self.host_locks[host].release()
RuntimeError: cannot release un-acquired lock
Is the error message here a bug in sender.py? Is this an implementation bug?
I opened two terminals and ran:
python main.py -me localhost:5000 -them localhost:5001 localhost:5002
python main.py -me localhost:5001 -them localhost:5000 localhost:5002
None of the 2 nodes received any updates from each other. This is what was printed out:
0
Epoch 0 | loss: 0.0075
{'localhost:5000': 0, 'localhost:5002': 0, 'localhost:5001': 1}
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/Users/weitaiting/Documents/snlab/gaia2/src/sender.py", line 71, in _actually_run
self._update_host(host)
File "/Users/weitaiting/Documents/snlab/gaia2/src/sender.py", line 91, in _update_host
res = requests.post(host+"/send_update", json={"sender": host, "update": update})
File "/Users/weitaiting/Documents/snlab/gaia2/venv/lib/python3.7/site-packages/requests/api.py", line 116, in post
return request('post', url, data=data, json=json, **kwargs)
File "/Users/weitaiting/Documents/snlab/gaia2/venv/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/weitaiting/Documents/snlab/gaia2/venv/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/Users/weitaiting/Documents/snlab/gaia2/venv/lib/python3.7/site-packages/requests/sessions.py", line 640, in send
adapter = self.get_adapter(url=request.url)
File "/Users/weitaiting/Documents/snlab/gaia2/venv/lib/python3.7/site-packages/requests/sessions.py", line 731, in get_adapter
raise InvalidSchema("No connection adapters were found for '%s'" % url)
requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:5002/send_update'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.