Giter VIP home page Giter VIP logo

qanta-codalab's People

Contributors

aagohary avatar entilzha avatar ezubaric avatar ihsgnef avatar looselycoupled avatar pranav-goel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qanta-codalab's Issues

Wrong data files?

Starting from a clean install, I grab the data (download) task and then start the webserver (docker-compose up):
eval_1 | Traceback (most recent call last): eval_1 | File "/eval/evaluate.py", line 229, in <module> eval_1 | evaluate() eval_1 | File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 722, in __call__ eval_1 | return self.main(*args, **kwargs) eval_1 | File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 697, in main eval_1 | rv = self.invoke(ctx) eval_1 | File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 895, in invoke eval_1 | return ctx.invoke(self.callback, **ctx.params) eval_1 | File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 535, in invoke eval_1 | return callback(*args, **kwargs) eval_1 | File "/eval/evaluate.py", line 177, in evaluate eval_1 | with open(input_dir) as f: eval_1 | FileNotFoundError: [Errno 2] No such file or directory: 'data/qanta.dev.paragraphs.2018.04.18.json'

Is there an intermediate step that's missing, or is the wrong file listed?

Download grabs:
$ ls data/ qanta.dev.2018.04.18.json qanta.test.2018.04.18.json qanta.mapped.2018.04.18.json qanta.train.2018.04.18.json

HTTPConnectionPool(host='qb', port=4861): Max retries exceeded with url: /api/1.0/quizbowl/status

I installed everything following instructions however when i run docker-compose up. I get the following error:

PS C:\Users\*****\qanta-codalab> docker-compose up
Docker Compose is now in the Docker CLI, try `docker compose up`

Starting qanta-codalab_qb_1 ... done
Starting qanta-codalab_eval_1 ... done
Attaching to qanta-codalab_qb_1, qanta-codalab_eval_1
qb_1    | INFO: Using base environemnt
eval_1  | /eval/evaluate.py:75: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
eval_1  |   elog.warn(e)
eval_1  | HTTPConnectionPool(host='qb', port=4861): Max retries exceeded with url: /api/1.0/quizbowl/status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2e95a6f60>: Failed to establish a new connection: [Errno 111] Connection refused'))
eval_1  | HTTPConnectionPool(host='qb', port=4861): Max retries exceeded with url: /api/1.0/quizbowl/status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2dc12dba8>: Failed to establish a new connection: [Errno 111] Connection refused'))
eval_1  | HTTPConnectionPool(host='qb', port=4861): Max retries exceeded with url: /api/1.0/quizbowl/status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2dbcbf2e8>: Failed to establish a new connection: [Errno 111] Connection refused'))
eval_1  | HTTPConnectionPool(host='qb', port=4861): Max retries exceeded with url: /api/1.0/quizbowl/status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb2dbcbf9e8>: Failed to establish a new connection: [Errno 111] Connection refused'))
...
eval_1  | Failed to find a running web server beep boop, prepare for RUD
eval_1  | Traceback (most recent call last):
eval_1  |   File "/eval/evaluate.py", line 259, in <module>
eval_1  |     evaluate()
eval_1  |   File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 722, in __call__
eval_1  |     return self.main(*args, **kwargs)
eval_1  |   File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 697, in main
eval_1  |     rv = self.invoke(ctx)
eval_1  |   File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 895, in invoke
eval_1  |     return ctx.invoke(self.callback, **ctx.params)
eval_1  |   File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 535, in invoke
eval_1  |     return callback(*args, **kwargs)
eval_1  |   File "/eval/evaluate.py", line 193, in evaluate
eval_1  |     raise ValueError('Status API could not be reached')
eval_1  | ValueError: Status API could not be reached
qanta-codalab_eval_1 exited with code 1
qb_1    |  * Serving Flask app "tfidf" (lazy loading)
qb_1    |  * Environment: production
qb_1    |    WARNING: Do not use the development server in a production environment.
qb_1    |    Use a production WSGI server instead.
qb_1    |  * Debug mode: off
qb_1    | /opt/conda/lib/python3.7/site-packages/sklearn/feature_extraction/text.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
qb_1    |   from collections import Mapping, defaultdict
qb_1    |  * Running on http://0.0.0.0:4861/ (Press CTRL+C to quit)

This keeps going. I am unable to find the cause of this

Training model from docker-compose fails, no error message

Running docker-compose to train a model is killed, but works fine from command line. Don't know what problem is, but at the very least should provide a more informative error message (or debugging instructions should be listed in README.md).
$ docker-compose run qb ./cli train /opt/conda/lib/python3.7/site-packages/sklearn/feature_extraction/text.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Mapping, defaultdict ./cli: line 3: 7 Killed python -m qanta.tfidf $@ Jordans-Mini:qanta-codalab jbg$ PYTHONPATH="$PYTHONPATH:src/" python -m qanta.tfidf train Jordans-Mini:qanta-codalab jbg$ ls src/ cli data evaluation.log qanta run.sh tfidf.pickle

Python 3.7 Deprecation

I compiled all of the code in a clean conda environment. After running docker-compose run qb ./cli train I get the following error:

/opt/conda/lib/python3.7/site-packages/sklearn/feature_extraction/text.py:17: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping, defaultdict

I tried fixing the problem by updating the run.sh and cli bash script to use 3.8, but it does not seem to do anything. Is there anyway to edit the docker files to change from python3.7 to python3.8? Or maybe changing all of the instances of collections.abc to collections?

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.