Code Monkey home page Code Monkey logo

gaia2's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

georgesaussy

gaia2's Issues

bug when trying to send to another local host

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'

Sender concurrency bug?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.