私のファイルで簡単なpythonプログラムを実行しています。このプログラムは、私のマシンの1台で、ファイルfileA.bed
で正常に動作します。しかし、このプログラムは、同じファイルを持つ別のマシンでは動作しません。同じpythonバージョン、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