-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report error: html file can not be generated #745
Comments
Hello! Can you paste here the output of the terminal after running |
PS C:\Users\Lenovo> memote report snapshot C:\Users\Lenovo\Desktop\model1.xml |
================================================= test session starts ================================================= AppData\Local\Programs\Python\Python311\Lib\site-packages\memote\suite\tests\test_annotation.py FFFFFFFFFFFFFFFF [ 9%] Current thread 0x0000483c (most recent call first): Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, markupsafe._speedups, sqlalchemy.cyextension.collections, sqlalchemy.cyextension.immutabledict, sqlalchemy.cyextension.processors, sqlalchemy.cyextension.resultproxy, sqlalchemy.cyextension.util, greenlet._greenlet, swiglpk._swiglpk, pandas._libs.tslibs.np_datetime, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.tzconversion, pandas._libs.tslibs.ccalendar, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._libs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.tslib, pandas._libs.lib, pandas._libs.hashing, pandas._libs.ops, pandas._libs.arrays, pandas._libs.index, pandas._libs.join, pandas._libs.sparse, pandas._libs.reduction, pandas._libs.indexing, pandas._libs.internals, pandas._libs.writers, pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.tslibs.strptime, pandas._libs.groupby, pandas._libs.testing, pandas._libs.parsers, pandas._libs.json, libsbml._libsbml, _ruamel_yaml, pydantic.typing, pydantic.errors, pydantic.version, pydantic.utils, pydantic.class_validators, pydantic.config, pydantic.color, pydantic.datetime_parse, pydantic.validators, pydantic.networks, pydantic.types, pydantic.json, pydantic.error_wrappers, pydantic.fields, pydantic.parse, pydantic.schema, pydantic.main, pydantic.dataclasses, pydantic.annotated_types, pydantic.decorator, pydantic.env_settings, pydantic.tools, pydantic, charset_normalizer.md, _cffi_backend, yaml._yaml, pvectorc (total: 91) |
It seems like |
Thank you. I cut the test_consistency.py file from memote folder and pasted it into desktop. Thereafter i ran memote and it generated a html report. But i couldn't solve the rest??? |
@carrascomj |
Hello, you have to import that function itself (python does not import everything unless you tell it so). from memote.support.consistency import check_stoichiometric_consistency Before running the test, you have to load the model with cobra (which is installed since you have memote): import cobra
# notice the "r" before the string since you are using a Windows path
model = cobra.io.read_sbml_model(r"C:\path\to\your\model.xml") Afterwards, you can the call the function check_stoichiometric_consistency(model) That will probably output some error, which is what we'd like to inspect. Hope it helps! |
@carrascomj Thank you so much!!! I tried these. However this time the error is:
>> test_consistency(model)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable
|
@pkocabas80 please try exactly the code that Jorge posted above. In particular, make sure to import and use exactly this function: from memote.support.consistency import check_stoichiometric_consistency |
Checklist
Question
I am new to using Memote.
How can i solve this problem?
The text was updated successfully, but these errors were encountered: