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

2024-03-27: list index out of range #213

Open
jwbensley opened this issue Jan 1, 2025 · 0 comments
Open

2024-03-27: list index out of range #213

jwbensley opened this issue Jan 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jwbensley
Copy link
Owner

/opt/dnas/docker/manual_day.sh 20240327
...
2025-01-01 14:19:58,415|INFO|Starting logging for MRT parser script at level INFO
2025-01-01 14:19:58,432|INFO|Done 0/571
2025-01-01 14:19:58,432|INFO|Checking file /opt/dnas_data/downloads/RRC01/updates.20240327.1615.gz
2025-01-01 14:19:58,514|INFO|Processing /opt/dnas_data/downloads/RRC01/updates.20240327.1615.gz...
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/opt/pypy3.10-v7.3.17-linux64/lib/pypy3.10/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/opt/pypy3.10-v7.3.17-linux64/lib/pypy3.10/multiprocessing/pool.py", line 48, in mapstar
    return list(map(*args))
  File "/opt/dnas/dnas/scripts/../dnas/mrt_parser.py", line 235, in parse_upd_dump
    as_path = attr["value"][0]["value"]
IndexError: list index out of range
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/dnas/dnas/scripts/parse_mrts.py", line 594, in <module>
    main()
  File "/opt/dnas/dnas/scripts/parse_mrts.py", line 586, in main
    process_day(args)
  File "/opt/dnas/dnas/scripts/parse_mrts.py", line 417, in process_day
    parse_files(filelist=filelist, args=args)
  File "/opt/dnas/dnas/scripts/parse_mrts.py", line 341, in parse_files
    mrt_s = parse_file(filename=file, multi=args["multi"])
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dnas/dnas/scripts/parse_mrts.py", line 280, in parse_file
    mrt_chunks = Pool.map(mrt_parser.parse_upd_dump, file_chunks)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pypy3.10-v7.3.17-linux64/lib/pypy3.10/multiprocessing/pool.py", line 367, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pypy3.10-v7.3.17-linux64/lib/pypy3.10/multiprocessing/pool.py", line 774, in get
    raise self._value
IndexError: list index out of range
@jwbensley jwbensley added the bug Something isn't working label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant