Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list out of range due to Sympy version #9

Open
willigott opened this issue May 9, 2021 · 0 comments
Open

IndexError: list out of range due to Sympy version #9

willigott opened this issue May 9, 2021 · 0 comments
Milestone

Comments

@willigott
Copy link
Collaborator

I just installed Metadraft following the instructions in the README (on Ubuntu).

When I execute

sh ./run.sh

I receive

Using Qt5 - the next generation
You are using BioPython 1.78
Traceback (most recent call last):
  File "metadraft.py", line 62, in <module>
    import libpython.qtmetadraft
  File "/stuff/cbmpy-metadraft/libpython/qtmetadraft.py", line 169, in <module>
    from . import biotools
  File "/stuff/cbmpy-metadraft/libpython/biotools.py", line 61, in <module>
    import cbmpy
  File "/stuff/anaconda3/envs/metadraft3/lib/python3.7/site-packages/cbmpy/__init__.py", line 48, in <module>
    from . import CBSolver
  File "/stuff/anaconda3/envs/metadraft3/lib/python3.7/site-packages/cbmpy/CBSolver.py", line 40, in <module>
    from . import CBGLPK
  File "/stuff/anaconda3/envs/metadraft3/lib/python3.7/site-packages/cbmpy/CBGLPK.py", line 38, in <module>
    and int(sympy.__version__.split('.')[2]) >= 4
IndexError: list index out of range

Reason is that Sympy 1.8 gets installed, therefore int(sympy.__version__.split('.')[2] is undefined.

A quick fix is to just run

conda install sympy=1.7.1

but I guess ideally it can be solved on code level.

@bgoli bgoli added this to the 0.9.5 milestone Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants