Skip to content

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

@Jingjiao-ma

Description

@Jingjiao-ma

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~

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