Open thh32 opened 6 years ago
I am having the same issue, did you solve it?
I have the exact same issue. Could this be related to https://github.com/linsalrob/PyFBA/issues/4 or is it something else?
Found a solution. I no longer get this error if I export the variable as root user. su - export ModelSEEDDatabase=/home/user1/ModelSEEDDatabase
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?