concurrent.futures._base.TimeoutError

Open
#3 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with src/utils/misc/process.py at mp_with_timeout and then inspect datasets/rcsb/process_mmcif_metadata.py where it is called. Reproduce the RCSB preprocessing timeout and determine how the failing sample should be reported; done means the original timeout is handled without the secondary IndexError and the problematic sample can be identified.

Written by the indexing model from the issue text.

Description

I encounter an issue, when I preprocess the rcsb data and run process_mmcif_metadata.py.
I don't know which sample has the problem, how to solve it? thanks!

Traceback (most recent call last):
  File "confdiff/ConfDiff/src/utils/misc/process.py", line 110, in mp_with_timeout
    result = next(result_itr)
  File "/home/ubuntu/anaconda3/envs/confdiff/lib/python3.9/site-packages/pebble/pool/base_pool.py", line 224, in next
    raise result
  File "/home/ubuntu/anaconda3/envs/confdiff/lib/python3.9/site-packages/pebble/pool/base_pool.py", line 264, in chunk_result
    return future.result(timeout=timeout)
  File "/home/ubuntu/anaconda3/envs/confdiff/lib/python3.9/concurrent/futures/_base.py", line 448, in result
    raise TimeoutError()
concurrent.futures._base.TimeoutError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/confdiff/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ubuntu/anaconda3/envs/confdiff/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "confdiff/ConfDiff/datasets/rcsb/process_mmcif_metadata.py", line 359, in <module>
    main(args)
  File "confdiff/ConfDiff/datasets/rcsb/process_mmcif_metadata.py", line 280, in main
    results = mp_with_timeout(
  File "confdiff/ConfDiff/src/utils/misc/process.py", line 117, in mp_with_timeout
    f"Timeout {error.args[1]} s: {error_report_fn(current_ix)}"
IndexError: tuple index out of range
Dominant language
Python
Stars
90
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bytedance/ConfDiff

All issues in bytedance/ConfDiff

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.