I am new to cobrapy and tried to load a simple model to get started. Below is my code that I ran. Immediately, I got a sqlite3 disk error and I am wondering what the underlying issues is and how I can fix this? Thank you in advanced!!
Test.py:
import cobra
from cobra.io import load_model
model = load_model("textbook")
Traceback:
Traceback (most recent call last):
File "/test.py", line 5, in <module>
model = load_model("textbook")
File "/.local/lib/python3.9/site-packages/cobra/io/web/load.py", line 88, in load_model
data = _cached_load(
File "/.local/lib/python3.9/site-packages/cobra/io/web/load.py", line 121, in _cached_load
with diskcache.Cache(
File "/.local/lib/python3.9/site-packages/diskcache/core.py", line 478, in __init__
self.reset(key, value, update=False)
File "/.local/lib/python3.9/site-packages/diskcache/core.py", line 2431, in reset
((old_value,),) = sql(
sqlite3.OperationalError: disk I/O error
Thank you for the help!
Jamie
--
You received this message because you are subscribed to the Google Groups "cobra pie" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-pie+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cobra-pie/CAFkhkVTfVHi6B2AwjC6K6Peja7sdef-VDKE-kRMg%2BTKCVcpX-w%40mail.gmail.com.
Wow, Josh Lerman - hi!!
Hope you are well!
Thanks for the feedback here. I suspected this has to be related to a vm issue that I'm running this code on. I'll reply back if there's more issues that come up.
Happy holidays!!
Jamie
To view this discussion visit https://groups.google.com/d/msgid/cobra-pie/CAFkhkVRQZ1-JThZoO9mYqK4yp6HF51p1MN3-i3Fh%2BmL91YA1YQ%40mail.gmail.com.