opencobra / cobrapy

COBRApy is a package for constraint-based modeling of metabolic networks.
http://opencobra.github.io/cobrapy/
GNU General Public License v2.0
462 stars 217 forks source link

moma using python3 #104

Closed the-code-magician closed 10 years ago

the-code-magician commented 10 years ago

Hi,

moma does not run on python3:

--> 226 for reaction_1, reaction_2 in common_dict.iteritems():

seems like iteritems() has been renamed to items()

Best regards

aebrahim commented 10 years ago

Thank you for noticing this bug.

Unfortunately, the only solver that works in python3 (as far as I know) is glpk, which does not support quadratic programming, which is required to minimize euclidean distances. Until we have a QP solver that works in python 3 (or implement a linear distance metric) MOMA can't be run in python 3 and won't be supported.

We will document this shortcoming better in the meantime.

Also, please note that python 3 support is experimental, and python 2.7 is the recommended version.

On Mon, Jun 16, 2014 at 5:44 AM, João Gonçalo Rocha Cardoso < notifications@github.com> wrote:

Hi,

moma does not run on python3:

--> 226 for reaction_1, reaction_2 in common_dict.iteritems():

seems like iteritems() has been renamed to items()

Best regards

— Reply to this email directly or view it on GitHub https://github.com/opencobra/cobrapy/issues/104.