Skip to content

IndexError: single positional indexer is out-of-bounds #22

Description

@yqy6611

Hi all,

I encountered this error message:

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/home/create/software/CrisprOpenDB/CrisprOpenDB/CrisprOpenDB_HostID.py", line 137, in _findHost
fasta_result_table.to_csv("{}.csv".format(fasta_result_table["Query"].iloc[0]))
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/site-packages/pandas/core/indexing.py", line 895, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/site-packages/pandas/core/indexing.py", line 1501, in _getitem_axis
self._validate_integer(key, axis)
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/site-packages/pandas/core/indexing.py", line 1444, in _validate_integer
raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds
"""

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

Traceback (most recent call last):
File "CL_Interface.py", line 42, in
results = phf.identify(args.input, args.mismatch, args.aligner, args.report, args.table, args.unknown, args.num_threads)
File "/home/create/software/CrisprOpenDB/CrisprOpenDB/CrisprOpenDB_HostID.py", line 273, in identify
results = pool.map(self._findHost, jobs)
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/create/software/miniconda3/envs/CrisprOpenDB/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
IndexError: single positional indexer is out-of-bounds

May I learn hot to fix it? Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions