opencobra / cobrapy

COBRApy is a package for constraint-based modeling of metabolic networks.
http://opencobra.github.io/cobrapy/
GNU General Public License v2.0
461 stars 216 forks source link

Exception: GLPK could not successfully create the GLPK file. #1021

Closed Kevinkaiyan closed 3 years ago

Kevinkaiyan commented 3 years ago

Dear contributor: When I load the test model and run the FBA analysis, it runs successfully like this: image But when I run FVA analysis, he will get the following error: image image I am eager to know how to solve this problem, many thanks!

cdiener commented 3 years ago

Hi, this happens during pickling. It looks like python can't write to the temporary file location. What Windows and Python version are you running? Could you give more info as stated in the issue template, especially the following part:


Please run the following code and paste the output between the ``` tickmarks below inside the details block.

python -c "import cobra;cobra.show_versions()"

``` ```

Kevinkaiyan commented 3 years ago

Hello, many thanks for your reply! Here is my information: image

cdiener commented 3 years ago

Hmm, that is the same setup as our test runner and it works there. Looks like it might be some problem with the local setup. For now, you can probably work around that by using flux_variability_analysis(model, model.reactions[:10], processes=1).