WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@willigott

Description

@willigott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions