ewiger / mlab

Mlab is a high-level python to Matlab® bridge that lets Matlab look like a normal python library.
MIT License
74 stars 23 forks source link

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

Open Jingjiao-ma opened 4 years ago

Jingjiao-ma commented 4 years ago

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~