When I execute my COBRApy scripts, I get the following error:
/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/solvers/__init__.py:73: UserWarning: No LP solvers found
warn("No LP solvers found")
Traceback (most recent call last):
File "se2.py", line 5, in <module>
from cobra import Model, Reaction, Metabolite
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/__init__.py", line 11, in <module>
from cobra import design, flux_analysis, io
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/flux_analysis/__init__.py", line 8, in <module>
from cobra.flux_analysis.gapfilling import gapfill, growMatch
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/flux_analysis/gapfilling.py", line 9, in <module>
from cobra.core import Model
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/core/__init__.py", line 6, in <module>
from cobra.core.gene import Gene
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/core/gene.py", line 13, in <module>
from cobra.util import resettable
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/util/__init__.py", line 8, in <module>
from cobra.util.array import *
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/cobra/util/array.py", line 7, in <module>
import pandas as pd
File "/home/bhushan/environments/COBRApy/my_files/pandas.py", line 3, in <module>
import matplotlib.pyplot as pyplot
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/matplotlib/pyplot.py", line 115, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/matplotlib/backends/backend_tkagg.py", line 6, in <module>
from six.moves import tkinter as Tk
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/six.py", line 92, in __get__
result = self._resolve()
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/six.py", line 115, in _resolve
return _import_module(self.mod)
File "/home/bhushan/environments/COBRApy/lib64/python3.6/site-packages/six.py", line 82, in _import_module
__import__(name)
ModuleNotFoundError: No module named 'tkinter'
In an attempt to fix it, I tried sudo yum install tkinter.
I get the following output:
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 5.7 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
ius | 2.3 kB 00:00:00
nvidia-diag-driver-local | 2.4 kB 00:00:00
updates | 3.4 kB 00:00:00
epel/x86_64/primary_db FAILED
http://repo.ugm.ac.id/epel/7/x86_64/repodata/b481c7ee9f843b2897727bf168c73f51de11cce67808a8c518b28cf84ab543cb-primary.sqlite.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
epel/x86_64/primary_db FAILED
https://mirror.lzu.edu.cn/epel/7/x86_64/repodata/b481c7ee9f843b2897727bf168c73f51de11cce67808a8c518b28cf84ab543cb-primary.sqlite.xz: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
(1/2): epel/x86_64/primary_db | 4.7 MB 00:00:09
(2/2): epel/x86_64/updateinfo | 799 kB 00:00:11
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: epel.scopesky.iq
* extras: centos.excellmedia.net
* ius: archive.linux.duke.edu
* updates: centos.excellmedia.net
Package tkinter-2.7.5-48.el7.x86_64 already installed and latest version
Nothing to do
When I execute my COBRApy script again, the error still persists.
I would really appreciate any solution to this problem.