PyFBA icon indicating copy to clipboard operation
PyFBA copied to clipboard

Error finding ModelSEEDDatabase variable

Open thh32 opened this issue 7 years ago • 3 comments

I have followed the instructions in creating the ModelSEEDDatabase variable as shown below;

thomas@Kiwi:~/PyFBA$ echo $ModelSEEDDatabase /home/thomas/PyFBA/ModelSEEDDatabase

However when I test the setup.py code the following occurs;

thomas@Kiwi:~/PyFBA$ python setup.py test Traceback (most recent call last): File "setup.py", line 7, in import PyFBA File "/home/thomas/PyFBA/PyFBA/init.py", line 5, in import PyFBA.gapfill File "/home/thomas/PyFBA/PyFBA/gapfill/init.py", line 13, in from .ecnumbers import suggest_reactions_using_ec File "/home/thomas/PyFBA/PyFBA/gapfill/ecnumbers.py", line 5, in MODELSEED_DIR = os.environ['ModelSEEDDatabase'] File "/usr/lib/python2.7/UserDict.py", line 23, in getitem raise KeyError(key) KeyError: 'ModelSEEDDatabase'

Any idea how to solve this?

thh32 avatar Aug 21 '18 08:08 thh32

I am having the same issue, did you solve it?

cvagg avatar Jun 23 '20 11:06 cvagg

I have the exact same issue. Could this be related to https://github.com/linsalrob/PyFBA/issues/4 or is it something else?

travessny avatar Mar 17 '21 06:03 travessny

Found a solution. I no longer get this error if I export the variable as root user. su - export ModelSEEDDatabase=/home/user1/ModelSEEDDatabase

travessny avatar Mar 25 '21 14:03 travessny