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

Uncaught exception while handling TimeoutError #2

Open
bede opened this issue Apr 3, 2017 · 0 comments
Open

Uncaught exception while handling TimeoutError #2

bede opened this issue Apr 3, 2017 · 0 comments
Labels

Comments

@bede
Copy link
Owner

bede commented Apr 3, 2017

From #1 (comment) by @mgalardini

tictax kmer-lca --progress -f input.gz > /dev/null                                                                    
Classifying sequences…
  0%|                                                                                                                                                                             | 0/1594659 [00:00<?, ?it/s]

Traceback (most recent call last):
  File "[...]/lib/python3.5/site-packages/tictax/tictax.py", line 67, in oc_classify_single
    async with session.post(url, data=payload, timeout=600) as response:
  File "[...]/lib/python3.5/site-packages/aiohttp/client.py", line 626, in __aenter__
    self._resp = yield from self._coro
  File "[...]/lib/python3.5/site-packages/aiohttp/client.py", line 295, in _request
    break
  File "[...]/lib/python3.5/site-packages/aiohttp/helpers.py", line 695, in __exit__
    raise asyncio.TimeoutError from None
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "[...]/bin/tictax", line 9, in <module>
    load_entry_point('tictax==0.1.2', 'console_scripts', 'tictax')()
  File "[...]/lib/python3.5/site-packages/tictax/cli.py", line 31, in main
    parser.dispatch()
  File "[...]/lib/python3.5/site-packages/argh/helpers.py", line 55, in dispatch
    return dispatch(self, *args, **kwargs)
  File "[...]/lib/python3.5/site-packages/argh/dispatching.py", line 174, in dispatch
    for line in lines:
  File "[...]/lib/python3.5/site-packages/argh/dispatching.py", line 277, in _execute_command
    for line in result:
  File "[...]/lib/python3.5/site-packages/argh/dispatching.py", line 260, in _call
    result = function(*positional, **keywords)
  File "[...]/lib/python3.5/site-packages/tictax/cli.py", line 24, in kmer_lca
    True))
  File "[...]/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "[...]/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "[...]/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "[...]/lib/python3.5/site-packages/tictax/tictax.py", line 116, in oc_classify
    response = await f
  File "[...]/lib/python3.5/asyncio/tasks.py", line 500, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "[...]/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "[...]/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "[...]/lib/python3.5/site-packages/tictax/tictax.py", line 98, in classify_taxify
    classification = await oc_classify_single(oc_session, sequence_id, sequence)
  File "[...]/lib/python3.5/site-packages/tictax/tictax.py", line 69, in oc_classify_single
    except (asyncio.TimeoutError, aiohttp.errors.ClientOSError, json.decoder.JSONDecodeError):
AttributeError: module 'aiohttp' has no attribute 'errors'
@bede bede changed the title AttributeError: module 'aiohttp' has no attribute 'errors' etc Uncaught exception while handling TimeoutError Apr 3, 2017
@bede bede mentioned this issue Apr 3, 2017
@bede bede added the bug label Apr 3, 2017
@bede bede assigned bede and unassigned bede Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant