내 파일이있는 간단한 파이썬 프로그램을 실행하고 있습니다. 이 프로그램은 내 컴퓨터에서 fileA.bed
파일로 잘 작동합니다. 그러나이 프로그램은 같은 파일을 가진 다른 컴퓨터에서는 작동하지 않습니다. 동일한 파이썬 버전, 2.7.6, 동일한 필수 모듈, scipy ('0.15.1'), numpy ('1.8.2'), 아이스 ('0.2.2-git') (두 시스템 모두 동일한 버전)를 설치했습니다. 오류 메시지는 ValueError: column index exceeds matrix dimensions
에 관한 것입니다 (아래 참조). 이 문제를 일으킬 수있는 원인을 알려주십시오.python ValueError : 열 인덱스가 행렬 크기를 초과합니다.
python Dense.py -b fileA.bed
Traceback (most recent call last):
File "Dense.py", line 34, in <module>
counts = io.load_counts(args.filename, lengths=lengths)
File "$PATH/Python-2.7.6/venv_iced_2.2/lib/python2.7/site-packages/iced/io/_io_else.py", line 30, in load_counts
counts = sparse.coo_matrix((X[:, 2], (X[:, 0], X[:, 1])), shape=shape)
File "$PATH/Python-2.7.6/venv_iced_2.2/lib/python2.7/site-packages/scipy/sparse/coo.py", line 206, in __init__
self._check()
File "$PATH/Python-2.7.6/venv_iced_2.2/lib/python2.7/site-packages/scipy/sparse/coo.py", line 262, in _check
raise ValueError('column index exceeds matrix dimensions')
ValueError: column index exceeds matrix dimensions