mlab icon indicating copy to clipboard operation
mlab copied to clipboard

IndexError: latest_release_version = sorted(versions)[-1]

Open Jingjiao-ma opened this issue 4 years ago • 0 comments

hello,

I used the following codes to install the mlab in conda python2 env and successfully installed:

conda activate python2
pip install numpy
pip install scipy
pip install mlab 

But when I executed it, something went wrong

>>> from mlab.releases import latest_release
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/kyWGS/user_test/jingjiaoma/mysoftware/anaconda3/envs/python2/lib/python2.7/site-packages/mlab/releases.py", line 125, in __getattr__
    return self.instances[name]
  File "/kyWGS/user_test/jingjiaoma/mysoftware/anaconda3/envs/python2/lib/python2.7/site-packages/mlab/releases.py", line 67, in __getitem__
    matlab_release = self.pick_latest_release()
  File "/kyWGS/user_test/jingjiaoma/mysoftware/anaconda3/envs/python2/lib/python2.7/site-packages/mlab/releases.py", line 94, in pick_latest_release
    return get_latest_release(self._available_releases)
  File "/kyWGS/user_test/jingjiaoma/mysoftware/anaconda3/envs/python2/lib/python2.7/site-packages/mlab/releases.py", line 29, in get_latest_release
    latest_release_version = sorted(versions)[-1]
IndexError: list index out of range

How can I solve this problem?

Best~

Jingjiao-ma avatar Oct 19 '20 07:10 Jingjiao-ma