linsalrob / PyFBA

A python implementation of flux balance analysis to model microbial metabolism
http://linsalrob.github.io/PyFBA/
MIT License
25 stars 14 forks source link

PyFBA with python3 #3

Closed annazhukova closed 7 years ago

annazhukova commented 7 years ago

Dear PyFBA developers,

Does PyFBA work with Python 3? When I try to install it from PyPI:

pip install pyfba

or clone from github and run tests

git clone https://github.com/linsalrob/PyFBA.git
cd PyFBA
python3 setup.py test

I get the same following error:

Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    import PyFBA
  File "..../PyFBA/PyFBA/__init__.py", line 3, in <module>
    import fba
ImportError: No module named 'fba'

Thanks, Anna

linsalrob commented 7 years ago

Hi Anna

We have been developing a python3 version and will come out with a release in the next day or two. In the meantime, you can easily get to it, by switching branches in git.

First, move to the git repository, and then switch branch:

cd PyFBA
git checkout python3

and then run the tests:

nosetests-3.5 PyFBA/tests/
python3.5 setup.py test

Please let us know if that works.

Rob

annazhukova commented 7 years ago

Hi Rob,

Thank you very much for your quick reply. I have switched to the python3 branch and everything works now.

Cheers, Anna